Conditional Display on multiple items?

Is it possible to use multiple items in the conditional display region of a report? For example I'm trying to use the
"Value of Item in Expression 1= Expression 2" and when I populate 1 item with the value in expression 2 it works just great but if I try to place 2 items that would both equal expression 2 it does not work.
I've tried
Expression 1:
P14_ITEM1, P14_ITEM2
Expression 2:
10
Is this possible? And if so is there different syntax I should using in Expression 1 to identify my items?
Thanks,
Zala

I have done something similar but I used the exists statements and write a SQL "SELECT 1 FROM dual WHERE :x1 = :x2".
Cheers Mike
Edited by: MikesHotRod on Aug 25, 2008 1:31 PM

Similar Messages

  • Use of basic SQL functions in conditional display of an item

    I'm trying to use the following to conditionally display an item.
    Condition Type is set to: "Value of Item in Expression 1 = Expression 2"
    Expression 1: "sign ( instr ( :column_name, '1*' ) )"
    Expression 2: "1"
    The :column_name column contains an asterisk delimited list of numbers. I wish to hide or show an item based on whether a specific number is in the list. When I run the page, the item never shows up. For testing purposes, I am using HTP.P to display not only the entire value of :column_name, but also the resulting value from the "sign(instr(... ))" code. The results of the HTP.P debugging show that the expression does indeed return a value of 1, but the item is still not displaying.
    Any thoughts? I'm relatively new to HTML DB, so there may be some obvious thing I am missing.

    Try setting the Condition Type to "PL/SQL Expression" and use:
    sign ( instr ( :column_name, '1*' ) ) = 1
    The express must evaluate to TRUE for the item to display. See the "Conditions Available in Oracle HTML DB" section in the Oracle HTML DB User's Guide.

  • How to conditionally hide/show form item for multiple requests?

    Ver 4.1.0
    Hi There,
    I have a database form where in one of the fields I need to hide /show based on if the user selects a copy row option or create a new row.
    To explain in details,
    1. I have a report and form application created. When the user edits a record, in that page I have added a copy button also, so when the user hits the copy button, the page is reloaded where the user can create a new record with the save button disable and the create button visible. when the user submits the form using Copy the request is set to "COPY' and in the form, one of the fields has conditional display "REQUEST =Expression1" with value "COPY" This works fine.
    2. However, on the reports page, there is a "CREATE" button also, where the user can directly create a new record and the request value is "CREATE"
    I wanted to add both COPY and CREATE to the conditional display something like
    "REQUEST=Expression1" with value "COPY, CREATE" (without quotes)
    however, the item does not display. I guess it only accepts one value since its =.
    Any suggestions on how the conditional display for an item can be done based on multiple request types?
    Thanks!
    Sun
    Edited by: ryansun on Oct 18, 2012 3:08 AM

    Hi Sun,
    Try changing your condition to a PL/SQL Expression and in expression 1 field add something similar to below and see if it works:
      :REQUEST like 'CREATE' or :REQUEST like 'COPY'This is straight off the top of my head and untested.
    Hope this helps
    Paul

  • Data not submitting when I have a conditional display on a date field

    Hello all,
    Could someone please help me with the following issue?
    I have created an updateable report region with four updateable fields. 3 of the fields store a number values and the fourth stores a date value.
    Each updateable report item has a conditional display, and whether they are displayed or not is controlled by the end user using a radio group (with submit). This provides the user with three options.
    If I remove all conditional displays all data will commit to the database without any problems. If I apply the conditional display to the number fields only, again the data will commit as normal. However, as soon as I add a conditional display to the date field it all goes pair shaped. The data will then cease to commit, with no error message at all. Once I remove the conditional display normal service is resumed.
    I'm certainly an APEX novice at the moment, so I wondered if anyone could shed some light on this.
    Thanks in advance for your help
    Steve

    Stew,
    Basically, I have edited each applicable report field column attributes, via the report attributes tab, and selected a conditional display 'Value of item in Expression 1 = Expression 2' for all of them.
    In the same report region I have created a radiogoup with submit called p51_update_type, specifying three static return values; R, F and S
    Condition e.g.
    *"Expression 1"*
    p51_update_type
    *"Expression 2"*
    S
    All columns display as expected, and commits to the database are normal, that is until I apply a conditional display to the date field (which relates to a table column of type DATE in the database).
    Thanks
    Steve

  • How does iCal, or Calendar, order the display of multiple events for the same time?

    I can't for the life of me figure out how iCal orders the display of multiple items at the same time.  Does anyone have a clue?  It's not alphabetical.  It's not according the the order of the calendars in the left pane.  Is it just random?  Any help would be greatly appreciated.

    In the focus lost eventhandling start a thread which does
    the actual handling.
    the new thread waits for a little time (0.1 seconds)
    the click event of the button checks for a thread like the one above and tells it not to execute
    This way you execute the for the lost focus event only if
    the ok button isn't clicked in the same process ... not
    realy good, because it kind of relies on the ordering of threads ... but maybe it still works for you?

  • Conditionally display items based on null LOV value

    Hello,
    I've seen several examples that do what I'd like to do but with different implementations. Perhaps someone can steer me in the right direction...
    I have a pop-up lov that pulls a list of names from various places. If, however, the name cannot be found I'd like to display a few text boxes where the user can enter a new name.
    For my list of values I have configured the following:
    Display Null: Yes
    Null Return Value: -1
    Null Display Value: Not Found
    My HTML Form Element Attributes has: onchange="doSubmit()";
    My Source section has:
    Source Used: Only when current value in session state is null
    Source Type: Static Assignment (value equals source attribute)
    My entry text boxes have a condition specified:
    Value of Item In Expression1 = Expression 2
    Expression 1: P4_LOOKUP_NAME
    Expression 2: -1
    I also have an unconditional branch to this same page (Page 4) that sets the value of P4_LOOKUP_NAME to P4_LOOKUP_NAME.
    I cannot seem to get this item to display though...any thoughts?
    Thanks in advance for your suggestions!

    jhammer,
    I like the concept. This would require a custom popup lov - something that can be a little tricky/time consuming the first time around. The popup lov would probably have to create new entries via Ajax to be able to pass back the correct ID/display values to the parent window on close.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Conditional Display based on Function and Application Item?

    I have a function within my DB that checks if the STAFF_ID (an application level item) is a "Super User" within my application. The function ("is_super-user") returns 1 if the STAFF_ID given is a Super User. (I am not using ApEx users/groups)
    How would I call this function within the Conditional Display of a button?
    I tried the following with no luck... (although it does not give me an error)
    Conditional Type: PL/SQL
    Expression 1: is_super_user(&STAFF_ID.)=1

    Matt is that you? You're not makin it real easy to identify you by name...
    The function ("is_super-user") returns 1...
    That should be is_super_user (without quotes, of course).
    Your previous attempt should have produced an error. But this should work:
    Conditional Type: PL/SQL
    Expression 1: is_super_user(:STAFF_ID)=1
    ...assuming the function has a varchar2 input parameter.
    And then to make it secure, you'll want to make that application item Restricted so nobody can pass in a value from the page. This kind of condition is a good use of authorization schemes which you can name/create once and attach to all sorts of components throughout the app. Speaking of other components, you should protect DML processes using the same condition/authorization scheme because just because there is no button visible on the page doesn't mean someone can't put one there and submit the page anyway.
    Scott

  • Solution: Combining Multiple Conditional Displays Types

    Hi there,
    I am hoping that you will be able to assist me with a Conditional Display issue I'm encountering. I am using APEX 3.0.1.
    I have two regions on a page.
    Region 1 (HTML) merely contains Items and a Submit button.
    Region 2 (Reports) displays the output of a SQL query that includes the conditions based on the values in the Items (Dates To and From + Supplier from Select List).
    The Items have item level validation for NOT NULL and VALID DATE but when I enter an invalid date the Report displays an error message with the fact that there is an erroneous Item.
    I would like to utilise the No Inline Validation Errors Displayed seeded conditional but also include another condition where another Item > 0 (zero).
    I was hoping to use the PL/SQL Expression or PL/SQL Function Body Returning a Boolean types but need help with the syntax for defining the No Inline Validation Errors Displayed seeded condition in PL/SQL.
    Many thanks,
    Gary
    Message was edited by:
    GWilliams

    Thanks Scott, exactly what I was after.
    Solution:
    Made Conditional Display of type PL/SQL Expression and place the following statement(s) in Expression 1
    nvl(apex_application.g_inline_validation_error_cnt,0) = 0 AND :P55_SUPPLIERID > 0
    Regards,
    Gary

  • How to trigger Condition Access sequence multiple times for one line item?

    Hi,
    We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
    Logic goes like this:
    1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
    2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
    3.we have enhanced the tkomp structure to hold the sale deal.
    Challenge:
    As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
    Functional team maintained diffrent access tables in the access sequence!!!
    Fnds, please help me to get some clue
    Thanks,
    Sunil Y

    Hi Eduardo , Thanks for the response.
    I am trying to explain again, this is the requirment given by the functional guys.
    we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
    At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP.  We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
    We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
    Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items.  Line item 10  may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
    We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
    Please help me ...
    Thanks,
    Sunil Y

  • How to handle Multiple Conditional Display

    I have a page (call it page 2) that one can navigate to using a column link from another page, or using a link from a list. On page 2 I have a region that I would like to conditionally display; display the region if they navigate using the list link, do not display if they navigate using the column link or if the page is in printer friendly mode. I can probably handle a multiple conditional display for a region using something like a PL/SQL Function Body returning boolean, is it possible to know which link was clicked?
    Other suggestions would be greatly appreciated.
    Regards
    Mark

    Sudheshna-
    In my List, I set REQUEST to P2_PARAM. On page 2, in the region where I want to control the display, for Conditional Type I chose PL/SQL Function Body returning boolean. In Expresion 1 I have this code;
    BEGIN
    IF V('REQUEST') = 'P2_PARAM' THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END;
    The ELSE, handles the times I do not want to display the region, in my case if I linked to the page from a column on a page other than page 2, or if I want the page in printer friendly mode.
    Regards
    Mark

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

  • Conditional Breaks on subnodes/item level

    Hello experts,
    We have a requirement for a new Adobe Form, which has a header table and an item table. We have to print multiple documents in 1 printout.
    Our Adobe Form context layout is as follows:
    - Context node for the Header (1 record for each document)
         - Subnode with the item information ( WHERE conditions are set to the specific document key, so we only have the relevant items of the document in the loop )
    We have added a Pagination -> Conditional Break based on the header table key, to trigger a new page break for each document.
    But we have a 2nd requirement where we need to trigger a 2nd conditional break based on an item partner difference.
    This means we would have to add a conditional break, on the subnode which contains all the item information.
    In Adobe Forms, according to our finds, it does not seem possible to trigger a condition break in a subnode/item table, is this correct?
    Is it nescecary to bring all the conditional break fields to the header table?
    The requirement wants this layout:
    - Document 1
         - ITEM PARTNER A
              - Item 1 partner A
              - Item 2 partner A
         ( TRIGGER ANOTHER BREAK for new Item Partner display ) <- The issue
         - ITEM PARTNER B
              - Item 3 partner B
    ( PAGE BREAK TRIGGERED ) <- OK
    - Document 2
    We were wondering what the most proper/clean/best practice way is, to achieve this requirement.
    ( without having to duplicate records on the header table, by means of moving the required field from the item table to the header table )
    Thx
    Kind regards,
    Wouter

    Hi Wouter,
    Thanks for your response yes its not possible to achive this in nested table. I achieved my output using below logic by duplicating records and using Java script..
    http://scn.sap.com/thread/3702677
    Regards,
    Manu

  • Conditionally Display Report Column

    hi,
    i want to display report column Conditionally .
    i have created a report . there are multiple column Like. BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHECQUE DATE, TOTAL AMOUNT
    Now i want to display only BILL NO,BILL DATE, PAYMENT MODE, TOTAL AMOUNT when i select PAYMENT MODE Cash in Select List ITEM
    And
    i want to display only BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHEQUE DATE,TOTAL AMOUNT when i select PAYMENT MODE Cheque in Select List ITEM
    How Can i Conditionally Display Report Column.
    Thanks
    Manoj KAushik

    Hi,
    try this as report query - pl/sql function returning select statement.
    declare
         qry_str varchar2(1000);
    begin
       if :p1_select_list = 'PAYMENT MODE' then
            qry_str := 'select BILL NO,BILL DATE, PAYMENT MODE, TOTAL AMOUNT from yourTable';
       else
           qry_str := 'BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHEQUE DATE,TOTAL AMOUNT';
        end if;
         return qry_str;
    end; Regards,
    Shijesh

  • Conditional Display/Bind Variables

    Hi
    Is there a way to conditionally display a region on a page, without binding to an SQL variable.
    Example: display the region only when the hidden item has a certain value assigned to it.
    How do I assign a variable to the hidden item?
    I've tried assigning a default value to the item 'my_item' as 'p233_region1'
    And then I tried conditionally displaying the region using item = value, :my_item = 'p233_region1'
    This didn't work ...
    Any suggestions?
    Thanks
    Kezie

    I'll explain as follows:
    Assume there are 2 pages in the app.
    Page 1 has 3 regions (A1, B1 & C1) which display statistical summaries
    Page 2 also has 3 regions (A2, B2, C2) which display the child detail view of the equivalent parent summaries on page 1
    The 'drill in' link from page 1, to page 2, is a link to page 2
    e.g. f?p=&APP_ID.:2:#APP_SESSION#:
    Accordingly, if I drill from A1 to A2, I will see the detail view of A2, as well as, B2 and C2. That is, B2 and C2 display as well because I have not used a bind variable to bind to the sql in a specific region.
    My objective, is to display only A2 on page 2, when I drill from A1 on page 1.
    Essentially, I am trying to get around having to create multiple pages to display the drill detail of each region, by using conditional display on one page.
    Hope this is clearer.
    Thanks
    Kezie

  • How do you use the Multiple Item Information dialog box ???

    How do you use the Multiple Item Information dialog box ???
    Where are the instructions on how the information in the Multiple Item Information dialog box equates to ...
    1. The way iTunes sorts tracks and albums
    2. The reason to select a leading check box
    3. Why there are Option selections (Yes /No) and leading check boxes.
    4. Why some changes remain in the track info, but do not "take effect" in iTunes (Part of a compilation is an example)
    Looked in Help, Support, went to the local Genius bar for an hour, even arrainged a call from apple support ...
    Thanks

    As Christopher says, it's a compilation. Different tracks are by different artists.
    Setting the *Album Artist* field to *Various Artists* and setting *Part of a compilation* to Yes should be all that is required. Depending on your *Group compilations when browsing* setting ( I recommend On ) either should suffice but I suggest doing both.
    Based on your commentary, I selected all the "O Brother" tracks, and checked the boxes for everything line that was blank in the Info and the Sort panes. Only exceptions were the album name and the disc number 1 of 1 and the artwork. I blanked and checked anything else.
    That's not what I meant. When you select multiple tracks, only those values which +are already common+ to all tracks are displayed. Typically these will include Artist, though not with compilation albums, Album Artist, Album, No. of Tracks, Genre plus various sort fields. A blank value may indicate that different tracks have different values or it may be that the value is blank for all tracks. For the drop down values on the Options tab the value shown may not reflect the information in every tag. If values you expect to be common, such as Album Artist or the Album title are not displayed you can simply type these in and click OK. This will often be enough to group the album.
    If you place a checkmark against the blank boxes and apply changes then you will clear those fields so you should only do this if that is the effect you want. Putting a checkmark next to an empty (representing different values) *Track No.* box, for example, will just clear the all the track numbers which is very rarely useful.
    Adding then removing extra text is for a specific problem where despite all common values being identical across the tracks of the album iTunes seems to "remember" that it should see two albums. A typical example would be when an album originally listed as *Album CD1* & *Album CD2* is given disc numbers X of Y and then has the Album name changed to Album. I've seen iTunes merge all but one track into the new album, but insist on listing one remaining track separately, despite both albums having the same title. In this case I've found overtyping the album title again has no effect whereas changing it to AlbumX and then back to Album does what I was trying to achieve in the first place.
    Don't forget that even properly organsied albums may still break up if you don't chose an album-friendly view. Sorting on the track name or track number columns can be useful in some circumstances but in general I revert to Album by Artist when browsing through my library.
    tt2

