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

Similar Messages

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • Unable to set parent context for this record.

    Has anyone seen this error when doing an import? In my case I was doing an import to the Opportunity Product record.
    the full error message is
    Unable to set parent context for this record. Please make sure that the parent record is valid and you have permission to modify the parent record.
    I was attempting to populate one field on the record with data.

    Hi,
    Was there a resolution to this that you found, cause it's driving me crazy.
    We've resorted to manually created a product in OnDemand with an EUI and exported it but we can't reimport it to overwrite it as we get the same error message "Unable to set parent context for this record"
    The opty and the product both exist as they got manually created, although when you export them there are now 2 of them (I see this in reporting as well????)
    Besides the Opty-Product External ID what else is required to do an import to overwrite?
    regards
    Alex

  • 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

  • Unable to set search context for AD resource

    Hi,
    I am unable to set a search context into my AD resource (IdM 8.1 patch 9, AD gateway).
    When I traced the gateway - I found it completely ignores the context filter values I defined.
    Anyone has solution?
    R.

    Hi,
    I am not talking about a query but about a regular AD resource configuration - so there is no code to provide.
    Try putting a context in AD resource (to search for specific type of users for example) and see if it works.
    R.

  • 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

  • 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

  • BizTalk Host Application Adapters - Set Client Context Values

    http://technet.microsoft.com/en-us/library/bb726925(v=bts.10).aspx
    Client Context
    The schema provides the node, TIClientContext, allowing context values to be passed. There are several Client Context properties supported by the adapter, listed in Table 7. However, only two are exposed via the messages passed to the adapter as attributes
    on the root node - the user’s Host credentials to use for the call and the connection timeout value. The Allow Security Overrides property works in conjunction with Client Context and allows the User and Password to be taken from the TIClientContext node in
    the message and used to make the Host program call. In order to access the others, a property schema must be created to add them to the BizTalk Server message context. All of the properties are in the http://microsoft.com/HostApplications/TI/WIP namespace.
    Once created, any of these properties can be set via the BizTalk Message Context.
    Question:
    I am trying to pass LibNameOverride in the Message. I created a property schema and added this promoted property. I am trying to set this value in the Message, but not succesful.
    I tried in the below mentioned ways but not successful
    <ns0:LibNameOverride>ABCDEFG</ns0:LibNameOverride>
    or
    <ns0:TIClientContext TIContextKeyword="LibNameOverride" TIContextValue="ABCDEFG" />
    Thanks, Pavan MCTS-Microsoft Biztalk Windows Server 2010

    Please verify the file version of Microsoft.HostIntegration.Adapters.MsTI.Runtime.dll in the %SNAROOT% folder just to make sure the version.
    You might want to try passing PortOverride with an invalid port to see if you get an error in the Application Event log indicating a problem with the connection indicating that the target machine actively refused the connection and it will include the IP
    address and the invalid port. It is an Event 102 message.
    I passed the following in my sample HIS 2010 Application:
    <ns0:BAHA_ELMLink_GetBal__Accounts__GetBalance__Request TIAssemblyVersion="1.0" xmlns:ns0="http://microsoft.com/HostApplications/TI/WIP">
      <ns0:GetBalanceInDocument>
        <ns0:NAME>Kim Akers</ns0:NAME>
        <ns0:ACCNUM>123456</ns0:ACCNUM>
      </ns0:GetBalanceInDocument>
      <ns0:TIClientContext TIContextKeyword="PortOverride" TIContextValue="7555" />
    </ns0:BAHA_ELMLink_GetBal__Accounts__GetBalance__Request>
    I don't have an AS/400 sample setup, but this test proved that I could pass a client context property in the input XML to my Send Port.
    Also, make sure that you have the "Allowed Advanced Overrides" option in the Send Port set to "Yes" to enable client context override keywords.
    Thanks...
    Stephen Jackson - MSFT

  • Unable to set a new value in an extended property from within a For Each Loop

    Setting a new value in an extented property fails when the property is dereferenced within a For Each loop usin the item  iterator. However, if you use the First or Last Iterators from the Find Targets activity works fine.
    The error message is : "Setting a value for this object type is not allowed"
    I believe this is a defect, can you please confirm

    Looks like a bug that needs to be reported.
    While we are figuring out the issue you can work around the bug.
    Add another "Find Targets" inside the loop, and use the ID of the current item in the loop to find the target (again) by ID.
    And then use Set Variable on the target that was just found...
    I know... Not an ideal workaround, so please open a Severity 4 bug for this.

  • Unable to set the column values in Standard alv settings

    Hi,
    In the ALV displays settings  screen, I can set any number as "number of columns displayed", press "apply"  it remains 8 columns that are visible.
    Prevousely its working fine, last two days back i added  two fields in that AlV table. after that i am unable to change column values in ALV settings.
    Can any one tell me how to resolve this issue.
    Regards,
    Dhananjaya

    Adding fields should not affect the settings normally.. is your program fully activated and you have not mentioend any settings explicitly in your code rite?

  • JavaWeb start JRE1.6 unable to set Propery which value cantains %

    Hi All,
    My jnlp file contains following property
    <property name="encrypted" value="8N%2BEz4pO4Xd4KZD8I0AXJA%3D%3D"/>
    but when i am trying to retrieve it using
    String svalue = System.getProperty("encrypted");
    it return null.
    I think this is because of % character but i can't change this value in jnlp file(as this value is coming from some url query sting).
    please help me how can i get exact value of this property as it is appearing in jnlp file.
    Edited by: JFateh on Apr 16, 2008 9:24 AM

    use url encoding...
    java.net.URLEncoder.encode()
    or replace %char1char2 with corresponding value found in following web site..
    http://www.w3schools.com/TAGS/ref_urlencode.asp

  • How to set a attribute value of a sub node binded to a table.. pls respond.

    Hi friends,
    I have context defined like this.
         Head_node ( table 1)
              Item_node ( table 2, sub node ).  ( now this im saving in global internal table).
    so now when i hit save button, im passing my internal table (it has col1- sales order no, col2 item details(table type, which can have more than one record) to a FM, to create sales order.
    My sales order is getting saved.
    But the function module will return some new values (like sales order number, item number etc).
    Now i want these values to be updated in my context.
    Meaning whenever after that i do get_attribute, i should get these new (sales order no, item no ) also.
    I dont know how to set the context values of sub nodes , so im missing these values.
    kindly respond back to me..
    thanks in advance,
    Niraja

    Its very simple.
    Follow these steps. e.g you want to get the new sales order number. Define a attribute in ur node (or set of attributes in ur case as per reqruirement) say new_so_number.
    Check your FM, if its returning new_so_number then it's fine, otherwise you have to change the FM to return the new_so_number or you have to get from db table somehow, which best suites your req.
    So once you have new_so_number after calling the FM, say in lv_new_so_number field. Then write this code to set the attribute (change the variables as per your context attributes)
    DATA lo_nd_head TYPE REF TO if_wd_context_node.
      DATA lo_el_head TYPE REF TO if_wd_context_element.
      DATA ls_head TYPE wd_this->element_head.
      DATA lv_new_so_number LIKE ls_head-new_so_number.
    * navigate from <CONTEXT> to <HEAD> via lead selection
      lo_nd_head = wd_context->get_child_node( name = wd_this->wdctx_head ).
    * get element via lead selection
      lo_el_head = lo_nd_head->get_element(  ).
    lv_new_so_number = new_so_number. " (You got this as a exporting parameter of FM etc..)
    * get single attribute
      lo_el_head->set_attribute(
        EXPORTING
          name =  `NEW_SO_NUMBER`
          value = lv_new_so_number ).
    Hope it works.

  • 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

Maybe you are looking for

  • IMovie no longer displays my iTunes or my iPhoto libraries.  Can anyone help me get them back?

    My iTunes and my iPhoto libraries no longer display in iMovie.  I have to drag and drop directly from the applications.  Can anyone help me get the them back?

  • COPA:  Unable to settle Cost Element

    Good Morning COPA Guru's- I am learning COPA the hard way (no formal training) and I am having trouble with a particular Cost Element 500600 not settling to COPA.  It looks like everything set-up correctly.  In fact, the settings are identical in the

  • ODCI error with spatial operators

    Hi group, I get ODCI errors with spatial operators SDO_RELATE, SDO_FILTER and SDO_WITHIN_DISTANCE (not SDO_NN) called from JDBC (Java 1.2.2). For example: SELECT A.gid FROM FeatureTable1 A, FeatureTable1 B WHERE B.gid = 3 AND SDO_RELATE(A.Geometry, B

  • I phone 6 plus take time  when am writing in any program

    when am writing for example here if I wrote a word the phone will stop for some seconds then will appear it happens always

  • Query help. Any work around?

    Hi To all, Help me on this query. Table1 : seating_layout Columns(1) : Seat_no values 50 records i.e.. 1,2,3..50 Ex. Data : 1 2 3.. upto 50, i.e total 50 records Table : Quotas Columns(2) : seat_no_from, seat_no_to Ex. data : 1 5 8 13 I need a query