Disable DFF segments based on Responsibility

Is it possible to disable certain segments of the DFF based on the Responsibility through which they are accessed?
Suppose I have a DFF on a OA Framework Page. Now the requirement is to have certain fields as readonly/disabled if the page has been accessed using some particular responsibility. I cannot do it through OA Framework as Personalizations would not have an impact on individual segments.
Any other suggestions are welcome
Regards
Sumit

Sumit,
You can do that using the security rules like we do for any of the flexfields. Just make to sure to enable the security for the DFF segment and value set if you have any.
Refer to the thread http://forums.oracle.com/forums/thread.jspa?messageID=2561230&#2561230
Thanks
Nagamohan

Similar Messages

  • Unable to default DFF segment based on selection of other field value.

    Hi Gurus,
    *I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
    I have extended my CO and tried many ways (from simple to little complex) but to no success.
    Simpler way:
    *=======*
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
    Row row = vo.first();
    row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
    row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
    This code doesn't work.
    Understanding that, DFF segments can't be set as simple bean, I have done below:
    *===================================================*
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
    oadescriptiveflexbean.processFlex(oapagecontext);
    if (oadescriptiveflexbean != null){
    ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
    if(contextmap != null){
    Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
    if(enumeration != null){
    do
    if(!enumeration.hasMoreElements())
    break;
    Object obj = enumeration.nextElement();
    OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
    oapagecontext.getParameter("WorkRequestDesc1")
    //String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
    if(oawebbean1 != null)
    if(oawebbean1 instanceof OAMessageTextInputBean)
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
    //oamessagetextinputbean.setReadOnly(true);
    oamessagetextinputbean.setText("Jawad");
    } while(true);
    Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
    More info:
    *======*
    VO: RequestDetailsVO
    DFF Regions ID: WorkRequestDesc
    Attribute1 (DFF segment1) ID: WorkRequestDesc1
    Appreciate your responses,
    Jawad

    Dear Guys,
    I found out a workaround for this case (If this helps others): :)
    *1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
    *2. In the extended CO, in PFR, get the handle of these created fields.*
    *3. Set the values as required.*
    Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
    But I still am hunting for the possibility of setting a single segment.
    Thanks and Regards,
    Jawad
    Edited by: Jawad on Apr 19, 2012 3:36 AM
    Edited by: Jawad on Apr 19, 2012 3:38 AM

  • Disabling a field based on value of three dff fields

    Hi,
    I am trying to disable a dff field based on the value of three dff LOV fields. User selects the value of these three dff from lov. I am using the below code in processRequest method of the controller but its nt giving me desired result. Kindly help me.
    Code:-
    OAMessageLovInputBean selectedSiteUseDetailDFF1 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF1");
    OAMessageLovInputBean selectedSiteUseDetailDFF2 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF2");
    OAMessageLovInputBean selectedSiteUseDetailDFF3 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF3");
    OAMessageLovInputBean selectedSiteUseDetailDFF4 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF4"); --want to disable this
    String contextVal = null;
    String lobVal = null;
    String atmVal = null;
    String defVal = "ATM Data Fields";
    String defLobVal = "ATM";
    String defAtmVal = "ENV";
         if (selectedSiteUseDetailDFF1!= null && selectedSiteUseDetailDFF2!= null && selectedSiteUseDetailDFF3!= null)
                        contextVal = selectedSiteUseDetailDFF1.getText(paramOAPageContext);
                        lobVal = selectedSiteUseDetailDFF2.getText(paramOAPageContext);
                        atmVal = selectedSiteUseDetailDFF3.getText(paramOAPageContext);
                   if(contextVal == defVal && lobVal == defLobVal && atmVal == defAtmVal)
                        selectedSiteUseDetailDFF4.setDisabled(true);
    Regards,
    Rajeev

    Rajeev,
    Can you try printing the below value to check whether it's returning the expected value. let me know if its returning the screen value.
    contextVal = selectedSiteUseDetailDFF1.getText(paramOAPageContext);
    lobVal = selectedSiteUseDetailDFF2.getText(paramOAPageContext);
    atmVal = selectedSiteUseDetailDFF3.getText(paramOAPageContext);
    Regards,
    Gyan

  • Disable updating of DFF segment in PO form using Form Personlization

    Hi All,
    I have to make a dff segment in PO form non-updatable after the PO number has been generated.
    I tried to do form personalisation of item PO_HEADERS.ATTRIBUTE2 making its property(update_allowed) as false.
    But when I test the form, I get an error cannot set attribute of a null canvas item.
    How can I make DFF segment disabled after PO Number is generated in Form
    Regards
    Prajesh

    One approach you can try is using the custom.pll.
    You can write code that makes the attribute non-updatable if the po_num is not null.
    If that does not work, you can consider writing a before-update database trigger on po_headers.
    In the trigger, if :old.attribute1 != :new.attribute1, then you can raise an error.
    Typically, I avoid writing database triggers but if you must, this could help you achieve it.
    Hope this helps,
    Sandeep Gandhi

  • A Field need to be Freezed based on DFF Segment field.

    Hi,
    I have 4 DFF Segments on a page.
    And the 1st segment is having many values including "Others" in its LOV.
    The second segment (Field) is only for "Others". if some one will select "Others" from the 1st segment in that case second segment (field) should be enabled else it should be freezed.
    This can be handled if it's not a DFF. Any one has faced such kind of issue.
    Please suggest what can be done in this scenario.
    Thanks
    Bachan.

    hi
    can u please elaborate your requirement in a detailed manner ,if you want to freeze a DFF field on the basis of the value of other field then it is not possiblle after page rendering ,but yes if u want to do the same at time of page rendering then it is possible .
    thanx
    Pratap

  • Setting CSS Style Class dynamically based on Responsibility

    Hi Guys,
    Is there an elegant way of setting css class in all items of a page based on responsibility? I've seen that there is a way on attributes like readOnly, disabled and rendering thru function security. How about the other attributes like css class? I even tried PVO, hahaha...but then I read, it doesn't apply to css class... :-)
    Guys, please help! Need this.. It'll save lots of time writing the code programmatically if it can be set as SPEL. hmmmmm...
    HElp help help! Thanks in advance!

    maeve ,
    You cannot be saved from writing code :), basically based on responsibility, set the bean properties in process request, there will be not much code !
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can I auto-populate fields in a pdf form based on responses in other fields (using Acrobat XI PRO)?

    I am creating a fillable pdf form using Acrobat XI Pro and would like to be able to auto-populate text fields in one section of the form based on responses entered by respondents in an earlier section.  Is this possible?  If so, would it function for respondents using Adobe Reader to complete the form?
    Many thanks,
    Andy

    Thanks, George!  In the form I am creating, I ask respondents to identify a number of organizations that they work with.  For example, I ask "Please list up to ten organizations" and then I provide ten text boxes for organizations 1-10.  I then ask a series of follow up questions (radio buttons, check boxes, and rating scales) about each organization.  I would like to auto-populate the fields of those follow up questions with the names of the organizations that the respondents had written.  Does that make sense?  Will this require JavaScript?  My hope is to avoid complicated scripts that may give respondents technical problems with the form.  Thanks again,
    Andy

  • Enable / Disable a button Based on a value

    Hi all,
    How can i enable or Disable a Button Based on some input Text value.
    Here is the ADF Code fragment:
    *<af:switcher id="customActionButtons"*
    *facetName="#{actionAvailable.isCustomActionButtons}">*
    *<f:facet name="true">*
    *<af:panelGroupLayout layout="horizontal" id="pgl10">*
    *<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>*
    *<af:inputText value="#{bindings.input.inputValue}"*
    *label="#{bindings.input.hints.label}"*
    *required="#{bindings.input.hints.mandatory}"*
    *columns="#{bindings.input.hints.displayWidth}"*
    *maximumLength="#{bindings.input.hints.precision}"*
    *shortDesc="#{bindings.input.hints.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{bindings.input.validator}"/>*
    *</af:inputText>*
    I have highlighted the Button and Input text in Bold.
    Any suggestions,
    Thanks,
    karthik

    you need to set the autosubmit property for the text field to true. and set the partial trigger for the the button to that input text id.
    and set the rendered property for the button based on the input text value.
    same idea is exist in this link:
    http://groundside.com/blog/GrantRonald.php?title=conditional_rendering_of_jsf_fields_depe&more=1&c=1&tb=1&pb=1
    Edited by: M.Jabr on Feb 7, 2011 1:26 AM

  • DFF segment Issue

    Hi All,
    I have added a new attribute to existing DFF in standard forms, and that DFF is there on standard OA Page. But the newly added attribute is not visible on OA Page. pls Help
    Regards,
    Raghava

    Hello Raghav,
    How did you acheive this. I am putitng below below text in the segment list in personilization window. Below are segment display names of my DFF. But it is now reflecting in OAF page. Last 2 field i added new in DFF segments.
    Addl Info Line 1||Addl Info Line 2||TAN Number||*Addl Info Line 3||Addl Info Line 4*

  • Hiding based on responsibility

    This is probably an easy one to answer, however I am a bit new to the OA world.
    I have a custom page (11.5.10) and I want to hide an image based on a user's responsibility. I have a switcher region for the page working fine (with two images) based on information from the database, however I want the switcher to change and be based on responsibility instead of data from the database. Any ideas on how to do this?

    Best way to implement your Business logic is functional security.
    1. Create a new function (no parameters and URL), say XX_SEC_FUNC
    2. Attach it to the menu that is used in your responsibility.
    In the page, just enter *${oa.FunctionSecurity.BENEFITS_GUEST}* in the Rendered property.
    Now Go to -> System administrator -> Security -> Responsibility
    1. to hide the text exclude the function(XX_SEC_FUNC) in the responsibility.
    2. to show it delete the function(XX_SEC_FUNC) from the exclusion list.
    this is very flexible and can be configured easily. No code modification needed.
    And if you want to extend the functionality to multiple responsibilities, then it can be easily done.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to enable the DFF segment in Forms

    Hello everyone,
    I want to enable the DFF segment i.e. Attribute12 when schedule_ship_date get changed. Means if schedule_ship_date changes then with reason we want to store it. In DFF segment we want to store the reason.
    The record should not save if the date changed and reason not entered.
    Please can you tell me the steps how i can enable the DFF segment in Oracle forms or how i can do it mandatory if date changes.
    Thanks

    JAK,
    Please post your question in the E-Bus Suite forum. This forum is dedicated to non E-Bus Suite Forms development. Also, you might want to include the what version of EBS you are in when you make your post. More than likely, you will need to code for this event in the Custom Library (CUSTOM.PLL), but you might be able to do this with Forms Personalization - if you are on 11.5.10 or higher. The folks in the EBS forum will be able to tell you for certain which method to use.
    Craig...

  • Restrict SR Type based on responsibility

    Hi all,
    I am trying to restrict SR Type based on responsibility. Oracle 11.5.9 document has the following statement. has anyone got this going ? or is there a bug??
    Thanks,
    Gana
    3.10.1.29. Map Service Request Types by Responsibility
    To be consistent with iSupport, Service Request Types can be mapped to responsibilities.
    This allows a customer to filter out the unnecessary or unrelated Service Request Types
    and display the relevant ones to specific responsibilities in the Create, Update and View
    Service Request forms. A Street Service’s agent will only see Service Request types of
    Abandoned Vehicles and Street Cleaning and not Animal Retrieval.

    Thank you.
    But this is a Bug for version earlier then 11.5.9 and it is declared by Oracle.
    It is a enhancement request number 2445606 and is incorporated into the released 11.5.9 version of the product, but it does not function in any earlier release.
    The Profile option is
    'Service: Use SR Type - Responsibility Mapping'
    This profile can be set at Site and / or Responsibility Level.
    If set to 'Y' at only the Site level, this indicates that the Type will always be filtered by Responsibility, no matter what the responsibility is. In this case, the Service Request Types should be mapped to the required responsbilities.
    If set to 'Y' at Site level, and 'N' for Responsibility say 'R1', then responsibility 'R1' will have access to all SR types, but for all other responsibilities, SR types will be filtered to the list of what is mapped to the Responsibility.
    Thank you

  • Email Notifications Based on Response

    Is it possible to have the email notification go to different email addresses based on response from a drop down menu?
    For example, a "Safety" issue, when chosen, would be automatically forwarded to the safety manager  or a "Clinical" issue to the clinical operations manager and not each and every email address of the whole team?
    Thanks for your help!

    That might be a good idea for the future.
    Thanks for your help and I hope that you have a great day!
    Laura

  • How to enable some DFF segments on AR Trx form for specific context only

    I have a requirement to enable 3 of many DFF segments on AR Transactions line DFF for particular context only. I am not able to figure out how to achieve it.
    When we query for an Invoice and navigate to lines DFF I want these fields to be allowed to update. Currently they appear as read-only. These are interface line attributes used across many different contexts but I need them as update allowed only for few contexts.
    I went through different forum topics and was trying to use security rules but these segments do not have the security enabled flag checked under DFF segments and when I try to check it it throws an error as to update not allowed.
    Form personalization doesn't work on DFF, so that is out too.
    Any help would be appreciated.
    Thanks.
    Shivang

    Hi,
    My requirement is a little different. We already have context and reference setup when we implemented Oracle 3 yrs back but what I need is to enable few segments / attributes inside a context that too when the invoice is queried for not when it is being created manually. The same attributes are being used by different contexts but I need to enable only for a few and not all contexts.
    Appreciate if you are able to help on this.
    Thanks.

  • How to make a DFF segment mandatory only in one page?

    Hi All,
    We have added a DFF in 2-3 pages. One of the segments in that DFF should be made mandatory only for one particular page. Is there any way to make it mandatory via personalization?
    I can't make it mandatory in DFF settings as it will make the field mandatory in all pages where the DFF is used.
    I m aware that I can extend the controller and check wehther the value has been entered or not. But does anyone have idea whether this can be achieved without any customization?
    Regards,
    Pradeep

    We can achieve this requirement using Java script but this script is fired for every event in the page. You need to carefully choose the event(i.e. when the script should be fired).
    Sample code:
    1. create a rawText item
    2. .in text property of the rawtext item use below sample code
    <SCRIPT>if (document.getElementById("DFFFlex0").value != null) {alert('This field is required');} </SCRIPT>
    // here DFFFlex0 is the ID of the specific DFF segment-Anand

Maybe you are looking for

  • LabView 2012 32-bit, creating an installer to run on Windows 7 64-bit

    Hello I have the full development LabView system installed on a 32-bit PC running Windows XP.  I'm trying to create in an installer that will be ran on a 64-bit machine running Windows 7.  I'm able to create the installer, but when I try to run the i

  • Ipod touch 4th gen is stuck in restore :(

    And i have tried every single thing except for taking it for repair to the apple store because they want to charge me 35€ for that, which is absurd. I was just playing Clumsy Ninja and suddenly my bf's iPod went white and turned off. When I connected

  • OS7--sorting albums in horizontal (flow) view

    How can I sort albums by artist rather than by album title in horizontal view for iPhone OS7?

  • Ipod just stopped working

    I have an older Ipod nano. I unplugged it from the charger and the screen was black. I have tried charging it more than once since then. Will not charge in the wall or conncted to my computer. Also tried to connect it to the itunes on my computer but

  • Has anyone had issues with battery overheats on the HP tablets?

    Seen many messages on battery drains (not sure what the solution is to that) but have an overheating situation when in power down mode.