Hide checklist in ADF form

Hi All,
I would like to hide some of the list box and only show them if some specific options choose in the previouse checklist then show that list...
for instance I have a checklist1 which shows all my failures if I choose F1,F3,F4 then I would like to see my next checklist which is reason, otherwise nothing shows. by another words, if I choose F2, I dont want to see reason...
Can you please advice...
Thanks,

Here, is the sample based on your use-case:
Sample.jspx:
<af:document id="d1">
<af:form id="f1">
<af:selectOneChoice label="Choose Choice" id="soc1" autoSubmit="true"
immediate="true"
*valueChangeListener="#{SampleBean.onValueChange}">*
<af:selectItem label="F1" value="F1" id="si4"/>
<af:selectItem label="F2" value="F2" id="si2"/>
<af:selectItem label="F3" value="F3" id="si3"/>
<af:selectItem label="F4" value="F4" id="si1"/>
</af:selectOneChoice>
<af:selectOneChoice label="Reason" id="soc2" *visible="false"*
*binding="#{SampleBean.reasonLOV}"*
*partialTriggers="soc1">*
<af:selectItem label="Reason1" value="Reason1" id="si7"/>
<af:selectItem label="Reason2" value="Reason2" id="si6"/>
<af:selectItem label="Reason3" value="Reason3" id="si5"/>
</af:selectOneChoice>
</af:form>
</af:document>
*SampleBean.java:*
mport javax.faces.event.ValueChangeEvent;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class SampleBean {
private RichSelectOneChoice reasonLOV;
public SampleBean() {
*public void onValueChange(ValueChangeEvent valueChangeEvent) {*
*String newValue = (String)valueChangeEvent.getNewValue();*
*if (newValue != null && newValue.equals("F2")) {*
*this.reasonLOV.setVisible(false);*
*} else {*
*this.reasonLOV.setVisible(true);*
public void setReasonLOV(RichSelectOneChoice reasonLOV) {
this.reasonLOV = reasonLOV;
public RichSelectOneChoice getReasonLOV() {
return reasonLOV;
You can also download the sample at the following location:
http://adfsampleapplications.googlecode.com/svn/trunk/TestSampleApplication.zip
Thanks,
Navaneeth

Similar Messages

  • How to disable buttons in ADF form so it can be reused

    I would like to reuse the same Human Task ADF form for multiple User Activities in the same BPM 11g process definition.  The only difference between the User Activities in the process are the outcomes (buttons) allowed.  For example, in some User Activities, the outcomes allowed are APPROVE and REJECT.  In others, it might be APPROVE, REJECT, and REPROCESS.  Is it possible to hide, or disable, buttons in a Human Task ADF form based on some settings done in the User Activity, or something passed to the Human Task ADF form?
    I started digging, and I see in the jspx file for the form, there is an attribute named "visible" that is set as follows on the button:
    <af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                           text="#{wf:getResourceValue('APPROVE', 'bindings.customActions')}"
                           disabled="#{!bindings.APPROVE.enabled}"
                           action="#{invokeActionBean.invokeOperation}"
                           partialSubmit="false"
                           visible="#{wf:isCustomActionAvailable('APPROVE', 'bindings.customActions')}"
                           id="ctb2">
        <f:attribute name="DC_OPERATION_BINDING" value="bindings.APPROVE"/>
    </af:commandToolbarButton>
    So if I can figure out a way to pass flags to the form, and then use those in the setting of the "visible" flag, would that do it?  Is there a better method?
    Thanks,
    Joe A.

    Set the binding to the button in the managed bean based on the input form parameter. For example if parameter value is paramValue1
    <task-flow-definition id="sourceTaskflow">
      <input-parameter-definition>
          <name>inputParameter1</name>
          <value>#{pageFlowScope.paramValue1}</value>
          <class>java.lang.String</class>
       </input-parameter-definition>
    </task-flow-definition>
    Set binding to not enabled.
    #{!bindings.CreateInsert.enabled}
    Some relevant references
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf
    Using Parameters in Task Flows

  • ADF table and ADF form on the same view object

    Hi,
    As per the ADF demos available on ADF site, I created a jsf page with 2 panels. One panel is an ADF table based on a view object. And the other panel is and ADF form based on the same view object. My requirement is that as I scroll through the records in the ADF table, the ADF Form should dynamically display the details of the record in the ADF table. My understanding is that this should be automatic. However, its not working as expected. What have I missed?

    Hi,
    Apply PPR for form that displays details.
    Like :
    <af:table id="t3">
    </af:table>
    <af:panelFormLayout id="pfl2" partialTriggers="t3">
    </af:panelFormLayout >

  • Issue while reflecting the data to ADF form from ADF Table

    Hi All,
    I have one scenario as follows:
    I have to open a form in entry mode. So I have used a Method Call activity in task flow to call "Create" in method call activity.
    Then form opens in a entry mode. I have a adf table in the page showing the entered data.
    When form opens in entry mode, instead of entering the values in the field User selects a record in ADF table, but due to the create mode of the form it will through me a error to fill mandatory fields.
    Please tell me the way so that if user selects the record(in adf table) instead of entering new record, the value would reflect in the Adf form.
    If I use a roll back on selecting the row of ADF table, then it is showing me this error "Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[null ]" because there will be no row key in the cache when form opens.
    Please suggest me the way to complete the task.
    I am using jdeveloper 11.1.2.1.0
    Thanks,
    Gobi
    Edited by: gobinkl on Oct 3, 2012 2:06 AM

    no no your are complicating yourself. :) better your should provide your usecase.
    first thing: go through the books & also adf blogs learn and understand the framework. as above person said.
    i hope that you had method call create as activity as default while page rendering it make your af: form empty(that is ready fir insertion format).
    so if your are doing like that.am sure it will throw some mandatory errors.
    error will not resolve unless without entering any data's.
    coming af:table why are using af:table - immediate = true / false(switching).
    immediate = true - skip over validation or by pass some validation in some phase - based on the component which you are using. (say as if you are using editable value holder,af:coomand button).
    grab the information here in an more legible manner.
    http://adfpractice-fedor.blogspot.in/2012/02/understanding-immediate-attribute.html
    let me know your usecase.
    this will assist you
    https://blogs.oracle.com/shay/entry/executing_an_action_on_jsf_pag
    http://tanveeroracle.blogspot.in/2009/09/adf-11g-createinsert-to-display-blank.html
    Edited by: user707 on Oct 5, 2012 9:02 AM

  • ADF forms based on BPM human tasks - Invoking webservices/view objects.

    Hi All,
    Is anyone aware of whether the following is a valid implementation that has been carried out before.
    1. ADF forms based on BPM 11G human tasks.
    2.The ADF forms invoke webservices via Webservice data controls. It is pertinent to note that the webservice bring back complex data types. We've tried writing a few forms, resulting in data benig brought back, but not being able to print them to the screen.
    3. The ADF forms also use View Object based on sql to bring back tables of data. If view objects are embedded within the forms, the applciation gives rise to a null pointer exception.
    Considering the form will be invoked via a BPM worklist entry, is there a setting or configuration we should consider before hand. Is this feasible, is there knowledge of this being done commercially.
    Any examples or information regarding the same will be immensely helpful.
    Thanks and Regards,
    Preethi.
    NB : I have posted this in the BPM forum as well as I feel it is relevant to both BPM and ADF.

    Hi Joonas.
    Plese let me explain me better for your understanding
    A big summary for what I meant it's the following:
    1- In the procces you made, when you add the HT activity, you have to implement it, this means declare the input(s) parameters you want. This implementation create the .task file.
    2- Create an application, and projects as HT you have. Each poject are based on the .task file, and automatically create a Data Control (for each project based on a .task) with all you need.
    This w'll be an empty application, so you can customize it all you want. The task selected should have all the parameters previously defined. Those parameters can change if you want.
    2- Create a page(s) in the task flow for the task implementation. You can even split the the payload of the task in differents pages, create your custom pages and any logic you need.
    3- An important aspect is how to match these application with the HT implemented in the process. It's possible, it's a configuration en the Enterprise Manager.
    4- Deploy your application
    All these are explain in the book I mentioned
    Th book you can find it here:
    https://blogs.oracle.com/soacommunity/entry/oracle_soa_suite_11g_handbook_1
    Regards Dariel.
    PS: Please, let me know if you need more details.

  • How to Show BI report in adf form ?

    How to show bi Report in adf form ?
    (i dont show dashboard in adf form

    Hi,
    check this : http://husaindalal.blogspot.com/2009/11/integrating-bi-publisher-standalone.html
    there are some other helpful links as well:
    http://brendenanstey.blogspot.com/2007/01/adf-faces-and-xml-publisher-success.html
    http://technology.amis.nl/blog/2296/building-a-report-in-xml-publisher
    http://technology.amis.nl/blog/1597/xml-publisher-display-input-parameter-sqllims
    ~Abhijit

  • ADF Form no longer functioning after being wrapped in layouts.

    JDeveloper 11.1.1.0.1 + ADF BC + ADF RC
    I had an ADF panelFormLayout that was functioning perfectly until I wrapped it in a panelSplitter and wrapped the panelSplitter in a panelStretchLayout.
    Now, when I query the correct results are initially displayed, but when I press the Next button, certain inputTexts don't change to display the correct values.
    Some of them change to reflect the current values in the iterator (those with partialTriggers), but most simply continue to display the values of the first record returned. The Previous button doesn't seem to work at all anymore.
    What am I missing here? Why would wrapping the panelFormLayout in other layouts cause this behavior?
    Thanks All!

    Heres the steps to create:
    - New > Application
    - New > 'Business Components From Tables' and make BCs for Employees and Departments
    - Edit EmployeesView to include where clause "WHERE Employees.LAST_NAME LIKE :last, and create String bind variable for 'last'
    - New > JSF JSPX
    - Insert PanelSplitterLayout into Form component
    - Drag ExecuteWithParams operation from EmployeesView into PanelSplitterLayout 'Second' facet as ADF Parameter Form
    - Drag EmployeesView from Data Controls as ADF Form with navigation buttons under ExecuteWithParams parameter form.
    - Set disabled=true for EmployeeId, FirstName, and LastName inputTexts in ADF Form
    - Drag DepartmentsView from DataControls into PanelSplitterLayout 'First' facet as ADF Tree, creating a two level tree: Department Name > Employees First and Last Name
    To produce the problem once running:
    - Enter '%' into the text box for the bind variable 'last', and click ExecuteWithParams button
    - You will see the next button does nothing
    - If you click ExecuteWithParams button again, everything starts to work again.
    Much thanks.
    Edited by: Alexander Pepper on Feb 4, 2009 7:51 AM

  • "Check Box" in ADF Form is not Working in JDev11.1.1.2

    11gR1 :
    I created an ADF Form in a JSF Page and I deleted one column and draged the same column again as an "ADF selectBooleanCheckbox "
    and in Edit Boolean Binding Dialog : I entered the value selected as 'True' and unselected value as 'False'
    and when I run the Page the data did not Synchronize with the chech box item.
    Note :- although the check box Item is working with Adf Table in example #145 at link http://blogs.oracle.com/smuenchadf
    can anybody help me?
    regards
    Forakora

    Hi,
    just tried and found out that you have to set partial triggers for the af:selectBooleanCheckbox like:
                  <af:selectBooleanCheckbox value="#{bindings.Deptno.inputValue}"
                                            label="#{bindings.Deptno.label}"
                                            shortDesc="#{bindings.Deptno.hints.tooltip}"
                                            id="sbc1" partialTriggers="cb1 cb2"/>
                  <af:commandButton actionListener="#{bindings.Next.execute}"
                                    text="Next" partialSubmit="true" id="cb1"/>
                  <af:commandButton actionListener="#{bindings.Previous.execute}"
                                    text="Previous" partialSubmit="true" id="cb2"/>regards,
    Branislav

  • Display and edit currently selected row of ADF Table in ADF Form

    I have an ADF Read-only Table and ADF Form, which were created from the same Data Control.
    I need to be able to edit the selected row of the table in the form (just like in "Binding Data Controls to your JSF page" part of "Developing RIA Web Applications with Oracle ADF" Tutorial). However, I can't figure out how to do this :(
    I found the following solution on the Web: #{bindings.DeptView1.currentRow.dataProvider.dname} - but it doesn't work, since "the class oracle.jbo.server.ViewRowImpl does not have the property dataProvider".
    Sorry for the newbie question.
    Thanks in advance for any help!

    Hi,
    AFAIK, dataProvider is not supported on ADF BC, hence the error.
    If you have created ADF Read only table and form from the same data control you just need to refresh the form based on table selection to show up the selected record, to do which you just need to add partialTriggers property to the panelFormLayout and set its value to the id of table
    Sireesha

  • How to hide fields in UIX form

    Hi
    I need to update the table with last_updated_by and last_updated_date every time if any change to the record. But I do not want to show these 2 fields on the screen.
    Could you help me how to hide fields in UIX form/any procedure to insert the data to database with out placing them in the screen .
    Thanks in advance.
    NRK

    Now that you mention it ... the rendered flag will stop the field from being rendered. So it's not even in the page. Stupid me.
    Have a look at formValue. These are rendered, but invisible fields in a form. That should do it (hopefully).
    In prepareForDML() you could simply call the setter of your date attribute that stores the date of the last update. There you pass the current date, or you could fetch the sysdate from the database and pass that. If you go that way, then the EntityImpl could make these adjustments automatically when inserting or updating and you wouldn't even need these fields/bindings in your UIX page.
    Just check what the operation is, and if it's an update or insert then call the setters of the attributes you want to update. Then call super.prepareForDML(). Something like that.
    It all would happen in the middle-tier, client not involved.
    So formValue should work, and the prepareForDML() stuff should also work. Don't know which way you want to go.
    Sascha

  • How to populate a session value into a ADF form InputText

    I have the user name of the person that has logged in as a session variable and what to popluate the created by and/or last updated by columns in an ADF form 10.1.3.0.4
    I tried to load in the save action by adding
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext econ = fc.getExternalContext();
    HttpSession session = (HttpSession)econ.getSession(true);
    this.inputText138 = (CoreInputText)session.getAttribute("UserName");
    but does not work.
    below is code
    from page def:
    <af:inputText value="#{bindings.LastUpdatedBy.inputValue}"
    label="#{bindings.LastUpdatedBy.label}"
    required="#{bindings.LastUpdatedBy.mandatory}"
    columns="#{bindings.LastUpdatedBy.displayWidth}"
    binding="#{mainBean.inputText138}"
    id="inputText138">
    <af:validator binding="#{bindings.LastUpdatedBy.validator}"/>
    from backing bean:
    public void setInputText138(CoreInputText inputText138) {
    this.inputText138 = inputText138;
    public CoreInputText getInputText138() {
    return inputText138;
    public String commandButton23_action() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext econ = fc.getExternalContext();
    HttpSession session = (HttpSession)econ.getSession(true);
    this.inputText138 = (CoreInputText)session.getAttribute("UserName");
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    operationBinding = bindings.getOperationBinding("ExecuteWithParams");
    result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return "printHighHelix";
    }

    Pl post details of OS, database and EBS versions.
    AFAIK, you cannot use multiple WHEN clauses in your control file.
    >
    when (1) = '1' and (431:432) 'CA' and (431:432) '04' and (431:432) '03' and (431:432) '01' and (431:432) 'NF'
    >
    Srini

  • How to clear last search criteria in ADF form?

    I'm building an ADF form. This form uses JTextField controls. When I switch to Find Mode, I want to clear criteria of the last search that JDev remembered. I've tried to remove ActionListener of FIND button in Navigation Bar, then add a new ActionListener that I created to handle FIND action myself. But the results are not perfect as I expected: JDev still filled the last search criteria.
    For example, I searched with these criteria: Code = 'ABC', the next time enter Find Mode, I want this criteria to be cleared. My code is below:
    JButton btnFind = navApplication.getButton(navApplication.BUTTON_FIND);
    btnFind.removeActionListener(navApplication);
    btnFind.addActionListener(new ActionListener(){
           public void actionPerformed(ActionEvent e)
         navApplication.doAction(navApplication.BUTTON_FIND);
         if (navApplication.getModel().isFindMode())
              txtCode.setText("");
              txtName.setText("");
              txtAddress.setText("");
    });

    Hi,
    Could, some body please answer to my question I raised above.
    Cheers,
    Krishna.

  • How to link a custom ADF form to BPM workflow

    Hi All
    Hope you are doing well.
    I've a basic knowledge on BPM, but had to start off with a project.
    My scenario is as below.
    1. User A clicks on a task in his BPM Worklist which should trigger an email to the same guy with a link in it (which is an ADF form to create a new row in a db with some values)
    2. Now, A clicks on the link send to him on Email, which opens up an ADF form where he provides all the details, along with the reviewer name(say, B, typically his manager, but he has to provide it, not derived automatically using getManger()) and submit.
    3. Now, this action should trigger an Email to the reviewer that he has provided in the form(step 2) where he can either approve or reject, with comments.
    4. Once B approves, A has to get a notification email saying the row has been created.
    The row that gets created in a db is a WS operation (createProject(with all the details))
    I'm seriously confused in designing this requirement.
    If I start the workflow with a Initiator pattern, just a click on the task should send an email to himself...How can this be done?
    How do we get in the ADF form that is in a seperate prj in to this workflow?
    How do we capture the values from the ADF form in to the BPM workflow?
    Would some one throw some light on how do we capture this scenario
    Regards
    RaviKiran

    Hi Tom Daria,
    This should work in SharePoint workflow 2013 task form.
    You can follow the step in the article you provide to custom the task form page, I tested it with the step, it can successfully bind the custom form page to the task content type.
    In the form page approve button event, you can add the logic to redirect to another page. In the workflow, associate the workflow with the custom task content type that will use the custom task form.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How to get the user logged at worklist (Adf Form - Human Task)

    Hi,
    I have an Adf Form Based on Human Task and and need to get the user logged at Worklist Application.
    Anyone know to make this ?
    Thanks.
    Victor Jabur

    Hi, thanks for your reply, but i discover a better way to make this:
    public String getLoggedUserWorklist(){
    String user = "";
    try{
    Map parameters=AdfFacesContext.getCurrentInstance().getPageFlowScope();
    IWorkflowServiceClient wfSvcClient = WorkflowService.getWorkflowServiceClient();
    ITaskQueryService queryService = wfSvcClient.getTaskQueryService();
    String contextId = (String)parameters.get("bpmWorklistContext");
    IWorkflowContext context = queryService.getWorkflowContext(contextId);
    user = context.getUser();
    }catch(Exception e){
    user = "";
    return user;
    }

  • Populate BAM data object through adf form.

    I want to populate a BAM data object using adf form as we do in case of database table by creating a data control. How to do this?

    Hi Simanta
    1. I am seeing lot of posts from you regarding this Java to BAM Data Objects integration.
    2. What exactly are you trying to do. Dataobjects are very tightly coupled with actual Database component that is used to create that like Table or View etc.
    3. Best way is. Create a data object. Export that DataObject using "icommand". See docs for this command usage.It generate a pure .XML file with all the details like DataObject name, external referenced Database details (datasource name), external Table or View details. Then mapping for EACH column on this object and that database stuff. Just see the xml file, Its pretty straight forward. When you Export Reports also, it creates an XML File exactly like this only but with more details like all column Formatting information etc etc. Export one Report also and see that xml 4. file.
    4. Both above XML Files are stored in ORABAM Schema. Tables of interest are :SysIterDataset, SysIterParameter, SysIterParameterValue, SysIterReport etc.
    5. Oracle do NOT expose any Public APIs to handle above stuff. But if you really really want, you can always manipulate XML content and reload to those columns any time. Need to add few query parameters to get exact row like ReportId, or DataObject Id which are just PKs etc.
    Still, I am curious why and what is the usecase where you want to do all this from Java code. Because DataObject is a one time thing. And note that it is used in Report. So if you modify data object like remove a column, then Report will die.
    By the way, all the WebServices exposed may be for ReadOnly purposes. I am not sure if you have services to modify them.
    Thanks
    Ravi Jegga

Maybe you are looking for

  • Photoshop Elements 10 - Error 400

    Please help.  When I try to sign onto Photoshop Elements 10, I get a 400 error that states "Photoshop.com services are currentlly unavailable.  Please try again later or check your network connections.  Error 400.  Does anyone know what the issue cou

  • Video to iphone3g

    hi i have just converted a movie for my iphone i read the instruction on how to put on iphone " Open Apple iTunes and drag the newly converted video files to the library window. If you have selected "Automatically update all videos" for the video pre

  • Trigger email if source file i not placed at the src folder every morning

    Hi All. I have a file to rfc scenario... the file is place at the source folder every morning... If the file is not place can we trigger an alert? or email? I was thiking of adapter scheduling but in case the file is not persent will it send an alert

  • How to recover from a corrupted VHD file?

    There is a tool that can recover logical problems in the VHD structure? A friend called me and told me that his VS R2 Enterprise with 4 VMs suffered a power falure and after that, one of the VMs does not startup anymore. The erros is the same as usin

  • HDV Qt playback problems

    I have a HDV 1080i50 project shot on a Z1 that i am having problems with. When i export the project as a quicktime movie the image seems very jerky when played back through QT Player. All the settings seem to be right but have heard of a possible pro