Custom DFF Context

Can anyone point me to any syntax or steps required to create a custom/user defined Flexfield context.
I need some fairly funky logic to set the right context for the flexfield so any information about how to go about this would be greatly received eg. perhaps reference a table-validated value set(?)

Sounds a little complicated. If I've understood correctly, your user will have the ability to create a new context dynamically. I've have to admit that I didn't even know you could do that! Assuming you can, I would caution that it probably needs to be governed by a LOV to ensure that the contexts are controlled. As a rule of thumb, I always advise that flexfield segments, of any kind, are never free format unless there's an exceptional reason.
As for self service, SSHR isn't very clever with contexts. It's alright at displaying them, but can't work out a context until it's saved some data.
This probably hasn't been much help, but good luck anyway!
Regards
Tim

Similar Messages

  • OAF DFF Context  Issue

    Hi All,
    I am working On DFF
    I can able to display elements, based on DFF Context.
    But I want to Hide the Global Data Element Context Segments by Controller Extension,
    not by Personalization.
    I am getting error while Rendering False to Global Data Element Context Segments.
    Also how can we set the Context based on Reference field.?
    Please Help me on this..

    Hi,
    As per OAF development team using java script is not recommended and Oracle does not support any javascript related personalizations.
    For custom pages when we are left with no choice we can use javascript. Refer
    http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html
    Coming to using javascript in seeded pages, my point of view is:
    as long as a specific project has production support team is there we can use javascript for personalizations.
    Most of the times we do extend controller for extention requirements in seeded page, but in R11 as per Dev guide "There is no guarantee that controller extensions will survive an upgrade (you should assume that they will not).".
    So considering this I use javascript wherever only CO extention is required, since both are not supported by oracle :) .
    Regards,
    Anand

  • Unable to set DFF context value

    Hi,
    i want to set DFF context value with a variable, so i tried first to set it with a constant.
    in the controller's PR
    super.processRequest(oapagecontext, oawebbean);
    // first, find the flexfield's handle
    OADescriptiveFlexBean oaDFF;
    oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("DescFF");
    oapagecontext.writeDiagnostics(this,"oaDFF=>"+oaDFF ,1);
    // default the Attribute Category (DFF context)
    oaDFF.setFlexContext(oapagecontext,"QuietanzaErarioStato");
    oaDFF.processFlex(oapagecontext);
    but it doesn't take any effect, the context's pickilist remains blank.
    However i tried the same code with another DFF and it worked. i am wondering if there is some differences between the two DFF.
    Any help will be appreciated, it'quite urgent
    Thanx

    Hi,
    Please create a new region thru personalization before the region where u r DFF is present. Use re-order to take the new region before the DFF region.
    Set the controller to that new region and the code that you mentioned. This process will sets the context.
    Kindly refer the dev guide as i found the above solution from devguide it self.
    Thanks
    Raghava

  • Customer defined Context Menu in WD ALV (ABAP)

    Hello,
    is it possible programming a customer defined context menu for a Web Dynpro ALV (in ABAP)?
    The functionality should be as following:
    Open Context menu with right mouse click, select something like "display details" and then detail data shall be displayed under the ALV.
    Exists a documentation for that?
    Thanks and regards,
    Josephine

    When you are defining your content attribute at the controller do not try to bring all the value attributes rather  provide the dictionary structure and make sure that cordinality is 0...n.
    Then as and when you change the dictionary structure you would be able to view the columns corresponding to that.
    Make sure that your select stmt is modified accordingly when you are binding it to the context.
    Cheers
    ~ Kumar

  • Dynamically setting DFF Context

    Hi Guys,
    I have a requirement to dynamically set the DFF context in the CO of the page (depending on various circumstances)
    I have used setFlexContext in the following code to successfully set the context for my DFF in the Requisition Headers page:
              //Set the context on the Requisition Header DFF.
              OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean) webBean.findChildRecursive("XXNRReqHeaderDFF");
              try {
                        if (dffBean != null) {
                             pageContext.writeDiagnostics(this, "Ravi: Found XXNR DFF Bean. Setting Context to COOM", 4);
                             dffBean.setFlexContext(pageContext, "COOM");
                             dffBean.mergeSegmentsWithParent(pageContext);
                             dffBean.processFlex(pageContext);
                        else {
                             pageContext.writeDiagnostics(this, "Ravi: Did not find DFF Bean", 4);
              } catch (Exception e) {
                   pageContext.writeDiagnostics(this, "Ravi: Could not set the Context", 4);
                   e.printStackTrace();
    This was a simple page with only one Header DFF instance and the code above works perfectly.
    Now I wish to use the same code to set the DFF context on the Requisition Lines Page. The above code does not work there.
    The problem is that in the lines page, the DFF gets replicated for each of the requisition Line on the page and I am not able to figure a way out to set context for each individual line.
    Did anyone face similar issues before/have any ideas on how to tackle this?
    TIA!
    Ravi

    Hi Ravi,
    Please refer below code
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    pageContext.getApplicationModule(webBean).invokeMethod("refreshDetail");
    pageContext.setForwardURLToCurrentPage(null,true,null,(byte)0);
    public void refreshDetail()
    Row[] rows = getFndApplicationVO().getFilteredRows("selection","Y");
    if (rows != null)
    getFndApplicationVO().setCurrentRow(rows[0]);
    Please refer topic "Descriptive Flexfield in a Master/Detail Page" in Jdev guide.
    Regards,
    Reetesh Sharma
    Edited by: Reetesh Sharma on 06-Jul-2010 06:46

  • Set default values in DFF context programatically in OAF

    Hi Guru's,
    In our environment, we have one Context sensitive DFF named Party Information having following context:
    GUEST
    COMPANY
    AGENCY
    BANK
    SUPPLIER
    Now the requirement is if Create Customer page renders, this DFF should show only values- GUEST, COMPANY, AGENCY.
    We can not disable the context values BANK, SUPPLIER because this DFF is used at many place so we have to use such logic, if Create Customer page renders
    it should display only three context programatically.
    I can default the one context programatically by below statement-
    OADescriptiveFlexBean custinfoDFFBean = (OADescriptiveFlexBean)webBean.findChildRecursive("personFlex");
    if (custinfoDFFBean!= null)
    custinfoDFFBean.setFlexContextCode(pageContext, "GUEST");
    custinfoDFFBean.setContextListRendered(false);
    but don't know how to default with three context.
    Could anyone please help me on this?
    Thanks...
    Piyush

    Hi All,
    I am still lookin for the solution for this problem.
    Regads,
    Piyush

  • Create Partial Fire action on DFF context value in controller extension

    Hi All,
    I have a requirement where I will have to default the DFF attribute value based on the context value chosen in the same DFF.
    Since the page is a seeded page i have done that using Controller Extension.
    I have followed the below steps.
    1.I have created one class file XXR2R_AR_BANK_ACCT_EXTCO
    2. In that file I have written the following piece of code
    +public class XXR2R_AR_BANK_ACCT_EXTCO extends UpdateExtBankAcctCO {+
    public void processRequest(OAPageContext oapageContext,
    OAWebBean webBean)
    +{+
    super.processRequest(oapageContext, webBean);
    OADescriptiveFlexBean dfb =
    +(OADescriptiveFlexBean)webBean.findChildRecursive("FlexField");+ // This is the ID of the flexfield defined in seeded page
    FireAction firePartialAction = new FirePartialAction("contextvalchng");
    +}+
    public void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
    +{+
    super.processFormRequest(pageContext, webBean);
    if ("contextvalchng".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    +{+              
    super.processFormRequest(pageContext, webBean);
    OADescriptiveFlexBean dffBean =
    +(OADescriptiveFlexBean)webBean.findChildRecursive("FlexField");+
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject extVO =
    +(OAViewObject)am.findViewObject("ExtBankAccountsVO");+ *// This is the view name corresponding to the DFF fields*
    String str = "" ;
    OARow row = null;
    if (extVO!=null)
    +{+
    row = (OARow) extVO.getCurrentRow();
    if (row!=null)
    +{+
    str = (String)row.getAttribute("ATTRIBUTE_CATEGORY"); *// here I have retrieved the context value of the DFF*
    +}+
    +}+
    dffBean.processFlex(pageContext);
    if ("DEN".equals(str)) *// if the context value is "DEN" then only the defaulting will be done*
    +{+
    OAMessageTextInputBean mnum = (OAMessageTextInputBean)webBean.findChildRecursive("FlexField1");
    mnum.setText("599956");
    row.setAttribute("ATTRIBUTE13","6995");
    +}+
    3. After compiling the .jave file I have placed the .class file in the CUSTOM_JAVA_TOP location and in the seeded page I have placed this CUSTOM_JAVA_TOP top path (in the personalize page section)exactly in the same way where the .class file is.
    But when I am changing the context value in the DFF nothing is actually happening.It is never including the custom file behavior.
    Please let me know if I am wrong in my coding or my approach.
    Thanks
    Sudie
    Edited by: user10816003 on Jun 21, 2010 5:54 AM
    Edited by: user10816003 on Jun 21, 2010 5:55 AM

    Hi,
    I think you need to set PPR on one of the segment of the DFF. Following is the code snippet I found few days back in forum. Use this in processRequest() method to set the PPR.
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)webBean.findIndexedChildRecursive("ASNPrdtAddInfoFF"); //DFF ID...in your case it is "FlexField"
    if(null != oadescriptiveflexbean)
         oadescriptiveflexbean.processFlex(pageContext);
         //oadescriptiveflexbean.setFlexTableRendered(false); -- useful, if we want to render the items on our own.
         int cnt = oadescriptiveflexbean.getIndexedChildCount(pageContext.getRenderingContext());
         for(int i=0; i<cnt; i++)
              OAWebBean uiNode = (OAWebBean)oadescriptiveflexbean.getIndexedChild(pageContext.getRenderingContext(),i);
              if(null != uiNode && uiNode instanceof OAMessageTextInputBean )
                   System.out.println(i + "::::" + uiNode.getLabel() + "::::" + uiNode.getUINodeName()+ "\n");
                   if(uiNode.getUINodeName().equalsIgnoreCase("ASNPrdtAddInfoFF2")) //Segment ID...you need to find it out..on which segment you want to do PPR
                        FireAction firePartialAction = new FirePartialAction("Event.termChangeEvent", true); //This is I am not sure but it must be the event name
                        uiNode.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    Now you need to check for this event in processFormRequest() method. If this event fetched iterate the Vo rows and check the Attribute value there. if the value matched then do the defaulting process.
    Hope this helps..
    Regards,
    Mukesh Uchaniya

  • Null DFF Context Value in R12

    Hi Experts,
    Recently we have upgraeded ebs 11.5.10.2 to R12.1.3 .
    In 11i , we have DFF at supplier site level ( Title : Vendor Sites).
    After upgradation , we are not able to see the context value at supplier site level.
    Is there any set-up required for the same ?
    Please guide me.
    regards
    sd

    Hi
    can i get the information type from ExtraInformationTypeVO,
    but the create ,update pages using different VOs
    Please tell me the solution.
    Thanks
    Raju

  • Person DFF Context Value based on 2 criteria (Business Group and Emp Type)?

    Hello,
    We're implementing HR module into multiple business groups.
    I need to define context value for DFF "Additional Personal Details" based on 2 criteria Business Group ID and Employee Type
    Any idea how to do it?
    Thank you
    Elie

    Hello Elie,
    I am not sure on it,However have you tried creating a context with combination of Business Group and Person Type using merging,
    business_group_id || "_"|| person_type_id And structures would be something like 80_2112 Business Group id = 80 and Person Type id=2112.
    It may resolve your issue if this works out.
    Regards,
    Saurabh

  • Defaulted DFF Context, but Attributes also getting some default Values.

    Hi,
    I extended CO for defaulting DFF, it is working fine. But the problem is Attributes Also getting default Values and when u search for one record those DFF Attribute values are not showing proper data, but table attribute values having correct data only.
    Regards,
    Hanimi.

    hi Pavan,
    i extended CO for getting context value as default, it is defaulting Context as well as Attribute values also after opening the page.But i want to default context value only after opening the page and when i search one record that attribute values data is showing wrong data, but in table attributes having proper data, but in page these values are showing different data.
    I used following code for Defaulting Context In CO. Pls check the code.
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    String s = oapagecontext.getParameter("_FORMEVENT");
    if(s == null || s.equals(""))
    s = oapagecontext.getParameter("FlexFormEvent");
    OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");
    String organizationId = (String)oapagecontext.getSessionValue("OrgId");
    String contextValue = getContextValue(oapagecontext.getApplicationModule(oawebbean).getOADBTransaction(), organizationId);
    if(contextValue != null)
    dffBean.setFlexContext(oapagecontext, contextValue);
    dffBean.mergeSegmentWithParent(oapagecontext);
    private String getContextValue(OADBTransaction con, String organizationID)
    System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
    String contextValue = null;
    String sql = " SELECT meaning FROM fnd_lookup_values flv, mtl_parameters mp WHERE flv.lookup" +
    "_type = 'NGHA_EAM_WR_LOCATION_CONTEXT' AND flv.ENABLED_FLAG like 'Y' AND mp.or" +
    "ganization_code = flv.lookup_code AND mp.organization_id = "
    + organizationID;
    Statement st = null;
    ResultSet rs = null;
    try
    st = con.createStatement(1);
    rs = st.executeQuery(sql);
    if(rs.next())
    contextValue = rs.getString(1);
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if(st != null)
    st.close();
    if(rs != null)
    rs.close();
    catch(Exception e)
    e.printStackTrace();
    return contextValue;
    }

  • How to get the DFF Context Value in CO

    Dear All,
    i am working on extension on EitUpdateCO, the same page contains more than one EIT
    for Some EITs i have to populate calculated values into their segments .
    How to get the Context value of DFF .
    Please send me the code if u have .
    Thanks
    Raju

    Hi
    can i get the information type from ExtraInformationTypeVO,
    but the create ,update pages using different VOs
    Please tell me the solution.
    Thanks
    Raju

  • Funtion of DFF Context Field in OAF

    Hi, there
    I use the funtion of Context Field in Descriptive Flexfield. The segments should be different according to the context field values. The funtion of Context Field works in the form, but it doesn't work in the OAF. I don't know how to solve it.
    Best Regards
    Peter

    Hi
    Extend the controller and use the belwo code in PR method
    OADescriptiveFlexBen DFFbean=(OADescriptiveFlexBen) webbean.findIndexedChildRecursive (ID of DFF Region)
    DFFbean.processFlex();
    Thanks
    Pratap

  • Customizing wad context item with BI 7.0

    Hello,
    we want to add standard command SAVE_AS in context menu. How is it possible to add specific item to context menu with WAD 7.0 ?
    Thank's
    Thierry

    The following links might help
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/1776b8fa923614e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/44/624da0e6444ddee10000000a1553f7/content.htm

  • Custom controller context value attribute

    Hello,
    I have a custom controller with one value attribute. In the wdDoInit() method of the custom controller I can not access this attribute using:
    wdContext.currentContextElement().setAttrib()
    Why?
    The same works without any problems using the component controller instead of the custom controller.
    Thanks, cheers,
    Felix

    Hi,
    I have created the custom controller and within that I have created the attribute.
    Now I am able to access the attribute by using thr same code.
    wdContext.currentContextElement().setAge(" ");
    After creation of custom controller you just save all metadata. Then check it.
    I think you will get  the attribute.
    Thanks
    Chandan

  • Developing Custom Business Context Viewer (BCV) content

    Hello,
    Is there a how to guide in developing custom BCV content.
    regards
    kaushik

    Hi Ashok,
    It might be too late for your specific task but maybe the following information could help others: Meanwhile, there is an official How-to Guide that describes how to integrate BCV in your own Web Dynpro application. It can be found here:
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b05d79aa-a0b3-2e10-b0be-dade61266534]
    Regards, Sven

Maybe you are looking for

  • Questions About Verizon EDGE Plan???

    So, me and my guy went into what we thought was a regular Verizon Store to ask about combining our accounts to save some money (we are engaged).  My guy was having major issues with his Pantech Maruader and the sales person convinced him to get on th

  • Does anybody know why I get doubles of every image I import from iPhoto 11 to Aperture?

    With the upcoming demise of the MobileMe Galleries, I'm making lots of changes to how photos are organized. I'm moving the galleries to a new host. But, I want to pull most of the events, etc from iPhoto 11 to Aperture. iPhoto 11 has been a nightmare

  • HT203175 My daughter can not remember her password how can I reset it her ipod?

    My daughter forgor her password how can I rest it through itunes?

  • Regarding Services in Oracle 10g RAC

    Hi All, We are having Oracle 10g RAC (10.2) on Linux machines.  We don't have any services configured failover. This can be visible from srvctl config database -d, as nothing related services information is displayed. I even checked failover_type and

  • Help on BFILE and lob locators.

    I need to load images on my directory(IMGDIR) going to database table(T_IMG) but an error message Invalid lob locator appears. What seems to be the problem on my code, thanks CREATE TABLE T_IMG rec_id VARCHAR2(10 BYTE), image BLOB, rev_date TIMESTAMP