Display region base on multiple conditions

Hi,
Is is possible to display a region base on few different conditons?
eg. current page not in (1,2) and current page not in printer friendly mode...
Thanks
Vincent

Make a PL/SQL Expression condition with:
(apex_application.g_printer_friendly = false) and (apex_application.g_flow_step_id not in (1,2))
Scott

Similar Messages

  • Displaying region based on multiple selection list

    Hi,
    this is my scenario.
    i had 3 drop down selection lists A, B, C. based on A and/or B, C is populated. and when i select one from C, i display a report regions.
    i am able to achieve this, and when in the selection list C, I have a null value as "- All -"
    so when i select "- All -" then the report region should not show anything.
    so in my report region query this is what i gave
    DECLARE
    q varchar2(2000); --query
    w varchar2(2000); --where clause
    we varchar2(1) := 'N'; --where condition
    BEGIN
    q := 'SELECT * from SCCATCH';
    IF :P1_STATION != 'NULL' THEN
    w := 'COLLECTION = :P1_STATION';
    we := 'Y';
    END IF;
    IF we = 'Y' THEN
    q := q ||' WHERE '|| w ;
    END IF;
    RETURN q;
    END;
    where :P1_STATION is the item value of C.
    now what is not working is when i select A, B then C is populated and whne i select C, the report region is displayed.
    now when i go back and select A, B , then C is again populated with a different C list, but the report region still remains the same showing the previous result.
    what i really want to do is. when i select list A,B and then C, report get displayed. and when i go back and change sleection in A,B and then obviously C gets changed, then the report region should not show anything untill i select one from C.
    i understand that there is some basic things i need to do to fix this, but i am not able to fix this.
    Can you help me please.
    Thanks,
    Philip.

    user12943263 wrote:
    HiPlease update your forum profile with a real handle instead of "user12943263".
    I basically want to use the select below for my list but I do not know how to get the app and session no.
    select list_desc, 'f?p='||get_app_id|| ':' || page_no||':' || get_session_id
    from table_nameIn SQL use bind variable notation as described in the Understanding Substitution Strings section of the documentation:
    select
      ,  'f?p=' || :app_id || ':' || page_no || ':' || :app_session
    from
        ... Always consult the documentation before posting here.
    Dynamic Actions, JavaScript, and all "P.Ranish" posts above are all irrelevant to your question.

  • 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

  • Conditional region - multiple conditions

    Hello,
    I need to display a region only if 1) the page is in Printer Friendly mode AND 2) the value of a page item = 1. I tried using :P100_ITEM = 1 AND :PRINTER_FRIENDLY = 'YES', but that didn't work. Any ideas how to do this? Thanks.
    Lisa

    Hi Varad,
    I'm sure your response is the correct answer, but I can't make it work. I've put an example here: [http://apex.oracle.com/pls/otn/f?p=23292:8]. I'm probably missing one little piece somewhere. I put the different things I've tried (in addition to your suggestion) in the HTML region. The HTML region should be the conditional region. I can only get #1 (no conditions) and #4 v('PRINTER_FRIENDLY') = 'YES' to work. If you have a minute, would you take a look at the page and see if you can tell me what I'm doing wrong. It seems like the value in P8_ITEM is not being recognized. I appreciate your help.
    Lisa

  • Multiple conditions for the same button.

    Is there any way you can have multiple condition (same type of the condition).
    I have button that I would like to hide it at different stages.
    For example I would like to have a button (Submit) which will be visible when
    Status = Draft
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_STATUS
    Draft
    and when also when userRole = author
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_USER_ROLE
    Author
    Robert

    Hi,
    It would depend on when the fields get their values into the session. They may be below the button on the page but if they have a value in the session then the button's condition will see this.
    If, however, you have only used a Default Value setting for the item, the value may not be in the session (even though it may be displayed on the page), so the button will not know about this value. In these cases, I set the default value using a page computation for that item that runs "On Load Before Header" and is conditional on the item being null. That puts the value into the session for other items to use if required.
    Andy

  • Table Rows with Multiple Conditions Not Showing Up in RH

    Hi everyone,
    I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
    One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
    For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
    Unconditional
    Unconditional
    Condition A and Condition B applied
    Condition A and Condition B applied
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
    Unconditional
    Unconditional
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
    Has anyone else seen this issue? Any help would be much appreciated.
    Thanks
    DaveB

    It just seems that the items I select as align to top in the
    property inspector should force the items to the top of their
    cells, unless I'm missing something.

  • Multiple Condition Issue

    Hi Experts,
    I have a problem of trying to utilize multiple conditions on a query. I have two conditions like this:
    keyfigure A < 0
    keyfigure A Bottom 10
    What is happening is that it is finding the bottom 10 values and then filtering out the values. So instead of displaying 10 values, I only get a few.
    I have tried changing the order of the conditions and such, but it doesn't seem to affect the results. I currently have the two conditions mentioned above in separate conditions. (My understanding is that this produces an AND effect.)
    Any thoughts on how to force it to do the filtering first and then order?
    Thanks in advance.

    Have you tried using a pre-query? That way, the first selection is forced to happen before the second.
    Here's the Help documentation... once you understand how to use it, its very powerful.
    http://help.sap.com/saphelp_nw04/helpdata/EN/2c/78a03c1178ad2ce10000000a114084/content.htm
    Points?
    PAtrick

  • Error on multiple condition

    Hello all
    I'm having trouble with a multiple condition. I have 4 possible outputs, but in one of them the workflow is terminated, and there is no any instruction set to do this. Any ideas on what is going on?.
    Regards IA

    Please analyse the Workflow Log and also the Workflow design from PFTC_DIS.
    Following reason can result into this
    1)Use of Process Control step which is not displayed in |Wflow log
    2) Use of wait for event step in a fork as well as triggering of the event
    3) Triggering event that is a terminating event of the task placed in 1 branch of the condition step.
    Thanks
    Arghadip

  • Display region after one process has run

    I am using htmldb2.0 and I want to display regions after one process in another region of the same page has run. There is type named as "when process in comma delimited list of Process IDs has run" in condition type of region edit. I tried it with putting my process name(also followed with comma) in expression 1 text area but it doesn't work. I am wondering if this doesn't work, how can I implement it in my application.
    Thanks in advance,
    Ke Lin

    I do not get but....
    If one process on page start...then page is not rerenderd until it is finished. If process if finished page is submited and then on refresh page process is not running.
    So I do not understand how can two process be started on the same process together?
    If this si so maye this could be the solution....
    could you create autonomous transaction (it commits their data regarding transaction that it participate in!) to make some parameter in table to 1.
    When other process starts it checks this value and if this param is 1 then it should not continue.
    P.S.
    Do not forget to put another autonomous transaction procedure which will set param to "0" after process finish.
    Do this main proc with strong exception handling to ensure that param is allways set to 0.

  • Expression ... Handling multiple conditions

    I am new in the MDM area and I have to write the expression to handle the following scenario
    If country = US  and Department code = ABC then either First name or Last name must be present. other wise error it out.
    I have difficulty in handling multiple conditions.
    Full points will be rewarded.

    Hi Mike,
    Case1: Both Country and Departmentcode are Lookup tables
    IF (Country AND Departmentcode , IS_NOT_NULL(FirstName) OR IS_NOT_NULL(LastName) , FALSE )
    Within expression select Lookups -> Country. Countries list will be displayed and you can select any value from the list. Same for Departmentcode
    Case2: Country is lookup and Departmentcode is text field
    IF (Country AND Departmentcode='ABC' , IS_NOT_NULL(FirstName) OR IS_NOT_NULL(Lastname) , FALSE )
    Regards,
    Jitesh Talreja

  • If Statement Multiple Conditions

    Using LiveCycle, FormCalc or JavaScript.
    I am trying to create an if statement with multiple conditions.
    a Sum field calculates a series of numeric input fields. I want the result in the Sum field to determine the expression in a final field. 
    If the Sum is <30MM then "50000" also if the Sum is >30MM but <60MM then "125000" also if the Sum is >60MM but <100MM then "250000" also if the Sum is >100MM but <300MM then "375000" also if the Sum is >300MM then "500000"
    I have only been able to figure out a single if then for the first condition but not able to include the whole set of conditions and the multiple results.
    Help would be much Appreciated!
    Thank you in advance.

    Tried a few variations of this and still seem not
    to be able to find a solution to this issue. I'm surprised my google searches are bringing up better examples because there seems to be an example of everything else.
    Any more detailed advive?

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

  • Mail step should be sent to all the users in multiple condition

    hi experts,
                      I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
    if >= 1000 person B can post the invoice.
    If >=2000 person C can post the invoice.
                                                                      what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

    Hi Priyanka,
    I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
    1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
        a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
            SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
        b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
            same as that of the amount field in your workflow) .
    2. Use this Rule in your workflow to send mail.
    Logic:
    ""Lokale Schnittstelle:
    *"       TABLES
    *"              ACTOR_TAB STRUCTURE  SWHACTOR
    *"              AC_CONTAINER STRUCTURE  SWCONT
    *"       EXCEPTIONS
    *"              NOBODY_FOUND
      INCLUDE <CNTAIN>.
      DATA BEGIN OF ORG_OBJECT OCCURS 0.
              INCLUDE STRUCTURE SWHACTOR.
      DATA END OF ORG_OBJECT.
      DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
              INCLUDE STRUCTURE SWCONT.
      DATA: END OF NEW_AC_CONTAINER.
      DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
      DATA: V_MAIL_INDICATOR TYPE <FLAG>.
      REFRESH: actor_tab.
    Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
      SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
    Get the org-object-type and the org-object id.
      SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    Pass the org-object, the org-object-type and the org-object-id
    to a new container.
    The org object get a new name: ORG_AGENT.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    check for V_AMOUNT and V_MAIL_INDICATOR.
    if the v_amount = 1000 .'
      if  v_mail_indicator = ' '.
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER1'.
        append actor_tab
      else.
        actor_tab-OTYPE = 'US'  . 
        actor_tab-OBJID = 'SAPUSER2'.
        append actor_tab
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER3'.
        append actor_tab
      endif.
    endif.
    Similarly write the logic for other conditions.
    This way you can use same for different purposes.
    If you pass the indicator that means you are sending mail to other approvers for information.
    Revert back if u need more help.
    Regards,
    Gautham

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

