How to conditionally render LOV/Output text?

We have following requirement:
From task_flow1, user can navigate to task_flow2 on a button click.
If product_id parameter is not passed by task_flow1, in task_flow2 page we want to show a LOV allowing the user to enter the product.
If product_id parameter is passed, we want to show product as output text.
Can we do this using EL in rendered properties for LOV/output text attributes?
TIA

Thanks Frank/Raghu!
Frank, how to pass parameter to memory scope of the target task flow? where exactly should I check if the parameter exists? In EL for rendered property of LOV/Output text?
Raghu, I could not find "Dynamic user interface" in jdev guide. Can you please point me to specific section.
Thanks again!

Similar Messages

  • How to Conditionally Render Command link within af:forEach

    Hi,
    We have a requirement to conditionally Display/Hide CommandLink item in af:forEach Loop.And this customization is on the Fusion Compensation applications
    <af:forEach items="#{bindings.RegionalAreaPVO.rangeSet}" var="parent">
    <af:spacer height="10" id="s1"/>
    <af:commandLink inlineStyle="font-weight:bold;" text="#{parent.ItemName}" partialSubmit="true" actionListener="#{backingBeanScope.RegionalAreaBean.launchTaskflow}" id="cl1" rendered="#{backingBeanScope.XXWFCRegionalAreaBean.modelEligibleflag eq true}">
    <af:setActionListener from="#{parent.Code}" to="#{parentNode}"/>
    </af:commandLink>
    </af:forEach>
    I have added a Cutom Managed Bean Class and Returning boolean value to Control Render property which is working. But now i want to add business Logic based on 'parent.ItemName' or 'parentNode' Values in the bean method to return proper Boolean value.
    But i am unable to get the Current Iteration values in the bean method.
    I am using below EL expressions to get the values. But no luck.
    String nameel = (String)ADFUtil.evaluateEL("#{bindings.parent.ItemName}");
    String codeel = (String)ADFUtil.evaluateEL("#{parent.Code}");
    String nodeEl = (String)ADFUtil.evaluateEL("#{parentNode}");
    Also, i have tried getting the Row object like below but i am getting the First row details always. My intention is to get Current row values and use them for Business logic.
    ViewRowImpl row =
    (ViewRowImpl)ADFUtil.evaluateEL("#{bindings." + VoName +
    "Iterator.currentRow}");
    String code = (String)row.getAttribute("Code");
    Third option i have tried is to add a dummy Outputtext and have assigned #parent.Code as Value. Idea is to find Component of OutPut text in managed Bean and get the value of it. If Value is say "Model" i want to add more Logic and return true/false accordingly. In this also, i am getting all occurences of Output text in Managed bean and i a unable to identify Current Iterator Index.
    Any help is highly appreciated on how can i render Command link Conditionally based on forEach Loop values and Index.
    Thanks
    Kaja

    I have used Condition expression in Render Property to resolve this.

  • How to Conditionally Rende the Images in af:treeTable...

    Hi,
    I need to conditionally render the Images in af:treeTable.
    First let me explain my requirement clearly...
    I need to display Dept --> Emp in a tree View format... Some thing like
    Dallas
    --> Smith
    --> Scott
    --> Tiger
    New York
    --> XXXX
    --> YYYY
    --> ZZZZz
    Along with these i need to display Add and Delete Command links in second column.
    But Delete Operation should not available for Departments...
    So how to conditionally stop delete image from rendering for departments...
    Waiting for your response...
    Thanks in Advance...

    You don't need disabled though rendered property. Sorry.
    You'll find it in property inspector for image component. There you will enter the binding to the method that you should write in backing bean (method name must start with "get"). You can also use binding editor for entering correct binding string while working in property inspector.
    Method in backing bean, for example:
    public Boolean getRenderedImage(){  
    Object obj = FacesContext.getCurrentInstance().getApplication().
    createValueBinding("#{row.row.currentRow.dataProvider}").
    getValue(FacesContext.getCurrentInstance());
    /* next ushould cast this object to whatever it is and se if it should be rendered or not and return true or false. To see what is the cast object you could put break point after getting obj and see Class name.
    One thing. You should see what is the binding name for row elements in your table. By default it is "row" if you did drag&drop. If it is "row1" you should change the string above to: "#{row1.row.currentRow.dataProvider}".

  • How to create a conditional checkbox to output text

    Hello,
    I have an interesting situation, I have an interactive spreadsheet that has a clickbutton that will open outlook to email the form. It also creates a subject line to email based on fields in the pdf, I used the following code for that:
    <script contentType="application/x-javascript">//Create a variable to hold the document  object
    var oDoc = event.target;
    oDoc.mailDoc({
    bUI: true,
    cTo: "[email protected]",
    cSubject: Employee_Name.rawValue + ", " + Service_Area.rawValue + " ," + Employee_Number.rawValue  + " ," +  Dropdown1.rawValue
    </script>
    What I'd like to do to extend that is make it so if one of three checkboxes are clicked then it adds it to the email subject line eg.
    [ ] A
    [ ] B
    [ ] C
    If A = checked then D = "A"
    else
    if B = checked then D = "B"
    else
    if C = checked then D = "C"
    cSubject: Employee_Name.rawValue + ", " + Service_Area.rawValue + " ," + Employee_Number.rawValue  + " ," +  Dropdown1.rawValue + " ," + D
    So basically I want D to be some varible I add, how would you do this? Do I need to create something in the event part of the email form button or declare it elsewhere?
    Thanks

    Hi,
    Are you sure that that will be CheckBox? As we can check more than one choice. But in the subject line you are using one variable i.e. "D".
    However, if you want to check only one CheckBox and that's to be added do the subject line. Then try the following.
    Create a hidden textfield. Say Hidden_Field. In the click or change event of the checkbox you have to write a bit of script so that it stores the choice in the hidden field and you can add the rawValue of the hidden field in the subject line.
    In the Change or Click event of CheckBox .
    If (this.rawValue == 1)
              Hidden_Field.rawValue = "A";
    else
              Hidden_Field.rawValue = null;
    Now replace the D in the subject line with Hidden_Field.rawValue ;
    Thanks,
    Bibhu.

  • How to display html content in output text in adf

    Hi ADF Experts,
    I have a requirement like ,one of my function is generating this below html,
    I wan't to render in output text
    <span>d</span><del style="background:#ffe6e6;">f</del><span>df</span><del style="background:#ffe6e6;">d</del><ins style="background:#e6ffe6;"> </ins><span>f</span><ins style="background:#e6ffe6;">gfgfg</ins>
    Please help.

    Thanks Puthanampatti,
    with escape property in outputtext it is working now.

  • Truncate output text in hierarchyViewer component

    Hi,
    I want to display the text with truncated to 30 characters only. I identified the outputText and added the truncateAt attribute and set it to 30. but it doesn't seem to work. Moreover the line - truncateAt="30" is underlined with orange squiggly lines indicating that there is some error and when I mouse over it , it says that this attribute is not supported when the component is inside of a hierarchyViewer component.
    Any pointers how can I truncate the output text to 30 characters only?
    Thanks,
    Dhirendra

    hi Vinod,
    Thanks for the reply.
    I have run it and it doesn't work. Use case is that we have a hierarchy viewer and I want to just truncate the long names of the Node Title.
    Here is my local deploy link
    http://rws65447fwks:7101/projectsManagement/faces/ResourceManagementDashboard
    All I want to do is truncate the Node Title and limit it to lets say 30 characters. So "Resources with No Pool Membership" becomes "Resources with No Pool Mem..."
    I tried to change in the jsff file and add the attribute called truncateAt and set it to 30, but as I said it says by underlying squiggly lines that the attribute is not supported.
    Please let me know against what team should I file a bug? or it has to bean SR?
    Thanks,
    Dhirendra

  • How to check && condition in output text

    I want to check a condition like this in output text
    <af:outputText id="t1" value = "#{empty bean.text1 && empty bean.text2 ? 'temp1' : 'temp2' " />
    It throws an error saying "Expected name instead of

    If you are editing the el expression in source tab of your jsff/jspx file use the below el:
    <af:outputText id="t1" value = "#{empty bean.text1 *&amp;&amp;* empty bean.text2 ? 'temp1' : 'temp2' " />
    If you use the el: <af:outputText id="t1" value = "#{empty bean.text1 && empty bean.text2 ? 'temp1' : 'temp2' " /> in the property inspector, then it gets converted to the above expression.
    Hope it helps.

  • How can I output text in a browser window in JAVA?

    How can I output text in a browser window in JAVA?

    "response.getWriter().print()" is the most common method when using servlets

  • How to show exponent value in adf output Text

    Hi,
    How to show values in the table column output text with exponent values like 3 ^rd^ , 2 ^2^ , Hello ^R^,etc.. ?
    Do we have any RichFormatText for the ADF output Text?
    Thanks..

    yes...got it myself...thanks..

  • How can i render one facet in panel splitter based on conditions?

    Jdeveloper Version - 11.1.1.5
    How can i render one facet in panel splitter based on conditions?
    Ex : In horizontal Panel splitter first facet - af table
    second facet - af table
    if any one table estimated row count is zero i nedd to render the respective facet?
    is it possible?
    Please help..
    Thanks
    sk

    Yes you can do it but not on facet you can apply rendered attribute to the any of the child component of the facet.
    Thanks
    Raghav

  • How i can include smarform output as a body text in Email

    Hi experts,
    Can anybody tell me how i can include smartform output ( invoice related data) as a body text in an Email .
    Regards,
    Ratheesh

    Hi,
    You will have to generate the spool of your smartform output & capture the spool in internal table.
    Pass the same to your Email body.
    Search using text "Smartform spool email" & you will get a sample code.
    Best regards,
    Prashant

  • How to add output text programmatically??

    Hi Team,
    Jdev Version - 11.1.1.6.0
    I have a requirement like-
    I want to add output text on click of button mean programmatically. Everytime i click on button output text get add above previous output Text.
    Just like in blogs user share their comments and once click on share it gets add in list above previous comment.
    I have pop up and once i fill fields in popup and click on OK button of pop up, comment will add in list.
    Could you please help me how i can add output text on click of button one above one.
    Thanks in Advance.
    Thanks & Regards,
    Ramit Mathur

    1) Use a Collection to hold the comments. It could be in-memory (List<String>) or backed by DB (using a ViewObject) depending on your use-case. On every comment submission add the comment to the collection object.
    2) In the page, iterate through the collection using af:iterator and include the output text within the iterator.

  • How to resend the RMAN output to a text file

    Hi ,
    I am using RMAN for backup purpose.
    How should we send the output of RMAN to a text file.
    For Example If we issue the following command then how should we send the results of that command into a text file:
    RMAN> report obsolete device
    type 'sbt_tape';
    result:
    RMAN-03022: compiling command: report
    RMAN-06147: no obsolete backups found
    Any ideas will be great for me.
    Thanks
    Kumar

    Example:
    [oracle@ozawa oracle]$ sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Thu Mar 4 09:38:40 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> spool my_output.txt
    SQL>
    SQL> host rman target /
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    connected to target database: LQACNS1 (DBID=1237456636)
    RMAN>
    RMAN>
    RMAN> quit
    Recovery Manager complete.
    SQL>
    SQL> spool off
    SQL>
    SQL> quit
    Joel Pérez

  • Conditional render attribute -- how to achieve this behavior?

    hi,
    the easiest way to explain the behavior i want is the following:
    sometimes, i want:
    <h:commandButton id="myButton" action="#{myBean.doSomething}">
    <f:ajax render="displayArea"/>
    </h:commandButton>
    and other times i want (render nothing):
    <h:commandButton id="myButton" action="#{myBean.doSomething}">
    <f:ajax render=""/>
    </h:commandButton>
    so basically, i have an area on my page that i want to render intelligently based on clicking a button. when clicking the button, if doSomething() is successful i want to re-render the "displayArea" div, however, if the result of doSomething() is unsuccessful, i do not want anything to happen to the "displayArea" div (that is, i want it to be left completely alone and untouched -- still retaining the contents from the previous successful render).
    essentially, i want to re-render an area only when it suits me. i do not even want to re-render that area with the same contents as the last successful action because that area is scrollable and doing so would lose the user's scrolling position by re-rendering it, even if only re-rendering the same contents.
    is there any way to achieve this specific type of "conditional render attribute" behavior?
    thanks in advance for any suggestoins!
    -victor

    hi, thanks for your reply...
    but unfortunately, i have tried your suggestion and it doesn't fit the behavior i want...
    if i do:
    <h:panelGroup rendered="#{myBean.shouldIRender}"> </h:panelGroup>
    when the shouldIRender is evaluated to false, the entire area disappears from the page literally (as expected), since by definition we are telling it not to render at all. so whatever html content i had in that area is gone from previous successful renders.
    but what i want is to persist whatever html content that was rendered previously. i want the area to literally be "untouched/untampered" by JSF at all -- as if the render attribute didn't have any value at all (nothing to render).
    i hope this clears it up more as to what i am looking for, it is tricky...
    thanks again

  • How to create an output condition record for output type

    For SD LE shipping...
    Create an output condition record for output type
    Thanks!
    Message was edited by:
            Hoo Laa
    Message was edited by:
            Hoo Laa

    Hi Hoo,
    Follow the path.
    SAP Easy Access -> Logistics -> Logistics Execution -> Master Data -> Output   -> Shipping - > Create.
    Tcode: VV21.
    Hope I have clarified your query. Do reward if so.
    Regards
    Nadarajah Pratheb

Maybe you are looking for

  • Text is not coming in french

    hi, whenever i am executing this in french , the text is not coming in french language . but in english it is coming perfectly..can some body give the reason?? at selection-screen on value-request for select1. call function 'F4_DD_TABLE_FIELDS'     

  • How can I make my ipad recognize the change of Apple id?

    icloud does not recognize my new Apple id. ipad 3

  • Reverse Video on iChat

    I want to use iChat for dance rehursals/classes and choreagraphy. In order for it to be successful, the video being seen by the 'viewer' needs to be reversed... EG: i point with my left hand and the viewer 'mirrors' my move with his left hand. Curren

  • User define Function at Mapping Time

    Hello Everyone, My requirement is I input the one value to the user define function (at mapping time). That function calls the RFC to R/3 system and return the 3 output values. Now my question is how can I return 3-output value from the user define f

  • Double clicking the home button frequently opens the search feature instead of the multitasking feature. Any solutions?

    As stated, double clicking my iPod's home button pulls up the search feature, when what I want is the multitasking feature. This issue is extremely frustrating; I don't even use the search feature! It doesn't matter if I make two deliberate clicks, t