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

Similar Messages

  • How to: disable buttons in standard forms

    Hi all,
    does anybody know how to disable session date button from standard forms?
    I cannot find in forms (through Form Builder) the right data block / canvas where this button is.
    Thanks all.
    Jacopo

    I'm not aware of any "session date button". A button on a form can be disabled using the set_item_property.
    Use the layout editor and double-click the button. It will tell you what button it is. The button will also be highlighted in the Object Navigator window.
    Message was edited by:
    Mark Roberts

  • How to disable debugger for sapscript forms.

    How to disable debugger for sapscript forms.
    Once activated in se71-Utilities-Activate debugger I do not know how to disable it

    Thank you Rich
    I assigned you points for good answer on my preavious mail)
    . Actually my real problem is a transported the SAP script form “znalepke2” , printer definition ”nale”
    and device type “zststartsp” of a thermal printer.
    On original system (ak1) the printout is ok but on target system(ak2)
    not.
    Lateron I transported also :
    R3TR SCPD 1403(as the device type uses this character set)
    R3TR TABU TSP08 (All entries)
    R3TR TABU TSP1D(All entries)
    R3TR TABU TSP1T(All entries)
    I used also report  RSTXSCRP to traport form and device types. L
    Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
    Thank you in advance

  • How to disable Withholding Tax in Form Setting

    Hi,
      How to disable Withholding Tax in Form Setting  for A/P or A/R  service invoice document.
    Thank you.
    sridhar

    Hi Sridhar,
    You cannot disable Withholding Tax from Form Setting in A/P or A/R for specifically service invoice only. If you want to disable you have uncheck from General Settings BP master, Item Master.
    Thanks
    Sachin

  • How to disable buttons in HTML?

    How to disable buttons in HTML?
    For example.. In my application when one button is clicked then it should disable some buttons and should be able to perform any other actions...

    Correct me if i am wrong.. i think we should not use '[' but '('
    document.getElementById('buttonname').disabled = true;

  • 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

  • On submit button clicked , adf form is not closing but going to next task.

    Hi,
    In my application when In a adf form when I am clicking on the Submit button task is moving to next task but that adf form is not automatially closing .I need to close the adf form by closing the window on clicking X button.
    I have tried with closing or commenting the line from task flow.xml...
    <!--<finalizer id="__111">#{invokeActionBean.invokeScript}</finalizer>--> but still it is not working.
    Please suggest me how we can achieve this.
    Any suggestion,ideas are welcome.
    I am using 11.1.1.6.
    Thanks &Regards,
    Ganesh

    ADF related questions should be asked in appropriate sections. There you might have a good chance to get any help.

  • How deploy BPM process with ADF form?

    Hi everybody,
    I'm a newbie on BPM (11g) and ADF. I've created a BPM process and an ADF train into the same project.
    I was wonder if I can deploy the ADF stuff and start to test only the train before hook up the ADF form with the UserActivity.
    How I can do that? How can deploy it? Better create a jar or ear?
    Any suggestions?
    Best Regards.
    Fairlie

    Hi Daniel,
    yes I have two separate projects - BPM and ADF - in the same applications.
    For now, I'd like to work only on ADF project implementing the front end that I will use in next future into my BPM project.
    Every time I click on Run on the main page in ADF project, JDev tries to deploy the entire application.
    I need to work only on ADF for now and testing it. The soa server is on remote server.
    I've tried to deploy the ADF project on remote server and I get this error:
    'Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp
    Caused by: java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter'.
    I've checked the oracle.adf.model library class path and It's ok...so I do not understand why I get this error.
    What do you think is better to do? Trying to deploy the ADF with war, jar or ear...or...?
    Thanks a lot for any suggestions.
    Fairlie

  • How to disable button once user click once in an Applet?

    Hi,
    We are facing an issue with Applet level button.
    User is clicking multiple times on button and we don't want to allow users to click multiple times.
    So that How to disable the button after clicking once.
    Thanks,
    Sandep.

    Since you don't saying what version of Siebel you are on, I assume
    8.0 or later.
    You can use this on if you applet class is CSSFrame, CSSFrameList, or any of their subclasses.
    On the applet add, Applet User Prop:
    Name
    CanInvokeMethod: InvokeWF
    Value
    [DisableButton]='N' OR [DisableButton] IS NULL
    More info here:
    http://download.oracle.com/docs/cd/B40099_02/books/ToolsDevRef/ToolsDevRef_UserProps6.html
    On the applet add, Applet User Prop:
    Name
    Named Method
    Value
    "InvokeWF", "SET", "DisableButton", "Y"
    More info here:
    http://download.oracle.com/docs/cd/B40099_02/books/ToolsDevRef/ToolsDevRef_UserProps21.html
    Make sure the field DisableButton is active (Use Force Active on BC if the field isn't active)
    Make sure the field has "Immediate Post Changes" set to true on the BC.
    Axel
    PS: Don't use scripts if you can solve the problem with user props, WF, .... Scripting should
    be you last resort.

  • How to disable encryption in oracle forms

    Hi,
    Is there any parameter or profile option need to be changed to disable encryption in oracle forms?
    My requirement is to print all the parameters comes to ListenerServlet.java ,I'm able to do that but in the console i'm getting junk values because of encryption.
    Thanks in advance

    Insufficient information. Start with Forms version and description of what you are trying to do in greater detail.
    The URL is encoded. So what exactly is this junk? Are you seeing encoded things like %20, %7C, etc . along with your actual values? Or, is it completely garbled with unreadable characters? Post a bit of that is you can in a pair of &#123;code&#125; tags like this.&#123;code&#125;<your stuff>&#123;code&#125;.
    Regards,

  • How to disable Buttons based on condition.

    Hi
    Need your help to disable button based on condition.
    Please refer the application:
    http://apex.oracle.com/pls/otn/f?p=34797:5:110582943383419::NO:::
    login credentials:
    workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    In the above application, i have 2 buttons in page 5, (Report1 and Report2)
    Where i have to disable button based on the following conditon:
    i) USER whoever has Admin value 'Y' in my table can access the button.
    for this i've written a Button Condition : Type (EXISTS)
    select 1 from apex_extra_values where rtrim(lower(empname)) like decode((select Admin from apex_extra_values
    where rtrim(lower(empname))=rtrim(lower(V('APP_USER')))),'Y',rtrim(lower(V('APP_USER'))))
    note: i have empname same as my APEx user name. with Admin access 'Y'.
    By using this code i can able to hide the button for users who has no Admin access.
    But my requirement is : i have to show the button even if the user is not Admin, but to grey out (disable the button - no action)
    I tried using javascript function:
    function disableButton(pThis)
    pThis.disabled=true;
    But either of this (exists condtion or JAvascript function) works in my case and not both.
    Any pointer on this would be highlt appreciated.
    Thanks
    Vijay

    Couple of things:
    1. I would never use v('APP_ITEM') but :APP_ITEM - it is faster and there is no need to use this function within an application
    2. The way you are doing this check is not the best approach. You should create an authorization schema and run this once per session. Whatever this authorization is returning as a result you can check using the following Function returning boolean:
    IF apex_util.public_check_authorization ('MY_AUTH') THEN RETURN TRUE; ELSE RETURN FALSE; END IF;
    See this example on authorization issues:
    http://apex.oracle.com/pls/otn/f?p=31517:148
    3. As far as disabling a button is concerned I think I explained the options. I also have an example on that here:
    http://apex.oracle.com/pls/otn/f?p=31517:143
    whereby it is not disabling but hiding a button.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to disable buttons in Search help screen ?

    Hi All,
    How do we disable Print button in customer search help ?
    We want that nobody should be able to take a printout of Customers from Search help result. Hence we want to disable the print button which comes in Search help.
    Any idea how do we go about it ?
    Regards,
    Ashish

    Hi there,
    you should be able to do that with the search help exit. Try replacing the PF-STATUS for instance. I am not sure if this works though!
    For instance:
    IF call_control-step = 'PRESEL'.
    SET PF_STATUS 'ZZ' OF PROGRAM 'ZZZ'
    ENDIF.
    Or you might call the existing PF-STATUS and use EXCLUDING.
    Roy

  • How to Hide buttons in HCM forms

    Hi Experts,
    In "Transfer" forms, with out filling mandatory fields if I press button "Check and Send" then I get a extra button called "Continue". When I click on "Continue" it takes me to the next page without asking me to fill mandatory fields. Here I want to hide that "Continue" button.
    Like wise in "End of Probation & Short Term Contract" forms, with out filling the mandatory fields if I press button "Check and Send" then I get a extra button called "Forward to Expert". In my case I want  to hide "Forward to Expert" button also.
    Please help me to fix these issues.
    Thanks & Regards,
    Harish Kumar N
    Moderator message -
    When closing old threads, there is no need to add a comment. Adding a pasted answer like "fixed by myself" only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
    Edited by: Rob Burbank on Nov 2, 2011 9:30 AM

    You do not need to add this field to your list. In the view V_T588MFPROPS (SAP delivered), this field is set as mandatory. In configuration, you must maintain the view V_T588MFPROPC (Customer area) and make sure the field is not set to mandatory. This will override the SAP delivered setting and the error message will be not be displayed.
    Derrick Banks
    Banks & Company, LLC

  • How to disable security on the forms-based transactions

    WLS 7 web services include automatically created forms for each web
    service. When using these forms, a login is required into the 'Default'
    realm. How can this login be disabled?
    Regards,
    Joop Kaashoek

    This is caused by a bug, it only happens when using SSL. A CR has been
    created for the fix (CR078442)
    Joop Kaashoek wrote:
    WLS 7 web services include automatically created forms for each web
    service. When using these forms, a login is required into the 'Default'
    realm. How can this login be disabled?
    Regards,
    Joop Kaashoek

  • How to Disable a Standart Oracle Forms Error Message?

    Hello,
    On 'Work Incidents' page, we are using 'REPORT_TIME' field for the work starting time. But when we enter a time for work starting time, that is before the 'Incident Time' we get the "APP-PER-289032: The value for Report Time cannot be earlier than the value for Incident Time if Report Date is the same date as Incident Date" error message. I want to disable this error message. How can I do this?
    Thank you...
    Emrah Özgün

    Welcome to the forums !
    Pl post details of your OS and EBS versions. One option could be to use forms personalization
    395117.1 - Form Personalizations in Oracle Applications (Release 12)
    279034.1 - Information About the Oracle Applications Form Personalization Feature in 11i
    468657.1 - How To Do Forms Personalization
    744069.1 - Sample Testcase For Using Form Personalization In Oracle Applications
    Another option could be to use CUSTOM.pll
    438922.1 - ORDER MANAGEMENT SUITE - USAGE OF CUSTOM LIBRARY CUSTOM.pll
    747508.1 - How To Call Code Logic Or Procedure In CUSTOM.PLL Using Form Personalization - Builtin 'Call Custom Library'
    HTH
    Srini

