Conditional display of component of the ADF

Hello community,

I created a form for a workflow task processing human soa with two different steps. It is possible to display a uicomponent only in the first stage of the human task?

Thanks for your replies!

BR, Gustav

User, please tell us your jdev version!

To do this, you use the visible property of the components. Set the property to an EL and the component appears if the EL evaluates to true.

Timo

Tags: Java

Similar Questions

  • Dynamically set object to display a table of the ADF

    I need set dynamically the view object used by a table based on almost 100 different choices. By example, if you click on departments then use the DepartmentsView object for the table.

    What would be the best way to address the issue? I think I have to essentially dynamically bind the array to a display object, or run the query by program and update the table.

    I'm sure that others had to do something similar, so if there are resources available that address this specific approach if someone could provide a link? Otherwise if you could help me with the code for this and tell me where to go, who would be most appreciated.

    JDeveloper 11.1.2.0

    Thank you!

    Published by: 862567 on August 3, 2011 04:29

    Using Facelets? I just did a test and found that ADF dynamic array is not available (but ADF read-only dynamic Table is) in a Facelets page, but it is in a JSP page.

    John

  • How to conditionally display images based on the values of the variables

    I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.

    I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.

    Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.

    Thank you

    Josh

    Hello

    When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.

    However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • What component of the ADF to use?

    JDev 11.1.1.1.3.0

    I need to display a message window/popup when clicking on a button, as it appears as a box in light that gray on the background page and keeps the window pops-up/highleghted. Clikc the OK button on this popup, popup closes and returns to the original page.
    Hanks,

    (a) component that can be used for that of ADF Faces 11 g
    (b) can you help code snippets to make the post script

    Thank you very much

    Example here:
    http://jdevadf.Oracle.com/ADF-richclient-demo/components/dialog.JSPX
    Use the option 'page source' see the code.

  • Display a table in the ADF Mobile app

    The source of data for the mobile adf application I'm building is the Oracle database. I developed a SOAP web service to retrieve data from database. However, I do not understand how to map data from the web service to adf mobile application.

    I intend to display the data in a table on page amx of adf mobile application. Please advise me how to do this.

    To look at an amx:iterator to browse the lines.

    And it generates amx:table and rowLayout while doing it.

    http://docs.Oracle.com/CD/E35521_01/apirefs.111230/e26230/TOC.htm#AMX:rowLayout

  • Management component of the ADF based on Web Service

    Hi Experts,

    Jdev 11.1.1.7

    How to create a from ADF BC of web service proxy.  Long time back I saw a post that shows step by step implementation on even use cases. I guess it was Frank Nimphius post.

    I googled a lot, but not found. Looking for simillar post.

    Thank you

    Nitesh

    In this case: http://www.oracle.com/technetwork/issue-archive/2012/12-jul/o42adf-1653060.html

    Dario

  • Presentation of the ADF for the recipients display

    Hello

    JDev version: 11.1.1.7.2

    have a requirement to indicate the recipients contact in a window. I'm confused on what provision ADF must be used.

    Requirement is. To: < .input field > <. Contact name1 > <. Contact name2 >... |

    Contact names can be up to any number. So, if we take the maximum width, next contact should be in the next line.

    Currently I use a For: each iterator to browse a list mapped to the bean and show a text and a close button. It is wrapped inside a layout of the Group Panel with horizontal layout. I need to organize the collection of these group of Panel layouts in a different layout.

    As far as I know, the PanelGroupLayout can be horizontal or vertical. So it does not help me. PanelFormLayout arrranges contacts first vertically. So I can't use it here.

    Y at - it no other component of the ADF that can be useful? Or I have to write code and create components with different layouts programmatically?

    Hi user

    Use Panel group put in page inside iterator or forEach and set its style inline like this

    Display: inline-block;

    and then surround iterator or forEach with panelGroupLayout (default layout) and check

    When you check resumes maximum width it will automatically move to the next line

    Ashish

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • Hierarchical data in the component of the tree should not be visible

    JDeveloper version - 11.1.1.7.0

    Default in the ADF, the performance of a page with a tree component, existing hierarchies are displayed as trees.


    For my requirement the TRIE hierarchies will not be displayed and component of the tree must be empty when the page runs.

    Why not just use the executeEmptyRowSet(), as described here:

    http://www.jobinesh.com/2010/05/displaying-empty-table.html

  • Component attribute declarative ADF back scope of bean

    Hi all

    I create a declarative component of the ADF for custom LOV which is populated according to model LOV. This declarative component ADF allows several selectable values.

    On the selection of the values, I would like to display the ID and the value to the user in two different text boxes.

    The ID attribute is binded to #{binding.empId.inputvalue}

    The value attribute is binded to #{backingBeanScope.customSearchBean.empNames}

    < abfc: MultiSelect KeyValue = "#{bindings." KeyAttribute EmpId.inputValue}"="EmployeeId"ValueAttribute = 'FirstName' LovModel = ' #{bindings." EmpId.listOfValuesModel}"id ="ms1"ValueAttr1="#{backingBeanScope.customSearchBean.empNames}"/ >

    Problem:

    KeyValue attribute is set and displayed properly, but ValueAttr1 is not set correctly?

    I have attached the code example in the post. Can you please help me?

    Kind regards

    Sudhir Koneru

    OK, not the kind of comments in the class, I'm used to, but at least I understand your problem.

    The solution is that you have to ppr the second inputText (it3) where you want to print the #{uploading. ValueAttr2 value}. This is necessary, just like the auto ppr not now that this field should be updated once the research is completed, only the defined parameters in the link layer are automatically updated. That your domain is not defined in the link (like the "it2" inputText) layer you have ppr it yourself. This is the new part of the MultiSelect.jspx page that defines your declarative component.

    Please note that the inputText it3 listen now to the OK button on the pop-up window of research. What you should do with the other field too, as you can whether or not the storage is defined in the link layer.

    Timo

  • How the management of exceptions in the adf?

    Hi user,

    IAM using jdeveloper 11.1.2.3.0

    I have a requirement how to make the exception handling in the adf

    like Ex: unique constraint violated error can be see in the form of personalized messages

    Hi Sandeep,

    You can use the following link, I think it will be useful for you

    ADF: Custom Error Handler to display custom user messages | The ADF tutorials

  • View the ADF Images of PATH

    Hi all, I have this problem to display an image in the ADF.
    I show you a picture that I have in my aplicattion (Web Content / Images), these images is based in the employe_id for example the name of the image is 100.jpg, 200.jpg.
    How can I load these images NOT database, but the path in the application? for example when employees_id = 100 see the image of this employee, when the employees_id = 200 see the image of this employee. These images must be responsible for path in the request that contains images of all employees.

    Thanks for all!

    There are two possible solutions:
    (1) the imanges you want to view are under the web root of your application. in this case, you can use the image tag and allows you to build the right way to show EL
    (2) image files are elsewhere. In this case you cannot use the tag of the image this way. However, you can adopt the wokrflow described in my blog http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ (which you already know). Here, you change how the data is read (in the example, it is read from the database) in a way that you read data from the file. In the servlet, you have access to the file path and you only need to add the empId and ".jpg" to get the full name. You open the file and stream in the outpoutstream. There is no need to use a BlobDomain in this case. This is done in the sample, all simply because the images are read from the database.

    Timo

  • Best practices for handling logic conditional dialogue/popup in the ADF?

    Here's the scenario:

    I have a page that shows a popup programmatically in a method of bean support. The popup asking the user a yes / no question and subsequent logical path is determined by their response. However, if the popup is visible or not in the first place is conditional. In addition, there is an additional logic in the original method, apart from the logic of popup, that must be met.

    The problem with this is that the ADF seems to spin off the popup in another thread and prevents the execution of logic in the original method at the same time, while you wait for the response from the user. However, the desired effect is that the program stops until the user has answered the question in the context menu.

    I was not able to understand in an elegant way to make this happen. Ideally, I think that the solution is to encapsulate the logic that occurs after the popup is displayed (or not shown) in the original method and call it from the popup action listener if the popup is displayed (if not call it the original method of). However, the logic should be encapsulated requires the use of some local variables that have been put forward for the popup to appear. There is no way to get these values to the popup action listener method to pass them on to the encapsulated logic (aside from the creation of global static variables in the bean, which seems to be a bad solution).

    Another idea I had was to get the logic ' show/do not see the popup' workflow. However, it seems that for every single popup would make the really complicated workflow.

    Is there a 'best practice' recommended to handle this situation? It must be a common problem, and it seems that I will talk all wrong.

    However, the desired effect is that the program stops until the user has answered the question in the context menu.

    This will not happen in any web environment, including ADF.

    You will have different events for each life cycle:

    1 - opening popup: popupFetchListener event

    2 - Click on OK, Cancel buttons: DialogListener event

    3 - Press the Esc button: popupCancelledEvent

    You can share data between these events on pageFlowScope, or viewScope.

    But if you use the ADF BC, you might be better to use transient attributes on the objects in view.

  • Find a component inside the jsf fragment using javascript in adf

    Hi all

    I use jdeveloper 11.1.1.5.
    I want to find a component inside my frgament of jsf using javascript.
    Inside the jspx page, I was able to find the component using
    AdfPage.PAGE.findComponentByAbsoluteId ("ID");

    Now my requirement is I have a fragment of jsf, and I want to find the component within jsf frgament using javascript.

    I'm looking for the component.


    Please suggest

    Thank you

    Published by: Navin K December 21, 2011 16:24

    Hello

    fragments are displayed in the ADF regions, which are containers of naming. So a good strategy would be to first find the region

    var region = AdfPage.PAGE.findComponentByAbsoluteId("regionId");
    
    if(region != null){
    
      var comp = region.findComponent("ID");
      ...
    } 
    

    Another option would be

      var comp = AdfPage.PAGE.findComponentByAbsoluteId("regionId:ID"); 
    

    If you have a side handle server for the component, and then a third option exists, which is to call getClientId on this element and pass the customer ID to the JavaScript (for example af:clientAttribute)

    Frank

  • Conditional display of the region

    Hello

    I'm under APEX 5.0 on an Oracle 12 c server.  I created an application that will be used by several different people in an office.  Each person needs to see another part of Contacts when they connect.  I also gives users the option to display or not to display various parts on the home page according to their preference.  The issue I'm having is trying to control the display of a region where the APP_USER must match a user name AND an element (P7_CONTACTS) is not equal to 'C '.  If it's only one condition, I have no problem with displaying or hiding in the region, but with multiple conditions, I can't find a solution.  I thought to use the condition EXISTS, but can't get that to work, most likely because I write the incorrect query.  I think I'm missing something obvious, but frustration is clouding my ability to think clearly at this point.  Any suggestions would be greatly appreciated.

    Bob

    wisers wrote:

    The session state Viewer shows that: p7_contacts is 'C' when the box is checked and null when it is turned off.

    Second, the State must be:

        :app_user = 'WISERS'
    and :p7_contacts is null
    

    A null value is not equal to, or does not correspond to anything...

Maybe you are looking for