Maybe you are looking for

  • External USB Audio - huge problems!

    Hi I have *problems with my mb pro (mid 2009*, 2,8Ghz, 15'', 4Gb RAM) *and Native Instruments Audio 8 USB interface.* The interface works well when I use it on OS X 10.5.7 / 10.5.8, but there some spund quality problems, when I am using Audio 8 on Wi

  • Invalid date format causes system to crash

    Hello experts. I'm not sure where to even start looking to resolve this problem. In the shopping cart if a user changes the delivery date to an incorrect format it causes the system to hang. For example if the user enters a date in the past such as 0

  • Anyone recommend a  Mixer/FW interface with L8?

    A few months ago I replaced my analogue mixing desk + original MOTU 828 with a MOTU896 Mk3 I cant hear the difference between the MK3 and the original setup ( through powered DynAudio BM5 A monitors). The 896 is packed with features which I would nev

  • Macbook Pro Wifi

    whenever i have my macbook on my leg while using it from some reason the wifi stops working and i cannot turn it on one more time im guessing it overheated and i went to apple store beside me and when they run the diagnose they find everything looks

  • Problems accessing Oracle BAM-Website

    Hi! I've installed Oracle BAM (10.1.3.1.0) on a WindowsXP SP2 machine using an Oracle 10.2.0.3.0 Database. There were no problems during install, the intallation-guide is quite good for this product. After installation i tried to access the BAM-Websi