Maybe you are looking for

  • Error in UDF

    Hi Experts, I am trying to trigger alert using UDF in message mapping. My UDF looks like this. *Map map = container.getTransformationParameters(); String msgID = (String) map.get("MessageId"); Channel channel = LookupService.getChannel("Alert_Call_Re

  • Lightroom Exposure Control

    Can I use LRs exposure control slider for the same function as it is used in my camera? I'd like to get additional shots but only have a -3, 0 and a +3 on the camera. I'm doing some photos in High Definition Imaging and want to increase the number if

  • Email sent by bank re skype subscription payment

    I have just had an email telling me that a 3 month subscription is being taken from you by my bank. It was a scam email i think but i am just checking as i have not authorised a payment as i do not need a subscription. Please can you let me know how

  • Dbconsole setup

    1) cpsmdb:oraxsq 6> emctl start dbconsole OC4J Configuration issue. /oracle/XSQ/102_64/oc4j/j2ee/OC4J_DBConsole_cpsmdb.phx-dc.dhl.com_XSQ not found. 2) I would like to config dbconsole only on this box. I do not want to use grid control. 3) How do I

  • Why do my nested compositions have worse video quality each nested layer I add?

    Using AE Mac v.13.2.0.49 with h.264 mpeg-4 footage, 4 compositions deep. Preserve Nested Resolution is on for compositions using original footage. Footage in original comp - this comp has "preserve nested resolution": once nested: twice nested: thric