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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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;
    }

  • 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

  • How to do Default context value For DFF in OAF

    Dear all,
    I want to do Default context value For DFF in OAF for seeded page, pls let me know how to do.
    Regards,
    Hanimi

    Hi Hanimi,
    In controller use code
    *dffBean.setFlexContext(pageContext,"+YOUR-LIST-VALUE+");*
    *dffBean.setAttributeValue(OAWebBeanConstants.READ_ONLY_ATTR, new Boolean(false));*
    Thanks
    Jegan

  • Rendering Addnl Assign DFF displays  Context Value rather than its segments

    I am trying to personalize update appraise page to render Additional Assignments DFF but after rendering it to true..... It just displays Context Value rather than its segments........
    Oracle Guru's any suggestions?

    You need to provide the Descriptive Flexfield Segment List value in the format
    Global Data Elements|[global segment1]|[global segment2]||...||Context1|[segment1 for context1]|[segment2 for context1]||...||Context2|....
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Setting up Flexfield Context Value programmatically in Custom.pll

    I need to default the context value of my DFF based on user profile/responsibility, How do I assign a value to context value field in custom.pll?
    Thanks,
    AJ

    Hi John,
    I got the same issue. Is yours being resolve yet?
    Can you share the solution.
    Thanks.

  • Xmldocument as xmlvalue context value question

    why is it that when i use an xmldocument (wrapped by an xmlvalue object) as a context value for xmlqueryexpression.execute() and if my query returns nodes (rather than scalars like string(), etc), the resulting xmlresults' xmlvalue objects return empty string for .asString()?
    i'm completely new to this approach for using xmldocument as a starting query context. i'm trying this because i figure doing this is better than using doc() because you get to reuse the same xmlqueryexpressions objects across different documents.
    so for instance:
              XmlDocument document = xmlContainer.getDocument("catalog2", XmlDocumentConfig.DEFAULT);
              XmlQueryContext ctx = xmlManager.createQueryContext();
              XmlQueryExpression expr = xmlManager.prepare("/catalog/journal/article", ctx);
              XmlResults results = null;
              try {
                   results = expr.execute(new XmlValue(document), ctx);
                   List<String> articles = new ArrayList<String>();
                   try {
                        if (results != null) {
                             if (results.size() > 0) {
                                  XmlValue value = results.next();
                                  while (value != null) {
                                       articles.add(value.asString());
                                       value = results.next();
                   finally {
                        if (results != null) results.delete();
                   assertEquals(2, articles.size()); // correct!
                   for (String string : articles) {
                        System.out.println(string);
                        assertFalse(StringUtils.isEmpty(string));  // empty strings!
              finally {
                   results.delete();
                   expr.delete();
                   document.delete();
    any ideas? thanks.

    Hi wvuong,
    You can reuse xmlqueryexpression objects across different documents simply by XmlQueryContext::setVariableValue().
    Here is an example in C++( sorry, I'm not good at Java ). Please refere the docs if you want more details about using XmlQueryContext::setVariableValue in Java.
    // Define XmlQueryExpression using "doc_name" as Variable
    XmlQueryContext qc = mgr.createQueryContext();
    qc.setVariableValue("doc_name", "");
    string query = "for $node in doc($doc_name) return <l1>{$node}</l1>";
    XmlQueryExpression expr = mgr.prepare(query, qc);
    // Using the XmlQueryExpression
    string docName = collection_name + "/" + "THE_DOC_NAME";
    qc.setVariableValue("doc_name", docName);
    XmlResults res = expr.execute( qc );

  • 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

  • DFF default value - SQL Statement

    Hi Friends,
    I have a mandatory DFF segment on the Sales Order Header and I want to default a value in that segment only for a specific Order Type, not all.
    So, When I create a US Order Type, it should default from a value set and the value will be "00000", which is the default value in the value set.
    For all other Order Types, it should not default and the user has to select it. How can I write the SQL for this. Thanks.

    Hi,
    Typically, this is possible only if you make use of DFF contexts.
    But using context from each order type is not a good idea.
    Why dont you use a personalization that would populate ATTRIBUTEx on the data block if the condition based on order type is true?
    If the form is coded correctly, the value will get defaulted into respective column.
    Thanks,
    Hrishikesh

  • Initialize all context values at one shot

    Hi,
    Is there a way i can initialize all the context values of a view. I mean when i click "Reset" all the values should be cleared at one shot instead of setting each value attribute to space.

    Hi Aditya,
    Whether you use wdContext.invalidate() or wdContext.reset(), all the elements of the entire context will be deleted and hence the table will be disbaled since it's datasource node has no elements. Each row of a table corresponds to an element in it's datasource node. If you create n elements for the node, those many rows will be enabled. So when you remove all the elements of the node, all the rows of the table will also be disbaled. So you have two options here:
    1) After removing the elements, create as many of them as required with the default values.
    2) Instead of removing the elments, explicitly access each attribute and set it's value to null or space. It will involve just a for loop:
    IPrivate<View_name>.I<node_name>Element elmt;
    for(int i=0;i<wdContext.node<node_name>().size();i++)
    elmt = wdContext. node<node_name>().get<node_name>ElementAt(i);
    elmt.set<parameter1>("");
    elmt.set<parameter2>("");
    Hope this helps,
    Best Regards,
    Nibu.
    (Please take care to close your solved problem's threads by awarding appropriate points . If you haven't got a solution for your problems, please update the forum on their status. Kindly consider awarding points for helpful answers on SDN !)

  • Avoiding null and duplicate values using model clause

    Hi,
    I am trying to use model clause to get comma seperated list of data : following is the scenario:
    testuser>select * from test1;
    ID VALUE
    1 Value1
    2 Value2
    3 Value3
    4 Value4
    5 Value4
    6
    7 value5
    8
    8 rows selected.
    the query I have is:
    testuser>with src as (
    2 select distinct id,value
    3 from test1
    4 ),
    5 t as (
    6 select distinct substr(value,2) value
    7 from src
    8 model
    9 ignore nav
    10 dimension by (id)
    11 measures (cast(value as varchar2(100)) value)
    12 rules
    13 (
    14 value[any] order by id =
    15 value[cv()-1] || ',' || value[cv()]
    16 )
    17 )
    18 select max(value) oneline
    19 from t;
    ONELINE
    Value1,Value2,Value3,Value4,Value4,,value5,
    what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
    thanks,
    Edited by: orausern on Feb 19, 2010 5:05 AM

    Hi,
    Try this code.
    with
    t as ( select substr(value,2)value,ind
            from test1
            model
            ignore nav
            dimension by (id)
            measures (cast(value as varchar2(100)) value, 0 ind)
            rules
            ( ind[any]=  instr(value[cv()-1],value[cv()]),
            value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
                                               and ind[cv()]=0     THEN ',' || value[cv()] END      
    select max(value) oneline
    from t;
    SQL> select * from test1;
            ID VALUE
             1 Value1
             2 Value2
             3 Value3
             4 Value4
             5 Value4
             6
             7 value5
             8
    8 ligne(s) sélectionnée(s).
    SQL> with
      2   t as ( select substr(value,2)value,ind
      3          from test1
      4          model
      5          ignore nav
      6          dimension by (id)
      7          measures (cast(value as varchar2(100)) value, 0 ind)
      8          rules
      9          ( ind[any]=  instr(value[cv()-1],value[cv()]),
    10          value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
    11                                             and ind[cv()]=0     THEN ',' || value[cv()] END 
    12          )
    13        )
    14   select max(value) oneline
    15   from t;
    ONELINE
    Value1,Value2,Value3,Value4,value5
    SQL>

Maybe you are looking for

  • How can I correct a "Run time error" on my mac mini?

    On one web site in my book marks I have suddenly got this message -"Runtime error" How can I fix it?

  • Hyper V guest slow disk access

    I have a Hyper V cluster(2012) with a 2012 guest running 2012 acting as my file server. My 2 hosts are connected to a gig switch stack which in turn is connected to my Dell MD3200i. My file server has a "data" disk that is a VHD(fixed) on the iSCSI s

  • ISE with Trend Micro OfficeScan supported version

    Hi. My customer have plan to install ISE with Trend Micro OfficeScan 10.5 as NAC solution. I confirmed below supported AV/AS Products list. Server side Trend Micro OfficeScan Corporate Edition 10.x is not included. But Client side Trend Micro OfficeS

  • Uix passing page's view object as a parm to another page

    I want to pass a VO used on one uix page for use as the view object on another page. I'm using 9.0.5.2 and bc4j. I'm trying code as follows: <bc4j:registryDef>   <bc4j:rootAppModuleDef name="SmGoalsViewAppModule"                          definition="

  • Is there really any reason to keep "On My Mac" calendars and contacts?

    I was wondering if anyone has deleted their "On My Mac" contacts or calendars in Address Book or iCal since upgrading to iOS5 and Lion. I haven't had any real issues by having both (aside from seeing duplicate birthdays in iCal), but is it really nec