Conditional Display in reports doesnot seems to work

hi ,
I tried to set conditinal display in a report to a pl/sql expression and it didnt work.
in order to check if conditinal display works I tried to set it to never, and it is still displayed . I'm using Apex 2.0
Please help
sagsag

New Info.
The report is based on my own report template and using links
a basic report does work with conditinal displau
sagsag

Similar Messages

  • Complex conditional display in report table

    Hi,
    I built a report in a region, and want to make one of the columns conditionally display based on attributes from two other columns in the table. The drop-down for the conditional display only lets me refer to the current item. Is there a way I can reference the other cells in that table row in a PL/SQL expression (e.g.: something akin to #COLB# is not null and #COLC#>1000 ?)
    Related question: I'm assuming the reason I can't directly change the source for the report region and can only modify it from the Query Definition tab is because I used a wizard to create it. Is there a way to "undo" this and make the source for the report fully editable? That would also solve the problem, since I could just add a function-derived column to the query.
    Thanks in advance,
    Keith

    One final update and rephrasing of the problem, because maybe there's another way to solve this.
    I have a column in a report that links to another page, but the link is only shown if a certain condition is met (which is based on other cells in this table row). I can test for those conditions in my original SQL query, so that a null value in my link column results in no user-clickable link being created. (I have to make sure that a null value appears as null on the report page, too.)
    This works fine if the link text is just that: text. Because not meeting the condition returns null, so no text == no link.
    Now the only problem I have comes if I want to use an icon (e.g.: the edit icon) instead of link text.
    What I really want is for the icon to only appear if a certain condition is met. However, the icon replaces the column value so I can no longer use a null value to prevent the link from appearing.
    The original question asked whether I can use other report cells (#foo#) in the conditional display for a cell. If that's not possible, any suggestions on how to achieve the desired effect without resorting to JavaScript?
    Thanks.
    Edited by: kswartz on Jun 20, 2009 1:56 AM

  • Conditional Display on Report error

    hey,
    can anyone suggest a way/workaround to catch a report error. when error occures, i'd like to display another report, just below, without errorneus columns ( Oracle Text score(1) this time )
    report error:
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 1
    how could i make this error conditional?
    br,
    Simon

    Hi Simon - I have the same issue. Did you find a solution?
    thanks,
    Matt

  • Conditional display of report

    hi
    i have a batch table (batch_id,batch_name,batch_type..)
    i have to pass batch_name and batch_type as a parameter so i have 2 item on a page
    batch_name :-select list
    batch_type :-select list with submit and it values select from the values of batch_name
    create button :- when i hit the create buttons it will show me 2 report in the same page based on the latest batch_id
    so i have to apply conditional display on the reports
    what would be the condition for the conditional display so that i will get to reports in the same page
    dependency between report is batch_id
    Regards
    Amu

    Hi Tobias,
    i have interactive report.
    the content of report is displayed based on the input values(from select lists),
    1)select list -p_cust
    2)select list-p_switch(the values of the list select from the values of p_cust i.e select d r from switch_t where cust_name=:p_cust)
    requirement like this
    1)First i have to select a customer
    2)when i select a values (switch) from the switch select list -the result of the report for a paticular switch .
    e;g-p_cust='ABC' and p_switch='XYX'
    the output of the report would be the all records for 'ABC' customer for a Paticular Switch that is-'XYZ'
    3) again when i select a value "All_switches" from the switch select list it should returns all the records for all switches
    Regards
    Amu

  • Conditionally display row report template.

    Hi
    I have a report template based on a Named Column(row template). Everything is working perfectly except I am trying to hide a section on the report if the value is null.
    In Row Template 1 I have the following
    <table width="100%">
    <tr>
    <td>#BLOB_CONTENT#<div class="imagecommentsheader">#COMMENTS#</div></td>
    </tr>
    </table> I have placed a condition on this based on PL/SQL expression and have the following:
    #COMMENTS# is not nullIn row template 2 which should display everything but the comments I have the following:
    <table width="100%">
    <tr>
    <td>#BLOB_CONTENT#</td>
    </tr>
    </table>I have also set a condition on this based on PL/SQL expresion and have the following in the expression:
    #COMMENTS# is nullbut when I load the page I get the following error:
    ORA-06550: line 1, column 35: PLS-00103: Encountered the symbol "IS" when expecting one of the following: ( ) - + case mod new not null others table avg count current exists max min prior sql stddev sum variance execute multiset the both leading trailing forall merge year month DAY_ hour minute second timezone_hour timezone_minute timezone_region timezone_abbr time timestamp interval date
    Error ERR-1025 Error processing PLSQL expression. is not null
    Where can I be going wrong?
    Thanks you

    Hi,
    If I remember correctly, it was the nulls that caused me problems initially as well.
    I ended up thinking of the condition as being what would need to go in:
    CASE WHEN ...condition... THENbut also that it could only be fairly simple (you couldn't call functions, for example) as all it could deal with was column values.
    Andy

  • Conditional Display in Report Template

    Hello!
    This is a BI Publisher / Apex question but I'm not sure which forum my question should fall under...thought I'd try this one first. Let me know if I guessed wrong. :)
    I have created a report template (Word) and a report query in Apex. Everything works great (meaning the data is displayed as it should), but I can't figure out how to display a header/footer based on a user's response. On my search form, the user selects Yes or No if they want/don't want a header/footer printed on the report. The header/footer is predefined in the main database table, but it's not a field in my report query. How do I incorporate this into my template? It's been a while since I created a template in Apex but I don't think I've come across this issue before.
    Any ideas?
    Thank you,
    Tammy

    After a week off, I'm back to tackling this issue. I successfully created a sub-template and it works, except when I try to call the report via APEX. I've searched the forums and came across the "disable external references" set to False, but I'm using the standalone version of BI Publisher so I don't have that option. Is there a similar approach via the standalone version?
    Thank you!
    Edited by: 73pixieGirl on Feb 15, 2010 9:15 AM

  • Conditional display in Reports

    Hi,
    Does anyone know of a way to make a icon used to implement a link to another page appear for some rows of a report but not others? The condition for display could be based on the value of one of the columns in the report.
    Niall

    Right now, you have to put your logic into your SQL for the report. You can use CASE or DECODE to determine what should (or should not) be displayed for a given column.

  • Validation Execution conditions in EO does not seem to work in 11.1.1.6.0

    I am on latest V2 code line and have a question on Validation Execution.
    I have an entity object that has an attribute named ‘ServiceUri’. I have an attribute level method validator defined against it to validate the URI.
    In the attribute validator Validation Execution condition I have the following groovy expression.
    ServiceUri != null
    After specifying this condition the wizard lets me test the groovy expression. When I that I get the following message – ‘Expression syntax check passed, but name may still be invalid’. Why am I getting this message? ServiceUri is a valid attribute in the EO.
    Also even when ServiceUri is null the validation is being fired. Why is the validation execution condition not being honored?
    Am I missing something or is this a bug?
    Thanks
    Balaji

    After a bunch of responses from people I finally got it to work. The trick is that you have to refer to the new value as 'newValue' and that does the trick.
    But I want to summarize the counter intuitiveness and weirdness of the expression tester and validator.
    1.     Does not seem to validate the attribute names
    2.     I put an ‘AND’ in my condition (source.ServiceUri != null) AND (source.ServiceUri != “”) and it did not flag this as an error. At runtime it complained that attribute ‘AND’ is not found in EO
    3.     My condition ‘(source.ServiceUri != null) && (source.ServiceUri != "") passes expression validator test but does not evaluate correctly at runtime.
    4.     If I only have source.ServiceUri != null is works but if I have a && condition it does not work.
    5.     Instead of referring to the attribute by name I have to refer to it as 'newValue'.
    All I want the expression tester to do is validate if the expression will evaluate at runtime – is that too much to expect??

  • Conditional Display of Report Columns

    I'm trying to hide a vertical list column, but it is either permanently off or permanently on. Any ideas!
    For example:-
    Display Department name if not null

    now i get why you're not liking the report templates approach to this issue. to be honest, my other suggestion on that "Referencing Report Columns" thread might probably be okay here. assuming you're looking up your one detail row with a primary key value, doing the extra query can't be too expensive. if you don't want to go that route (though i'm likin' it, the more i think about it) or the templates one, you might consider either of these two angles:
    1) code the detail page's region as a plsql anonymous block that selectively shows what it needs to show.
    2) code the appropriate nvl's or case statements into your detail page's report region and have that select statement select out most of your html formatting for you.
    i don't particularly like either of the two above suggestions, but now you at least have them. i think i'd run with the solution where you select the detail row twice, but please don't quote me on that.
    regards,
    raj

  • Conditional display of report row

    Hi All,
    I've a report form and have a LOV for a column. Based on the data selected in the LOV I need to populate some more rows to that report.
    It is basically like a survey page where depending on the answer provided by the user, sub suvery question needs to be populated. For example if I select "Married" for maritial status another question should be populated asking for Spouse Name. All the queries are stored in a same table with Parent question ID to link Child question to Parent Question.
    Any clue on how to do this.
    Thanks in advance
    Prasanth

    a. It is a report on table and one column is editable with a LOVThat is Tabular Form or Updatable report. Implies there is a ApplyMRU/ApplyMRD process to perform the update.
    >
    b. APEX 4.1
    >
    The solution will depend on your database design. You may need to review in the light of the page design you will do.
    I don't think I will get into the code for this as it will be fairly nifty and will require a study of your database design.
    At a high level:
    a. Create a table(s) for keeping your questions, say Questions.
    b. Next you need to decide how you want to store your "rules" for selecting questions based on prior responses. Rules may be built into the database design or external processing based on column(s) in the question rows.
    c. Create a table for Responses. Populate it with the mandatory questions.
    d. Base your Tabular form on the Responses table
    e. Each time a use makes a selection in a row's LoV submit the page to loop back on to itself.
    f. In OnSubmit processing, after the Responses table has been updated, add the relevant rows from your Questions table to the Responses table using your rules in a Page Process.
    h. When the Form is displayed again the new questions will be displayed as the corresponding rows have been inserted into the Responses table in the process referred to above.
    Of course, you will need to write some more code for situations where a user goes back and changes the Lov of a prior question that affects related questions....
    Cheers,

  • Master-Detail Form, Conditional Display of a Column Link

    Hey Guys,
    I've got a little question for you:
    I use a Master Report with a Column Link that i would like to hide when my Column in the Report named "NUMBER" is 0.
    I can't get it to work though. Using the "Conditional Display" stuff doesn't seem to work.
    I have looked at some CASE statements but i cant seem to make them fit!
    Any suggestions?
    Thanks alot,
    max

    sorry for the trouble, i am quite new to this.
    Yes, i took my Master Report and added a [column link]. I understand now how the sql has to look like but where do i put this?
    I cant find any space for a sql code, or does it belong in the conditional display section?
    I changed the Column Attributes to standard column, however, this seemed to have no effect.
    Do i have to chance my sql select query for the Report?
    It looks like this at the moment...
    SELECT
    "CONTENT_LOCALES"."CONTENT_LOCALE_ID" "CONTENT_LOCALE_ID",
    "CONTENT_LOCALES"."CONTENT_ID" "CONTENT_ID",
    "CONTENT_LOCALES"."LOCALE_ID" "LOCALE_ID",
    "CONTENT_LOCALES"."NAME" "NAME",
    "ORIGIN_TEXTS"."ORIGIN_NAME" "ORIGIN_NAME",
    "DESIGNS"."DESIGN_ID" "DESIGN_ID",
    "DESIGNS"."DESIGN_NAME" "DESIGN_NAME",
    "CONTENT_LOCALES"."SEQUENCE" "SEQUENCE"
    FROM
    "CONTENT",
    "DESIGNS",
    "CONTENT_LOCALES",
    "ORIGIN_TEXTS"
    WHERE (("ORIGIN_TEXTS"."GID" =:GID and "CONTENT"."CONTENT_ID" =CONTENT_LOCALES.CONTENT_ID and "CONTENT"."DESIGN_ID" =DESIGNS.DESIGN_ID and >"CONTENT_LOCALES"."CONTENT_LOCALE_ID" =ORIGIN_TEXTS.CONTENT_LOCALE_ID))

  • Need help with conditional display

    I found a older thread (704012) that explains how to conditionally display a link using style.  Which is what I want to do.  The part I'm having trouble with is that part of the instructions say to put
    class="row_has_values_#HAS_VALUES#"
    in the Link Attributes which I have done.  I also have a column in the report called HAS_VALUES and I'm properly populating it in my select.  I know because I left it displayed while I'm testing.  I can run the report and I have Y's and N's showing up in that column but the conditional part does not work.  When I look at the page source (below) I see that in the html the #HAS_VALUES# has not been replaced by the actual Y or N.  I think that's where I'm having trouble?  I think it might work if there was a Y or N in that but I don't understand why that didn't happen.
    <tr class="odd"><td headers="LINK"><a href="f?p=125:3:12628966088981::NO::P3_PROGRAM_KEY:2" class="row_has_values_#HAS_VALUES#"><img src="/i/e2.gif"  border="0"></a></td><td  align="left"

    LawrenceJ wrote:
    I've continued to snoop around and see lots of posts on conditional display in reports.  Common desire I guess.  I saw some stuff that I interpreted to suggest that what I'm trying to do may not work in interactive reports, only in classic reports.  Does that sound familiar?
    That would certainly apply to anything template-related. However there have been enhancements to IRs (like adding HTML Expressions) that might supersede information in older posts. If you provide a link to the sources you've found and the APEX version you're using someone will be able to confirm whether that information is relevant.
    Many other posts on doing things conditionally in reports seemed to lean towards "selecting" the html based on data values and then just letting that get put in the report column.  That looks promising but sure is a bit ugly.  I've very little apex experience but lots of mod pl/sql and that sort of solution was pretty common when I did stuff with it.  I saw a little suggesting using templates as a solution but I'll confess to not understanding it at all.
    As I pointed out in the original thread, if the conditional display of the link is in any way security related then CSS or JS/jQuery methods are not acceptable. If the user is not supposed to be able to click the link or see any data contained in it, then you have to use a method that ensures that the link element never reaches the browser.
    Hard-coding the link HTML in the report query is the common approach, but is as you say a bit ugly. Using a custom report template (my favourite APEX subject) enables clean separation of the report query, conditional logic and HTML structure. If you know HTML then you're advised to get familiar with using templates in APEX. You'll find this a major advance on the PL/SQL web toolkit. What is it that you're not understanding about using templates?

  • Application Level Function for Conditional Display

    I need to hide a field on Print Preview if it is null. I currently have the following PL/SQL Expression Condition:
    :P305_DEPT IS NOT NULL AND v('PRINTER_FRIENDLY') <> 'YES'
    It works great; now I need to do this for a lot more fields within my application. Is there a way to call a PL/SQL process defined in HTML DB, passing it the current item value, or some other way to save myself some typing?
    I've tried various combinations of shortcuts, substitution strings, application processes, etc. and can't seem to get the right combination.
    I'm hoping you have a cool solution, or some other ideas I can try out.
    Thanks!
    Chaunaci

    Hi Raj,
    All of this came up because we have several data items displayed above each report page, which allow the user to enter filter criteria. When the page is displayed in Print Friendly mode, the Select Lists display as blanks when null, but Text Boxes display as [] when null.
    Our QAs have asked us to make all of the filter fields consistent in appearance in Print Friendly mode. The work-around solution is to hide the filter fields that are null when in Print Friendly mode. Therefore, we came up with the following PL/SQL Expression to use in the Conditional Display:
    :P305_DEPT IS NOT NULL AND v('PRINTER_FRIENDLY') <> 'YES'
    Because I will need to add the above conditional statement to many items, I was hoping to create and call an HTML DB application-level process and pass the current item value in, so my conditional display logic would look something like...
    HIDE_NULL_ON_PRINT(:P305_DEPT).
    When I was doing some additional testing last night, I realized my boolean logic needed to be tweaked, and it would be nice to tweak it in just one place, rather than on every field's conditional display.
    I currently have it working by putting the IS NOT NULL AND v('PRINTER_FRIENDLY') <> 'YES' into an application substitution string, so my conditional logic shows as:
    :P305_DEPT &HIDE_NULL_FOR_PRINT.
    In trying to determine if this was the best solution, I need answers to the following issues:
    1. Is there a way to generically reference the current item in the conditional display logic? I currently type in the specific item name (ex: :P305_DEPT), but it would be nice if instead I could just say &CURRENT_ITEM_NAME. (or something similar).
    2. Can I create an application-level process, pass a parameter into it (the current item), and have it return a value that can be evaluated by my conditional logic display?
    Thanks so much for your quick responses to this and all my previous posts. It is wonderful to be able to post a problem at the end of the day, and come in to a solution in the morning!
    Chaunaci

  • Conditional Display Based on a Field Value

    I'm a newbie ...
    I developed an application that shows payment information.
    Record type one is a cheque
    Record type two is a payment stub
    Rec Type Account Amount PDFFile
    1 888888 1234.00 summary.pdf
    2 888888 10.00
    2 888888 400.00
    2 888888 800.00
    2 888888 24.00
    I have developed a program that assimilates a number of cheque images into a single pdf file. I write the filename and location of that pdf file into a field on 'record type one' (cheque record).
    I want to have a button that only renders on records that that have a value in this field.
    I've looked at conditional display, but can't seem to find the right option.
    Can anyone get me pointed in the right direction?
    Thanks
    Dave

    Dave - Where do you "write" this field? On the same page or from a previous page? What is the display type of this field (which I hope is implemented as an Application Express page item)?
    It's all about having a value in session state for that page item at the time your button is rendered. If you've got that, then the button condition will be trivial.
    Scott

  • Crystal Reports Viewer seems to have data - but it is not showing

    I am developing on a Windows 7 box and publishing a VS2010 web application to a Windows 2008 server.
    On the server I have installed CRforVS_redist_install_64bit_13_0
    Reports are stored in a folder on that server.
    When I run the application on my local machine the report displays okay via the Crystal Reports Viewer on a .aspx page.
    When I run the application on the server, if I view the source of the page that contains the Crystal Report Viewer - it seems to have fetched the report okay. But it is not showing on the screen. I was thinking this might be because it can't find the 'style.css' file but on both the development machine and server all the various folders and files in and under crystalreportviews13 are present in aspnet_client/system_web/4_0_30319/
    When I view the source of the pages that display the report - they seem to be identical both when viewed on my development box and when accessing the app directily on the server. But, on the .aspx page displayed by the server, the page is blank in the browser. Yet, as I say, when you view source all the data is there.
    What am I doing wrong? Thanks for any help.
    Edit: In both cases if you View Source the page is showing this:
    <link rel="stylesheet" type="text/css" href="../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css" />
    On my development box this makes sense. The web site in question is below 'Default Web Site' - i.e. it is at the same level in the folder hierearchy as the aspnet_client folder.
    But on the server, the site is a subweb below a web site that is level with Default Web Site. So I figure the files are not being found. How can you tell the Crystal Reports Viewer that the files it wants (like style.css) are not where it thinks they are going to be?
    So the app is looking for a file at the same level.
    But on the server there
    Edited by: Steve Rowson on Jun 1, 2011 5:31 PM

    Post to the SDK forum

Maybe you are looking for

  • Naming of folders in /Volumes

    How does OS X decide what to name the folder in the /volumes folder for a mounted file share? We have two machines connecting to the same share the exact same way to a share named company - one machine will name it "company" while the other will name

  • System crashes while exporting

    hi all, I'm all new to captivate and I'm working at my first project with it. I'm doing a navigation site demo, which will be distibuted on cd. I'm working on just one .cp file because I need the project to run as standalone, not inside internet expl

  • Why was i charged more than once in one game

    Hello there i was charged 5 times $1.00 and the regular price of the game once 2.99

  • Internet Security Settings in Windows 7

    I am running Windows 7 and Internet Explorer 11. I am trying to find a listing of the recommended settings for the Security section under Internet Properties. I have found several listings for the Advanced section, but not Security. Can anyone guide

  • Horribly slow to import new music

    Running lion and the latest version of itunes lately when importing new music to itunes,  it's taking forever just to add each song,  approximately 1 or 2 minutes each. I've tried searching for answers and this seems to be a comming issue.  Is there