'if condition' in EL Expression in JHeadStart

Hi,
I am developing an application using Oracle JHeadstart 10.1.3 Preview Version 10.1.3.0.83
How I can put an 'if condition' in the EL Expression? I can put an expression which will return true or false. But how I can put an 'if condition' that will return a value if it is true and it will return another value if it is false.
Any help would be appreciated
Thanks
Syed

You can use the '? :' operators in EL
e.g.. following code is genered by JHS for tables:
emptyText="#{bindings.MyVOTable.viewable ? 'No rows yet.' : 'Access Denied.'}"

Similar Messages

  • Condition specified in expression 2 is not working as expected

    I have an application variable that I'm setting in a page-level computation. It is conditional: it should only be (re) set when :request is not Delete, and when the application item is either null, or when a specific string is NOT contained in the application item. I have the condition type as PL/SQL, and am using both expression 1 and expression 2.
    Expression 1:
    nvl(:REQUEST,'DELETE') <> 'DELETE' (this condition is working)
    Expression 2:
    nvl(instr(:MD_Refresh_Tables, 'HDB_SITE'),0) < 1)
    (this condition is not working. :MD_Refresh_Tables is the application item being
    set. And I've checked out the SQL in sqlplus and it's doing what I think it is.
    However, when MD_Refresh_Tables contains 'HDB_SITE', the computation is
    still being made, which is problematic for how I want to use this variable,
    because it then contains 'HDB_SITE' more than once.)
    Am I not understanding how expression 1 and expression 2 are used in conjunction with each other?
    thanks,
    Carol

    Carol,
    You start with a specific condition type. Depending on the type, it may require neither Expression 1 nor Expression 2, or it may require Expression 1 only or it may require both Expression 1 and Expression 2. The type of condition, i.e., its name, suggests which, if any, of those two fields would be required. If your condition type is PL/SQL Expression, you put the PL/SQL Expression in Expression 1 and leave Expression 2 empty.
    Scott

  • Conditional build tags/expressions in the TOC

    Hello all,
    I've run into another issue with my conversion, this time with Conditional build tags and expressions.
    All seems to be fine in my topics, but not in my TOC.
    Some of my topic titles have words that have conditional text applied in the source FrameMaker document.
    These topic titles also appear in the TOC that's automatically generated when I link my Frame book to Robohelp.
    I set the conditional build expression in the Webhelp settings dialog and then Save and Generate.
    These topic titles appear to pick up the correct conditional build expression in the topics themselves, but the TOC heading shows multiple conditions (including the condition I've set to "Exclude").
    So, for example, if my topic title is
    "Conventions in this documentonline help"
    WHERE
    document > should appear in PDF only
    and
    online help > should appear in Webhelp only
    I can get the Webhelp topic to use the title "Conventions in this online help"
    but the corresponding TOC heading looks like this:
    "Conventions in this documentonline help"
    Any ideas?
    Thanks.
    Sue

    Conditional build tags are not imported to TOC from FrameMaker content. However, one can follow another approach to achieve this. One can manage the Conditional build expression in FrameMaker itself and import the filterted content in RoboHelp. Inorder to achieve this, set the conditional build expression in FrameMaker. Turn on the setting in RoboHelp to "Apply FrameMaker Conditional Text Build Expression". [File->Project Settings->Import->Edit(FrameMaker Settings)->Other Settings]
    This way RoboHelp will import only the filtered content with Conditional Build Tags resolved as per the expression applied in FrameMaker.
    Mayank

  • Condition "not containing" expression  in Receiver Determination

    Hi guys,
    I have one interface which processes files with lines compossed by two fields, an identificator, and a data field.
    Inside the data field, i have a row of characters and I want to create this condition in the receiver determination:
    If Data contains text "e6212" then, receiver is X
    If Data does not contain text "e6212" then, receiver is Y.
    I know how to create the first condition, but not the second. Could anybody help me? Thanks in advance!

    Hi,
    The condition editor contains 'Contains Pattern (CP)':
    You use this operator to query a string with a pattern. You can use the following characters for this:
    ·        + for any single character
    ·        * for any string
    *mploymenttaxdeclarat+on annualemploymenttaxdeclaration.
    please read more here:
    http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
    regards
    Vijaya

  • Condition with mulitple Expressions

    I have the following file structure of an ORDERS05 Idoc and I need to setup conditions in the Receiver Determination to find the correct Interface Determination and Receiver Agreement.
    sample File:
    - <E1EDK14 SEGMENT="1">
      <QUALF>006</QUALF>
      <ORGID>10</ORGID>
      </E1EDK14>
    - <E1EDK14 SEGMENT="1">
      <QUALF>007</QUALF>
      <ORGID>10</ORGID>
      </E1EDK14>
    - <E1EDK14 SEGMENT="1">
      <QUALF>008</QUALF>
      <ORGID>1000</ORGID>
      </E1EDK14>
    - <E1EDK14 SEGMENT="1">
      <QUALF>012</QUALF>
      <ORGID>ZPH1</ORGID>
      </E1EDK14>
    I need to set a condition to these criteria
    Option1:
    E1EDK14 QUALF ‘012’ ORGID ‘ZPH1’ or
    E1EDK14 QUALF ‘012’ ORGID ‘ZPH2’ or
    E1EDK14 QUALF ‘012’ ORGID ‘ZC2’   and
    if exsists E1EDK14 QUALF ‘019’ ORGID not equals ‘ZEDI’
    --> this is the example case above
    Option2 with a different map from Option1:
    E1EDK14 QUALF ‘012’ ORGID ‘CCR’ and
    E1EDK14 QUALF ‘019’ ORGID ‘ZEDI’
    Option3 do not process these:
    E1EDK14 QUALF ‘012’ ORGID ‘ZPH1’ or
    E1EDK14 QUALF ‘012’ ORGID ‘ZPH2’ or
    E1EDK14 QUALF ‘012’ ORGID ‘ZC2’   and
    E1EDK14 QUALF ‘019’ ORGID equals ‘ZEDI’
    Any idea if that can be setup in the Condition Editor ? I know a workaround would be to have a dummy map from ORDERS05 to ORDERS05 and write a single criteria in the Header, but that seems like too much overhead....
    Thanks for  any help.

    Hi Andrea,
       Ur conditions look a liitle complex. So u can determine ur rceiver at runtime by provicing the conditions in the mapping itself whr u can hv all combiations. This is called Extended Receiver determination. You can see the option in receiver dtermination itself.
    Plz check he following link
    <a href="/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16:///people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    But, there r options for checking existence of value in he simple receiver determination also. So u can check those and see if its possible with tht.
    Regards,
    Akshay
    Message was edited by:
            Akshay Salunke

  • Why does my conditional expression not work?

    I want to increment a global keeping track of how many critcal tests have been run. Usually I just increment it in the post expression of the test. However, if I have a test that loops it would increment on every loop, so I put a conditional expression in the post expression so it only counts once the loop is done:
    RunState.LoopIndex < 10 && RunState.LoopNumPassed < 3 ? FileGlobals.Critical_Test_Count : FileGlobals.Critical_Test_Count++
    However, the false condition in the expression never gets evaluated. I've put watches in to make sure the condition goes false after the last interation of the test and it does. But my global never increments. The true condition is not supposed to modify the variable.
    What am I miss
    ing?

    The reason for this is that the post expression is evaluated before the loop increment expression, so on your last loop the post expression is evaluated (loop count = 9) then the loop increment is evaluated and the loop is terminated. See page 6-26 of the Teststand user manual.
    Hope this helps,
    Nick

  • HTML Expression - condition

    I have a search page with a report region showing top 10 departments.
    The query I have used is :
    select deptno, count(empno) countv
    from emp
    WHERE rownum < 11
    GROUP BY deptno
    order by deptno desc
    If the count = 1, then clicking on the column(link), I would want to goto the details page, If the count >1 then I want to display the search list in the same page. The user would then click appropriate row to go to details page.
    I tried creating using HTML expression, but URL can point to only one page - how do I specify the condition in html expression?
    Is there any other way I can achieve this?
    Thanks,

    Apart from your link - problem : This query will not guarantee to deliver the top 10 departments...beceause the where is evaluated before the group and order by. You should use a in line view to solve this.
    Roel

  • Help with conditional build expressions

    I'm using RoboHelp HTML and creating WebHelp Pro layouts. I
    want to create five (or more) different versions of the Help tool
    for our various groups of users.
    Here's what I'd like to do: Create a conditional build tag
    for each of the versions (i.e. each of our groups of users). I
    could name them as follows:
    group1
    group2
    group3
    group4
    group5
    Then, I would associate each topic with one or more of the
    build tags. For example, topic1 may be for group1 and group2;
    topic2 may be for group1 and group4. Etc.
    The problem is thus: When I want to create the version for,
    say, group1, my expression ends up excluding the other groups. In
    the end, this omits any topics associated with group1 that are also
    associated with the other build tags (i.e. the other groups).
    Is there an expression I can use to prevent these topics from
    being omitted? Perhaps the use of parentheses?
    The only solution I've used is tedious: I create many build
    tags--one for each variation. For example, I'd have a
    group1group2group3 build tag, a group1group3 build tag, a
    group1group4 build tag, etc. Then, I just associate one build tag
    with each topic. When I'm creating a version for group1, for
    example, I'd just include all topics with a build tag that includes
    group1 (e.g. group1, group1group3, group1group2group3, et. al.). I
    omit the others (e.g. group2group3, group2group4,
    group2group3group4group5...et. al.).
    As you can imagine, this solution is problematic. First, I
    have to create and keep track of many many build tags. Then, if I
    want to create another version of Help, I need to change all the
    build tags to include this new group.
    I'm sure there must be a better build tag expression for what
    I'm trying to accomplish. Please help! Thanks!

    There is indeed an expression! Unfortunately, the option is
    normally hidden, so it can be tricky to find. Here's what you do:
    1. Define the build tags.
    2. Apply them to your topics. OVERLAPPING IS ENCOURAGED! That
    is to say, you can assign tag1, tag2, and tag3 to a single topic.
    3. Right-click the desired layout and select Properties.
    4. Click the Define button to the right of the Conditional
    Build Tag drop-down menu. The Define Conditional Build Tag
    Expression dialog will appear.
    5. Click the Advanced button. The Advanced area will appear
    at the bottom of the dialog.
    6. Select a tag from the Available Conditional Build Tags
    drop-down menu.
    7. Click the Add Tag button. The selected tag will appear in
    the Conditional Build Tag Expression display window.
    8. Click the AND button.
    9. Select another tag from the drop-down menu.
    10. Click the Add Tag button.
    11. Repeat steps 8-10 for each tag you wish to add to the
    expression.
    12. Click the OK button to close the dialog.
    13. Click the Save button to save your layout with the new
    build expression.
    That's it! The trick is to use the ADVANCED button in the
    Define Conditional Build Tag Expression dialog. Doing so allows you
    to build inclusional expressions rather than exclusional
    expressions, so you can avoid the hassle you described in your
    post. Using this method, I defined two build tags (A and B) and
    applied them to three topics as follows:
    * Topic 1: Tag A
    * Topic 2: Tag B
    * Topic 3: Tags A and B
    I then defined an expression that simply included tag A. When
    I compiled my help, topics 1 and 3 appeared in the output, but
    topic 2 did not.

  • Exists condition in APEX 4.0

    Hi
    I've created an application in APEX 3.2 and I've now installed it in an APEX 4.0 environment. I've had a few issues where things have changed, but I've just hit a rather bigger problem to do with the Exisits condition that I'm hoping someone can shed some light on.
    On numerous items, regions, lists items etc. I've used the "Exists (SQL query returns at least one row)" condition. In Expression 1 I've included a select statement which ends with a semi-colon. For example,
    SELECT 1
    FROM   my_table
    WHERE  id = :P0_ID
    AND    my_col = 'Y';Now in APEX 4.0 I sometimes get an error when running the application which is ORA-00911: invalid character. This happens when viewing a list which has this condition on one of it's items, but doesn't appear to happen on regions with this condition. However, if I update any item, region, list item etc. which has this type of condition when I hit Apply Changes I get the same error. If I remove the semi-colon then the error disappears. For the above example, Expression 1 needs to be changed to:
    SELECT 1
    FROM   my_table
    WHERE  id = :P0_ID
    AND    my_col = 'Y'I've checked the Release Notes for 4.0, the Patch Set Notes for 4.0.1 and searched this forum but I've found no reference to this. (Perhaps I'm searching for the wrong thing.)
    Is this a planned change? Has anyone else experienced this? Does it only happen in certain places? I don't particularly want to go through all 20 of the APEX repositiory tables that have the Condition Type column to try and identify all the places I've used this and then change all my applications. This will be extremely time consuming, so if I know that it's a change in say only 5 places then I'll just target those places.
    Many thanks for any help on this.
    Sara

    Hi Sara,
    in previous versions of APEX we where more tolerant in regards to adding a semi-colon at the end of a SQL statement where it actually doesn't belong to. A semi-colon only has to be entered for PL/SQL commands or SQL statements within a PL/SQL code block, but never for a single SQL statement as in the case of "Exists" or an Interactive Report query. In 4.0 we have now added design time validations of SQL statements and PL/SQL code in conditions as well. Before it was stored unverified. That's why you are now hitting the problem each time you modify such a component.
    I don't think that we actually changed the runtime engine to be as restrictive as the Builder validation yet, but going forward that might be the case as well in future versions of APEX. Regarding your specific problem for list entry conditions, I don't see that the code has really changed here. It's using the same function to evaluate the condition as we use for regions and a quick test also proves that list entry conditions still accept the semi-colon.
    But I will file a bug for the new "Advisor" feature that it should also flag those components which are using a SQL statement with a semi-colon. That should help to easily identify there components where a change should be made.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Nested CASE expressions in SQL Server 2008 R2

    Hi, For some reason when I use the below CASE expression in my SELECT statement I get duplicate records.
    CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END AS CaseResult
    Also tried using coalesce with no luck. How to write a nested CASE expression which would yield just one expression. In case if I have to combine 2 different Expressions for 1 record, Is there a way to merge the 2 Expressions writing CASE
    expression something like below.
    STUFF ((SELECT ',' + CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END
    FOR XML PATH(''), ROOT('MyString'), TYPE).value('/MyString[1]','VARCHAR(MAX)'), 1, 1,'') AS CaseResult
    --ResultSet
    CaseResult
    <Expression 1, Expression 2>
    I am using SQL Server 2008 R2. Thanks in advance.......
    Ione

    Hi, For some reason when I use the below CASE expression in my SELECT statement I get duplicate records. Also tried using coalesce with no luck. How to write a nested CASE expression which would yeild just one expression. In case if I have to combine 2 different
    Expressions for 1 record, Is there a way to merge the 2 Expressions writing CASE expression something like below in SQL Server 2008 R2.
    CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END AS CaseResultSTUFF ((SELECT ',' + CASE WHEN <Condition 1> THEN <Expression 1>
    WHEN <Condition 2> THEN <Expression 2>
    WHEN <Condition 3> THEN <Expression 3>
    WHEN <Condition 4> THEN <Expression 4>
    END
    FOR XML PATH(''), ROOT('MyString'), TYPE).value('/MyString[1]'<span clas
    Ione

  • 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.

  • Receiver Determination -- Expression Editor is empty

    Hi all,
    Scenario is the following:
    SAP (RFC) sends data to XI (3.0), XI sends it to Oracle DB (stored procedure)and gets back the return-message from Oracle, then forwards it to SAP (RFC). (Inbound Synchronous). Everything works well.
    Now I'd like to add just a condition to the existing  Receiver Determination and here's my problem:
    Receiver Determination --> Conditions --> Left Operand --> Expression Editor (there's no structure, everything empty!) I've even refreshed xi cache etc. No success!
    Could you please help me? All kind of suggestions / documentation are welcome!
    Thank you in advance!
    Greetings from NC
    Khaled

    Hi all,
    Thank you very much for your suggestions. FYI, I've done the followings:
    - Did clear SLD cache and 'Complete Cache Refresh' (TA:sxi_cache).
    - Did insert manually an xPath expression --> getting errors.
    - Did add the SWCV of Sender to the Receiver and vice versa (in SLD) --> so there's a link between both.
    Still not working and getting the message in Integration Builder: "Message interface no longer exists in the Integration Repository."
    I'll appreciate any further suggestions.
    Have a good time!
    Regards
    Khaled

  • How to use switch condition in XMII??

    Hi ,
    I am not able to find the output path for the match values of switch statement.
    Please explain in detail.

    Hi Ravi,
    I added 3 inputs by using configure button of switch action->results 3 matchvalues.
    After that i placed the condition in each MatchValue expression by mapping it to the Repeater output variable on which i written the condition in above expression.
    first sqlquery--> xMII xml document --> Repeater --> switch
    And i did the calculation after switch by using assignment and row.
    but after executing the above transaction in the output trace it is entering into repeater and switch but it is not entering into sequences after switch.
    But it is repeating switch based on the number of rows of output by using repeater
    Means some problem with switch can u pease clarify it
    after adding the condition for each match value i added 3 sequences below that switch and there i had used assignment action to assign the value from repeater which has to be calculated to transaction variable.
    then i had used xMII xml row and i am getting the values from transaction and repeater and i am configuring this row to document output which i used above repeater.

  • Query help Multiple values in condition

    Hi,
    I am trying to do something like this
    SELECT clave_grupo FROM SS_TTABLAS
    WHERE CLAVE_GRUPO IN
    CASE WHEN (condition) THEN 'v1'
    ELSE ('v1','v2',v3')
    end
    This is the error msg:
    ORA-00907: missing right parenthesis
    just before ,'v2',v3')
    Is it possible?

    Hi,
    Welcome to the forum!
    Here's one way:
    SELECT  clave_grupo
    FROM      ss_ttablas
    WHERE      clave_grupo     = 'v1'
    OR     (     clave_grupo     IN ('v2', 'v3')
         AND     NOT condition
    ;A CASE expression returns a single value. The error in what you posted was that the ELSE branch was trying to return 3 values.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • How to implement PL/SQL expression in Report conditonal?

    Hi All,
    In my application i am want use Pl/SQl as expression in Conditional Display for Report region. Can you please suggest me how to handle using PL/SQl expression in conditonal.
    Thanks,
    Anoo..

    In general terms, your PL/SQL expression should evaluate to true or false - true will display the region, false will hide it. It's analogous to writing the conditional expression part of an if statement.
    So, if you had normal PL/SQL code that looks like this:
    if :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0 then
    end if;The equivalent conditional pl/sql expression would simply be:
       :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0 Note: this is NOT the same as you would do for "PL/SQL body returning boolean Expression", which looks more like:
       return :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0;or
    declare
       bl_retval boolean;
    begin
       bl_retval := :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0;
       return bl_retval;
    end;

Maybe you are looking for