Maybe you are looking for

  • I want separate itunes accounts when synching

    I have set up 3 itunes accounts for my son, daughter and I.. When we go to synch their itouch and iphones we sign in and out under correct account to devices. However, it itunes seems to be sharing the songs, apps etc with all 3 accounts.  How can we

  • Problems with the ADF runtime installer 10.1.3.3 on OAS 10.1.3

    hi, all, I have successfully installed an oracle application server on a linux machine and in order for ADF BC application to run on it i have to install the adf runtime libraries. What i did is the following: -I shut down the opmn of the server -I i

  • Premiere pro 1.5: Kristallisieren-Effekt fehlt

    hi, auf meinem rechner fehlt unter Effekte->Vergröberung der Kristallisieren-Effekt. sollte der nicht standardmäßig mit installiert sein. bei premiere pro ist das zumindest der fall. kann ich den effekt z.b. als extension nachinstallieren? gruß xlive

  • Applications crash after re-install from image

    As I posted in another thread I had to reformat my iMac's HDD and last nite used disk utility to install a SuperDuper backup from an external drive onto my main system drive. When I booted up this morning almost every application was crashing with er

  • N8: How to find out if the update available is Sym...

    Hello, When I check for available updates on my N8, I see the FW version as 014.002 and File size 6395KB. Could someone confirm if this is indeed Symbian Anna FW ? Thanks