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

Similar Messages

  • 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

  • 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

  • Multiple Condition Calculation - New to Numbers

    I am new to numbers and/or excel but what Im trying to do ended up being a lot harder than I thought it should be.
    Im trying to create a summary of items based on multiple conditions
    _ID TYPE # DATE_
    a000001 1 5 Jan 1, 2008
    b000002 7 2 Jan 2, 2008
    a000001 7 1 Jan 3, 2008
    a000001 1 6 Jan 4, 2008
    b000002 1 32 Jan 5, 2008
    c000003 7 6 Jan 6, 2008
    c000003 1 6 Jan 7, 2008
    If ((ID == a000001) AND (TYPE == 1)) then add the # column to the current total.
    OR
    If ((ID == a000001) AND (TYPE == 1) AND (DATE == Jan 1, 2008)) then add the # column to the current total.
    Does that make sense? Ive found may versions of conditional on this forum but I cant find any with running totals.
    Thanks all!
    null

    Bo,
    I'm going to give you a method that you can massage to your liking.
    The E-column may be hidden, and will contain your condition logic. Now E2 contains:
    =AND(A2="a000001", B2=1)
    Column A2 of the Formula Table contains:
    =SUMIF(DataTable :: E, TRUE, DataTable :: C)
    The first argument is the test range, your logic, the second argument is the valid condition for the test range, and the third argument is the range to be summed.
    Jerry

  • Error in multiple condition type switch

    Hi,
    I define a multiple condition as a switch for different processing branches for my
    Workflow (all my attributes in the conditions are from the object).
    I defined the Other Values outcome also.
    When one of the conditions is true I received an error SWP103 "Error when starting a SWITCH branch"
    It works fine when my process go to "other" outcome.
    Thanks in Advance,
    Ronit.

    In my workflow the same error occured while using a mutliple condition with type Switch.
    A short explanation of my workflow:
    - container operation: errorcounter = errorcounter + 1
    - multiple condition
      1. errorcounter =< 4
      2. errorcounter = 5
      3. other values
    - activity
    - loop until (depending on outcome activity).
    The first time while executing the loop went perfect, but the second time it failed and based on the message I guess it failed on the multiple condition. What I also notices in the technical view was that the errorcounter wasn't updated.
    I guess the container operation and multiple condition bumped into eachother (somehow?) and caused the error.
    My solution:
    Put a wait stap between step 1 and 2 and it works fine.
    I'm not sure this case is applicable to you, but may be a hint in the right direction. Good luck!

  • Error when Combining Multiple File Types

    I can't combine multiple file types into one pdf, e.g. .docx and .xlsx files.  The combine feature only seems to be working to combine .pdf and .jpg file types.  An error message stating the below appears. Does anyone have a solution? 
    Thank you. 

    no i can't seem to do that either. the only way I have found to get around it. It's long winded... i export the jpgs from Indesign CS4, then take the jpgs into photoshop CS4 and baiscally resave over the top the of the original jpg without changing any settings, this will then let me combine them in Acrobat Pro 9. for now i will be doing it that way but if anyone knows of another way that would be great.

  • Combining "conditional display" conditions

    Hello,
    Using APEX2.2 i would like to combine two conditions for the display of a region from page0.
    First condition : the region should be one of the pages x1,..xn
    Second condition: the page should not be in printer friendly mode
    I can imagine that combining these conditions may only be from the use of API to these basic functions.
    Any pointer to these API because i have not been able until now to collect this specific information ?
    Daniel

    Daniel,
    This can be done with a standard condition of PL/SQL Expression type, like:
    :APP_PAGE_ID in (1) and :PRINTER_FRIENDLY = 'YES';
    Hope this helps,
    Anthony.

  • 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

  • Multiple Display Types in a single column

    I have a situation where I have to display a bunch of attributes for a customer. Each attribute can have a different type, Text, Dropdown, Date etc and that information is stored in a table.
    I was able to use apex_item to display the different display types based on the type of attribute.
    So the layout of the form has 2 columns, column 1 is the name of the attribute and column 2 is the value of the attribute (displayed as the various types of date, text, dropdown etc) However, I am having an issue with the Date popups. When I select a date it always goes into whatever date is listed first. No sorting is going on in the select or the report.
    I'm guessing my issue has to do with displaying different display types in the same column? If that is true, how should I change my approach to this problem? I want all the attributes on a single page, so is my only option to have each attribute in a different region?
    Thanks,
    -- Johnnie

    Denes,
    OK thanks for the heads up, let me try to clarify.
    My problem is that I have multiple date popups on the same form. When I pick a date for any of the date popups, it always updates the first date popup field on the form. I stated there was no sorting at all because this thread indicated that sorting could cause this issue:
    DATE_POPUP
    Another hit for this issue was here:
    Re: HTMLDB_ITME.DATE_POPUP problems
    This suggested that having multiple data types in the same column (which is what I am doing) is not supported, but this is an old thread.
    My form will be a manual tabular form. I need to display a list of attributes, however some are freeform text, some are SQL LOV dropdowns, and some are date popups. Right now they are all displayed in the same column. Could this be causing my date popup issue? If so what alternatives do I have?
    Screenshot of my form here: http://johnniebillings.googlepages.com/outlook.jpg
    Hope that clears up the issue I am having.
    -- Johnnie

  • How to set a uniform display size of multiple intermedia image types - wher

    I have read "If you want to limit the size of the file that can be uploaded, you can do this as a post generation
    step, by adding the maxFileSize property to the <controller> element in the struts-config:
    This does not address how to limit the *** display size *** where you have multiple intermedia image types - where the original size is not uniform.
    If an image is uploaded where the true image display size is 1024 x 768 - it will display that way in the table/table-form. This will create un-even display size's where previous images sizes where different 384 x 384 and so on.
    Is there a way to encode the display size so that *** ALL *** images regardless of their true size are displayed uniformly at least on one dimension (64 x ???)? This is possible when using products such as Dreamweaver or Flash.
    BTW - JHS/***JDev*** synergy is truely magnificient!!! Way-To-Go Oracle!!!!!!!!!!! Keep it up!!!!
    BG...

    Bill,
    I did some tests, and was able to reproduce it. The problem is that JHeadstart distinguishes between display types fileDownload and image, but UIX uses the same <media> tag to handle both display types. It will look at runtime whether it must render a hyperlink to download the document, or to render it right away as an image.
    To get all images the same size, you can set the display width and height, AND the display type must be set to image.
    However, to get the file name used as download link, you must set the FileName attribute AND the display type must be set to "fileDownload" ..
    So, to solve your problem, it is easiest to set the displayType to "fileDownload" and set the width and height properties post-generation in the generated UIX page.
    In the next release of Jheadstart, we will fix this, and always pick up width, height and fileName settings regardless of the display type.
    Note that you should also set the FileName property against the attribute you are using to upload the file.
    Steven Davelaar,
    JHeadstart Team.

  • How to combine multiple Unmanaged Solution to one single Managed solution

    Hi,
    How to combine multiple Unmanaged Solution to one single Managed solution.?
    There were some other third party developer have kept things lik ein UAT there are 2 release solution and both are Managed Solution.
    And in Production the changes are only deployed for release 1 and for the release 2 changes deployment needs to be done.
    But when i import that second release Managed Solution from UAT to Production then i got number of elements missing but i have checked they are already there in Soolution.
    I did some R&D on this but not much helpful.
    I thought i require to convert Unmanaged Solution of Production environment to Managed first for first release and then needs to import Managed solution of UAT to Production for second release.
    Is this the right way to overcome form this situation?
    Any help and response would be really appreciated.
    Thanks.
    If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

    Hi, 
    You can prepare unmanaged solution by adding all the components from the default solution,which are there in the managed solution, If Customizatiable entity is true in  the managed solution.

  • Calculation formula userexit not working for multiple condition types

    Hi,
    we have a problem in the CRM ISA-B2B scenario where the custom user exit is only working for single condition type.
    but we need it for multiple condition types .
    the value of the subtotal is not being retrieved for multiple conditions. at a time only one condition value is being retrieved and shown in the webshop - shopping basket.
    for ex:
    we have scenario 1 where Y001 -Freight condition type is applicable for one customer.and Y002 is applicable for another customer.
    when we are trying to show the subtotal condition value in the webshop by using a single custom user exit in the pricing procedure it is only working for either of the above 2 customers depending on the VMC cache status.
    is there any problem if use the single user exit for both condition types?
    and if it needs to be differentiated how exactly we can do that with the same logic in the java class.
    Thanks in advance,
    PSR.

    Hi Arshi,
    below is the code:
    public class ZValFormula_ZZWI1 extends ValueFormulaAdapter {
         private static String zzwi = "ZZWI1";
         private static char  zzwiC = '@';
         private static UserexitLogger userexitlogger = new UserexitLogger(
         ZValFormula_ZZWI1.class);
         public BigDecimal overwriteConditionValue(IPricingItemUserExit item,
                   IPricingConditionUserExit condition) {
              ICurrencyValue val = condition.getConditionValue();
              userexitlogger.writeLogDebug( "value saved for " + zzwi + " (" + zzwiC + ") = "
                        + val.getValueAsString());
              item.setSubtotal( zzwiC, val.getValue());
              return val.getValue();
    hope this would give more idea to look at the problem.
    Thanks,
    PSR

  • When combine multiple PDFs into one, some letters are missing and display wrong letter

    Hi all. I get a problem with combine multiple PDFs into a single PDF document. There are some PDF documents and they are working fine to open each document separately. But after I use Adobe Acrobat 8 Standard to combine them into one, some letters are missing and some display wrong letter (e.g. "forums" display "fo ums"). Our company has Adobe Acrobat 8 Standard, Adobe Acrobat 7 Professional and Standard. But all of them have some problem. Does anyone have idea for that? Please help me! Thanks very much!

    I have a similar situation, but my PDFs look fine in Acrobat Pro 8,Acrobat Reader 8, and Apple preview, but are missing letters in Acrobat Pro 7. I think it stems from the files being combined all having the same font, but each having a unique subset stored in the respective files, but with the same name (and ID?), and when they are combined, the character sets are getting hosed somehow.

  • 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

  • Multiple condition : Error when starting a SWITCH branch

    Hi,
    In our Z Leave Workflow,I am facing the errors listed below.
    Error when starting a SWITCH branch
    Error during CASE evaluation in SWITCH mode for node 0000000158
    Operator 'EQ': The value of the left operand cannot be determined
    Error in the evaluation of expression '<???>&REQ.STATUS&' for item '1'
    Unable to determine the value of component ''
    It gives error in Multiple condition Request Approved? which is similar to standard WF12300111 node number 158 (u can say copy of WF12300111
    This multiple condition works in some scenario But it gives dump at other scenario .
    I have checked the value of REQ.STATUS in runtime. It populates the value as 'POSTED' in runtime,
    Please suggest if any solution on this.
    Regards,
    Kalpesh

    Hi There was some problem with task which was comprising class CL_PT_REQ_WF_ATTRIBS and APPROVE method. This method is to change the status of particular leave workitem.After running this particular task ,the status was not changin instantly.This method locks particular workitem and was releasing the workitem once the WF gets completed.Hence I was getting REQ.STATUS as sent.
    I have changed that task with following code in new task...
    DATA:
          REQUEST_ID TYPE PTARQ_DEDUCTION-REQUEST_ID,
    request      TYPE REF TO if_pt_req_request,
        new_status   TYPE tim_req_status.
      SWC_GET_ELEMENT CONTAINER 'REQUEST_ID' REQUEST_ID.
    CALL FUNCTION 'ENQUEUE_EPTREQ'
        EXPORTING
          mode_ptreq_header = 'E'
          request_id        = request_id
        EXCEPTIONS
          foreign_lock      = 1
          system_failure    = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
        MESSAGE w058(hrtim_abs_req) WITH request_id.
      ELSE.
    CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id = request_id
          IMPORTING
            ex_request    = request.
    execute state transition
        CALL METHOD request->initiate_state_transition
          EXPORTING
            im_transfer_event = 'APPROVE'
          IMPORTING
            ex_new_status     = new_status.
    COMMIT WORK.
        CALL FUNCTION 'DEQUEUE_EPTREQ'
          EXPORTING
            request_id = request_id.
    ENDIF.
    This will create new status for leave item during WF processing.
    Apart from that also added Wait for  2 minutes after that task....
    Thanks for your help.
    Regards,
    Kalpesh

Maybe you are looking for

  • Installing ORA 816 on Win2K Server

    Hi, I am installing Ora 816 on Win 2K Server. I am encountering Problem in the Instance creation and Copying Data files while creating a database. Its giving me the error Oracle Database Configuration Assistant Alert "ORA-12638: Credential retrieval

  • Set Default Value for People Picker in List Template current user

    Hi, I have field definition in my custom list   <Field ID="{26763808-64BB-4A3C-93A0-ED45AF783D45}"  Type="User" Name="RequestedBy" DisplayName="Requested By" Required="FALSE" ></Field> I need to set default current user in this. I found few options w

  • TS3276 Mail not showing images

    Since updating to Yosemite, mail no longer displays images in emails There is no option, now, to load/see pictures and 'Load remote content' is ticked in Preferences/Advanced. Any help please?

  • Cannot record stereo track along with built-in camera

    I'm hoping since imovie 6 is considered superior, by some, to more recent versions that knowledgeable users are still following this forum. I've got a pair of stereo mics going through a lexicon usb interface -- chosen as the input in audiomidi setup

  • Recursion with strings

    Hallo, I have to write a method that get's two String type strings (s1, s2) and returns the length of the the biggest continuous sub matrix in the matrix s2 that's all it's digits are present in matrix s1. For example: if s1 is "xyz" and s2 is "abxyr