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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • 11.5.9 iExpense DFF LOV issue

    Hi All,
    in 11.5.9 iExpense implementation i am facing a issue in the DFF LOV's.
    In 11.5.9 the DFF's are dynamically rendered in detailsCO. Some of the DFF's have a LOV attached. which is rendered along with a torchlite symbol
    1. if user types in say 'Yes' and there is one matching value ideally it should not open the search region, but it always opens the search window.
    * This issue is not there in any other object (non Dff objects) which has serach capability.
    * This issue is not there in 11.5.10 instance , as Oracle has removed the DetailsCO completely.
    is this something do with a property?
    2. Can i set the property to show an advance search window (with and or options) instead of standard one (with one search criteria at a time - current functionality)? if yes means which property i have to set ?
    thanks in advance

    Hi Saurabh,
    Thanks for your advice. The usage of context sensitive flexfield is working for most of the scenarios, but failed while trying to add an employee as contact to other emplyee.
    In the contact screen, the newly added contact is reffered with contact type as employee.
    The error message is given below.
    PP-FND-01242: Cannot read value from field PERSON.EMPLOYEE_NUMBER
    Cause:  The field PERSON.EMPLOYEE_NUMBER could not be located or read.
    Action:  This error is normally the result of an incorrectly-entered field name string in a trigger, or a field name string that does not uniquely specify a field in your form.  Correct your trigger logic to precisely specify a valid field.
    Thanks.

  • Graphical Message Mapping - context issue

    Hi experts,
    This is the source structure I have http://www.flickr.com/photos/45449397@N03/4273866518/
    Now, for the target segment, I need to do the following:
    For every block of EAN, I need to check the CHECK fields.
    So for EAN 1111, I see 4 X's. But I need to check the distinct values.
    So, 1 x for CHECK_1, 1 x for CHECK_2 and 1 X for CHECK_5.
    As soon as there is an X, I need to create a target. Even if there are several X values in the same column, I only need it once.
    --> target will be 3 different segment groups.
    For EAN 2222, I only need 1 target segment group.
    Please advice.
    Thanks a lot!
    Dimitri

    I was about to write this that you will face this blank issue.
    You have to remove those blank vaues. We have to choices to do that either we modify the current UDF or we write one more very samll advanced UDF of type "queue".
    If we go for option 2 then the new UDF2 code will be like this..
    while creating the udf just select the type as queue (you will see 3 options: single value, context & queue)
    I guess the default argument will be "var1", if yes you can leave it as it is and the just copy and paset the code.
    for (int i = 0; i < var1.length; i++ )
    if (! var1<i>.equals(""))
    result.addValue( var1<i> );
    Now the mapping will be something like this..
    Source --> old UDF--->RemoveContext--->new UDF --->Target.
    But if you like to go for option 1 then first change the type of UDF to Queue and then in the code modify the "return" statement e.g.
    if (RegTH.equals('X'))
    result.addValue( ExpTH );
    else if (RegHI.equals('X'))
    result.addValue( ExpHI );
    else if (RegLO.equals('X'))
    result.addValue( ExpLO );
    else if (RegPE.equals('X' ))
    result.addValue( ExpPE );
    else if (RegLOW.equals('X'))
    result.addValue( ExpLOW );
    result.addValue( ResultList.SUPPRESS );
    Note: for option 1 you have to set context of source value to their heighest level, so that there shouldn't be a context change. Or you can use RemoveContext.

  • OAF-UCM integration - Issue in deploying RIDC.jar to EBS server

    Hi ,
    We are doing OAF-UCM integration with followng business scenario and need your help urgently.
    Business Scenario :
    We have custom OAF pages with OA train and and in one train link we have added 'managed attachment' button to open UCM page to add documents to DM server .
    We are successfully able to do integration of OAF to UCM , that is we are able to open UCM page on clicking Managed attachment button.Business agreed that OAF and UCM are two different applications so after transaction is completed in  UCM, at OAF we have refresh button which user has to clicked explicitly to pull document metadata ( lilke PDF URL etc) to OAF pages.
    This is data needs to stored in EBS tables as well , to achive the same we are using RIDC mechanism to PULL the data stored corresponding on 1 unique metadata.
    I m successfully able to integrate the PULL( Sychnonizaton) of data on click on refersh button of OAF page. RIDC ( UCM version 11g) is correctly configured in Jdev10g and working fine on local oc4j server,
    Problem :
    When this RIDC is jar is deployed in EBS server  I m getting following error -
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.NoClassDefFoundError: oracle/stellent/ridc/IdcClientException
    We have added RIDC jar(actual physical path is =/APPS/XXXXXXX/common/java/)   file name in jserv.properties and also added in CLASS PATH
    # Custom classpath
    wrapper.classpath=/APPS/XXXXXXX/common/java/oracle.ucm.ridc-11.1.1.jar
    Appreciate if some can provide pointers how to deploy this external jar file (RIDC.jar) and avoid this error.
    Many Thanks ,
    Ashish

    Ok, Figured out the issue,
    Values in the OAF_AXF_CMD_PARAMS table was not matching with the actual attributes on the OAF pages. The four values
    Entity Name, Primary Key, View Object and Attributes are to be entered for each page where we are intending to have the MA button.
    Thanks,
    Rajiv.

  • 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*

  • 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

  • Context issue in Jboss WAR

    I have Jb0ss 4.0.
    I have a folder structure like
    D:\jboss-4.0\server\strong_server\deploy\strong_ctx
    I have a war file named strong_ctx.war in the above directory
    Now i want to place one more war named stront_1.war in the same directory. But i am not able to find the context for the same
    Please throw some light on the context in JBoss and let me know how i can resolve the issue
    regards
    Aman

    Hi Bhargava,
    That measure would be "delegate measure". change that to SUM.
    For delegate measure we have to SUM function in WEBi variable. Otherwise multiple values cant be summed up.
    Muralidhar Reddy.

  • 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

  • Customized OAF page -- Duplicates Issue

    Hi All,
    We have a customized OAF page which allows user to perform the below operations,
    1. Query for records
    2. Add a new row
    3. Save the changes
    Issue is 3 of the fields in the page are of unique combination. We perform the validation to ensure unique values only get stored, if user tries to enter an value combination which already exists then system throws an error. But when user enters valid records and save it, the previously entered wrong data also gets stored to database.
    I have explained the scenario below, Item id/global code/local code are the unique combination fields
    1. User enters below values
    ITEM ID GLOBALCode LocalCode Desc
    IT123 100 100 T1
    Saved successfully.
    2. User now enters below values
    ITEM ID GLOBALCode LocalCode Desc
    IT123 100 100 T2
    When tries to save, get error message as Combination already exist. If i search for item id IT123 and Global code 100 it shows only 1 row
    3. User now enters below values
    ITEM ID GLOBALCode LocalCode Desc
    IT123 100 101 T3
    Saves the data successfully. But if i search for item id IT123 and global code 100 i am getting 3 rows as below,
    ITEM ID GLOBALCode LocalCode Desc
    IT123 100 100 T1
    IT123 100 100 T2
    IT123 100 101 T3
    Errored out record in step 2 also got inserted. Please assist if any of you have faced similar issue else provide some pointers in resolving the issue.
    Thanks,
    Rajesh SM.

    Rajesh,
    Issue is 3 of the fields in the page are of unique combination. We perform the validation to ensure unique values only get stored,
    if user tries to enter an value combination which already exists then system throws an error. But when user enters valid records
    and save it, the previously entered wrong data also gets stored to database.what all the steps or code u wrote to check the combination already exists or not. Post the method u have written to check the same.
    Regards,
    Gyan

Maybe you are looking for

  • Can I use Apple Remote desktop to connect over the internet?

    I would like to use Apple Remote Desktop to connect back to my MacPro desktop at home while I am on my Macbook Air at work.  Will I need a static IP from my service provider to do it.

  • Why is Aperture suddenly asking for serial number?

    I have just arrived in the Middle East to shoot some work, opened up Aperture (2) and it's asking for the product serial number. I have been using Aperture for 2 1/2 years and it has never asked me for this. Why is it doing this??? And needless to sa

  • Apache/SSL Tomcat config weirdness...

    I thought I read a post related to this recently, but I can't find it (the forum search is flaky lately), so I'm making my own post... We have Apache 1.3 with mod_ssl for SSL, Tomcat 4.1.24 and mod_jk set up. Things work fine for most of this setup,

  • Problem viewing specific Library

    For some reason I can't few the 2006 Library. The thumbnails are there but when I click on them I get an empty box with an !.

  • Training Administration vs Oracle Learning Management

    Hi, I am very new to OLM. Can anyone explain what is the difference between Training Admin and Oracle Learning Management. I referred 11.5.9 and R12 user guides of Oracle Learning Managemnt. I found the Activities, Events in 11.5.9. But in R12 I did'