DFF Issue on OAF page.

I am using DFF on OAF page and able to pupulate default default values in DFF through processRequest() in OAF
When i try to change the Default values after DFF is rendered and click some button on Page, all entered values is getting replaced with old values (default values)
Please suggest

oadescriptiveflexbean.processFlex(oapagecontext);
Enumeration x= null;
x= oadescriptiveflexbean.getChildNames();
while(x.hasMoreElements())
String aParamName = (String)x.nextElement();
OAWebBean dffbeans=(OAWebBean)oadescriptiveflexbean.findChildRecursive(aParamName);
if(dffbeans != null)
if (aParamName.equals("HzAddressStyleFlex1") && oapagecontext.getParameter("lAddress1")!=null)
OAMessageTextInputBean Address1=(OAMessageTextInputBean)oadescriptiveflexbean.findChildRecursive(aParamName);
Address1.setText(oapagecontext.getParameter("Address1").toString());
if (aParamName.equals("HzAddressStyleFlex2") && oapagecontext.getParameter("Address2")!=null)
OAMessageTextInputBean Address2=(OAMessageTextInputBean)oadescriptiveflexbean.findChildRecursive(aParamName);
Address2.setText(oapagecontext.getParameter("Address2").toString());
if (aParamName.equals("HzAddressStyleFlex5") && oapagecontext.getParameter("City")!=null)
OAMessageTextInputBean City=(OAMessageTextInputBean)oadescriptiveflexbean.findChildRecursive(aParamName);
City.setText(oapagecontext.getParameter("City").toString());
if (aParamName.equals("HzAddressStyleFlex6") && oapagecontext.getParameter("County")!=null)
OAMessageTextInputBean County=(OAMessageTextInputBean)oadescriptiveflexbean.findChildRecursive(aParamName);
County.setText(oapagecontext.getParameter("County").toString());
if (aParamName.equals("HzAddressStyleFlex7") && oapagecontext.getParameter("State")!=null)
OAMessageLovInputBean State=(OAMessageLovInputBean)oadescriptiveflexbean.findChildRecursive(aParamName);
State.setText(oapagecontext.getParameter("State").toString());
if (aParamName.equals("HzAddressStyleFlex8") && oapagecontext.getParameter("postaCode")!=null)
OAMessageTextInputBean ZipCode=(OAMessageTextInputBean)oadescriptiveflexbean.findChildRecursive(aParamName);
ZipCode.setText(oapagecontext.getParameter("postaCode").toString());
}

Similar Messages

  • Enable DFF issue on OAF

    Hello,
    I had requirement to add DFF to OIE_AUD_AUDIT_PAGE page for VO AuditReportLinesVO(the attributes are not avaiable). I extended VO to add all attribute columns.
    Defined an item of the item style flex, the DFF is not visible in the front end. Do I miss anything.
    Thanks

    Thanks Santy,
    I complied and enabled DFF. I am adding to H Grid table, I am getting the following error. Can we add DFF to H Grid.
    Any help is appreciated.
    java.lang.NullPointerException
    at oracle.cabo.ui.data.FlattenedDataSet.getFlattenedName(Unknown Source)

  • Graph issue in oaf page

    Hello friends,
    After creating the graph, my buttons are getting dispalyed smaller from the page.
    any idea how to get resolved this..
    Thanks for your help
    Regards,
    Krishna.

    Needn't worry.
    It only happens in JDev, once you deploy everything works fine.
    -Prince
    princekapoor82.blogspot.com

  • How To-set DFF to null and Not required in OAF page ??

    enabled service dff, added 2 segments. i want them displayed in service request oaf pages.
    details of dff-
    Application=Service , title = Additional Information for Agents
    in context field region : unchecked required and displayed
    In global data elements - added 2 segments based on value set(validation type = independent, list type = poplist)
    displayed and enabled checkbox are checked for both the segments.
    I want to be able to do two things
    1.in HTML service request agentdashboard- the 2 new dffs are displayed correctly as drop down lists. I can pick and save a value to those mapped columns.
    but the two drop downs are REQUIRED. I do not want them to be. how can I make them un-required.
    --while personalizing this flexfield elemnt from oaf page - I did not have the attribute-required to be unset.
    2. I want a default blank value in both the drop down list.
    I tried to add a nullvalue in valueset ,but its not letting me. can i do that ??
    any pointers please.
    Thanks in advance

    For your question
    >
    if I want to show one segment based on value of some other bean in the UI, then can I do it ? and how ?
    >
    If you do not want to extend controller then you need to use javascript. Sample code below
    <SCRIPT>if (document.getElementById("QFEQHR_FV").value =='Class Room')
    {document.getElementById("DescFlex2").style.visibility = "visible";}
    else{document.getElementById("DescFlex2").style.visibility = "hidden";} </SCRIPT>Here "QFEQHR_FV" is any bean ID in your page and "DescFlex" is DFF flex item ID. To get handle of the required DFF attribute change numbers starting from '0' and test.
    Sample code for testing
    <SCRIPT>alert(document.getElementById("DescFlex0").value);</SCRIPT>You need to add this code to "Text" property of a "Raw Text" item.
    Regards,
    Anand

  • Issue with messagedownload field on custom OAF page

    We have a custom OAF page where we are displaying file attachments using messagedownload field.
    We have a VO for this field where we are fetching the file name and file (BLOB).
    For the message download field, the properties are set as:
    DataType: VARCHAR2
    View Instance: custom vo
    View attribute: filename
    File View Attribute: filedata(BLOB column)
    The issue is when we have multiple files to display of the same file type like 6 pdf files, the file name is correct, but the content is correct only for the first file. The remaining 5 files also show the content of the first file though the filename is correct.
    Please let us know if anyone faced similar issue and the probable solution.
    Thanks in advance.
    Regards,
    Kiranmayi.

    Check that the view object used to render the table must have a designated primary key, else download bean will download content from the first row every time.
    --Sushant

  • How to enable the DFF in OAF page(where Dff is based on the custom table).

    Hi Experts!!
    I am in the process of enabling the dff in OAF page. I am not able to enable the dff if am using the Custom table.
    Ex:
    Assume that my DFF XX_DFF is using the custom table XX_TABLE of att1,att2..
    I am able to enable the dff in OAF page but not able to make those values entered to get stored in the custom table.
    I need helping hands to help me out to get the entered dff values stored in my custom table.
    Kindly provide me the steps so that I can follow up..
    Best wishes,
    Thiru.

    Hi,
    thiru_apps wrote:
    I need to store the captured values of Dff(which was enabled in the seeded page based on the custom table XX_Table) and the same needs to be stored into the custom table xx_Table.
    Basically the entered values for the DFF enabled should have to be get stored in the XX_TABLE(Custom TAble).As per my understands in Standard page u want create some extra fields and those should be save in custom table...is it ...
    For that u r going create stack layout region in standard page via personalization and extend with custom region.
    IF im geting u correctly u need to write code in co and am.
    ---U had already created the components eo vo AM co...
    ---For the custom region in Jdev do the mapping of viewInstacne and view attribute properties for the fields.
    ---In AM:
    public void CreateVo(OAPageContext pageContext, OAWebBean webBean)
    Row hrow;
    OADBTransaction tr=getOADBTransaction();
    EOVOImpl vo=getEOVO1();
    if(!vo.isPreparedForExecution())
    vo. executeQuery();
    hrow=vo.createRow();
    vo.insertRow(hrow);
    hrow.setNewRowState(Row.STATUS_INITIALIZED);
    public void savetr()
    OADBTransaction tr=getOADBTransaction();
    tr.commit();
    In Co ProcessREq:
    AMImpl AM=(AMImpl)pageContext.getApplicationModule(webBean);
    AM.CreateVo(pageContext, webBean);
    In Co ProcessFormREq:
    ---GEt the event of the save button of the standard page
    if(pageContext.getParameter("save")!= null)---DI of the standard page
    AM.savetr(pageContext, webBean);
    Regards
    Meher Irk

  • Help Needed Regarding Creating a DFF in OAF page

    Hi ,
    I am trying to create DFF in OAF page but i could not able to create it.
    Here is the through explanation of the Requirement and Error.
    We have migrated recently from 11.5.10 - R12.1.2 in 11i we have the Buyers Form which is a Template.FMB and for that we have attached a DFF
    Name of DFF:PO_AGENTS Resp :PO Tittle Purchasing: Agents and attributes :attribute1 and Attribute2.
    My manager want that same DFF to appear in the OAF page of the Buyers.
    Navigation :Purchasing -> Setup -> Personal -> Buyers.
    I tried creating DFF as per the documents I found online and in the OAF Documentation guide but I am not able to create the DFF.I dont know where I am doing it wrong.
    Help would be highly appreciated.
    Please find the steps below what is given.
    Before you can add a descriptive flexfield to an OA Framework page, you must first setup the descriptive
    flexfield in Oracle Applications. To start, review Chapter 3 ("Planning and Defining Descriptive Flexfields") in
    the Oracle Applications Flexfields Guide Release 11i.
    When you have a clear plan for the descriptive flexfield you wish to set up, refer to the section titled
    "Implementing Descriptive Flexfields" in Chapter 14 ("Flexfields") of the Oracle Applications Developer's Guide
    Release 11i for instructions to the following general steps:
    Step 1: Define descriptive flexfield columns in your database.
    Step 2: Register your descriptive flexfield table with Oracle Application Object Library.
    Step 3: Register your descriptive flexfield using the Descriptive Flexfields Window.
    Next, refer to the Oracle Applications Flexfields Guide Release 11i for instructions to these general steps:
    Step 4: Define your value sets in the Value Sets Window, as described in Chapter 5 ("Values and Value
    Sets").
    Step 5: Define your descriptive flexfield structure using the Descriptive Flexfield Segments Window, as
    described in the "Descriptive Flexfield Segments Window" section of Chapter 3 ("Planning and Defining
    Descriptive Flexfields").
    Recall that the value of a descriptive flexfield context field determines the context of the descriptive flexfield
    and the context-sensitive segments (if any) that are displayed. The section titled "Context Fields and
    Reference Fields" in Chapter 3 ("Planning and Defining Descriptive Flexfields") discusses context fields in
    more detail.
    Note: Reference fields for descriptive flexfields are supported by Forms-based Oracle Applications, but not
    by OA Framework. A developer mode error occurs in JDeveloper if you try to implement this feature in OA
    Framework. Refer to the "Reference Fields" section of Chapter 3 ("Planning and Defining Descriptive
    Flexfields") in the Oracle Applications Flexfields Guide Release 11i for additional information about
    reference fields.
    Step 6: When you are ready to add the descriptive flexfield to an OA Framework page, follow the steps
    outlined in the Declarative Implementation and Runtime Control sections below.
    Declarative Implementation
    The following steps describe how to add a descriptive flexfield item to a OA Framework region:
    Step 1: Define an item of the item style flex in your region.
    Note: You cannot create a flex item directly under a messageComponentLayout region, but you can create a
    messageLayout region under the messageComponentLayout region and add the flex item under the
    messageLayout region.
    Step 2: Set the Read Only property to True or False, depending on whether you want the descriptive flexfield
    to be read only.
    304
    Step 3: Specify a View Instance for your flexfield. The view instance should be the same as the view instance
    (view object) specified for your region. When the view object is defined, it should include all the database
    columns necessary for this descriptive flexfield. You should not change the database column names for this
    flexfield because the OADescriptiveFlexBean uses the same naming convention that the view object
    generation routine uses to find the corresponding attribute names from your view object.
    Note: OA Framework supports multiple descriptive flexfields on the same view object.
    Note: If a flexfield's view object does not return a row, an OAException will not be thrown so that the
    controller's processRequest method can still execute and render the flexfield.
    Step 4: Set the Appl Short Name property to the short name of the application to which the descriptive flexfield
    is registered. (Step 3 of Setting Up a Descriptive Flexfield in Oracle Applications).
    Step 5: Set the Name property to the name of the descriptive flexfield as it was registered.
    Note: This differs from how Key Flexfields are defined by shorthand codes.
    Step 6: Set the Type property to descriptive.
    Step 7: Set the Segment List property as appropriate (see Descriptive Flexfield Segment List).
    Step 8: Finally, you may set the Display Context Field to True or False, depending on whether you want to
    hide or show the context for the descriptive flexfield.

    Hello all OAF GURUS,
    Here is the brief explanation of what I am doing Environment :R12.1.2
    I am creating an item type of FLEX and the values are
    Step 2) Set the Read Only property to True
    step 3 )View Instance : PoAgentsVO
    step 4) Application Short name :PO
    Step 5: Set the Name property - PO_AGENTS name of the DFF
    Step 6: Set the Type property to descriptive
    Step 7: Set the Segment List property as appropriate here I am giving as Attribute1||Attribute2
    Step 8: Finally, set the Display Context Field to True
    after doing all these I am not able to see the DFF i dont know where I am doing a mistake.
    Help would be highly appreciated.
    Thanks & Regards
    Krishna
    Edited by: user12156300 on Jan 29, 2010 7:55 AM

  • Issue in Accessing OAF Page in Oracle Apps

    I am facing a strange issue while accessing OAF pages from a responsibility. I have a OAF page which is attached to a responsibility through a menu-function. When I click the menu, it opens the page in a new window properly, but if I click the menu again it opens the page ontop of the existing page (which was opened previously). Is there any setup in IE to fix this? Ideally the page should be opened in a new window everytime I click the menu.
    Any pointers on this would be appreciated.
    Thanks,
    Shree

    If all of the users are using the same responsibility and the issue happens only for some users, you can determine what profile options have been set for the user for which this works by using scripts in MOS Docs 367926.1 (How To Find All Users With A Particular Profile Option Set?) and 282382.1 (How to Search all of the Profile Options for a Specific Value). You may need to modify these scripts to suit your needs.
    HTH
    Srini

  • LOV Auto Refresh Issue - OAF Page

    Hi,
    Currently we are facing one issue with one OAF page.
    We have one LOV in the page. Currently it is fetching the details as per the VO SELECT query associated with it and no issues in the query part.
    But, if you try to update the tables which are associated to the above VO query, the updated results are not showing in the LOV even after re-login also.
    One interesing thing is, we are able to get the updated results in the LOV once the server is bounced. Can any one pls let me know how to get this resolved and we are expecting this updated results needs to picked by LOV without bouncing the server.
    Best Regards,
    Hari

    Hi Ankul,
    We have already tried the approach which you have suggested. But still that did not worked.
    Best Regards,
    Hari

  • 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

  • How to derive DFF segment id programatically, attached to OAF page

    Hi Guru's
    I am facing below challenges in handling the segments of DFF which is attached to OAF page.
    As per the requirement, we need to do the changes on the segments of DFF(Party Information). But segments of these DFF are different for each attribute category in DFF.
    I can get the segment id by seeing the View Source of that page where DFF is attached but this id differs when sequence of DFF segments differs.
    for ex.:- for Attribute Category Comany segments sequece are-
    1) Acounting
    2) Sub Accounting
    so for this attribute category Accounting segment id will be 01 and Sub Accounting segment id will be 02
    but for Attribute Category Agency segment sequece are-
    1) Sub Accounting
    2) Accounting
    so for this attribute category segment id will 01 for Sub Accounting and 02 for Accounting.
    So we need the approach to derive the segment id instead of getting it from View Source page.
    Can any one please help on this?
    Please reply incase you require more details on it..
    Regards,
    Piyush
    Edited by: Piyush_Gupta on Feb 4, 2013 10:00 PM

    Hi All,
    I am still facing the challanges.
    Could anyone help me on this?
    Regards,
    Piyush

  • DFF on OAF Page

    Dear all
    I have a DFF on oaf page(EAM work Request) with table type. I want to filter data with profile values. like
    ORGANIZATION_ID = $PROFILES$.MFG_ORGANIZATION_ID
    where WF_HEADER_ID in
    ( select wf_header_id
    from EARMS_WF_HEADER
    where ORGANIZATION_ID = FND_PROFILE.value('MFG_ORGANIZATION_ID'))
    Above code not working
    Is there profile values works on OAf pages or oracle uses with Util package
    please guide.
    Aamir

    Aamir,
    Check through the System Admin responsibility whether any value exists for the following profile Name. or you can print the same in the same using SOP's before executing your vo.
    Regards,
    Gyan

  • Responsibilty of OAF page issue

    hi All,
    I have added one responsibility by using system administrator resp to my user.but when i try to login ,that responsibility is not appearing to open.but when i query my username in sysadmin that responsibility is stay there(its in active mode that there is no expirydate) in users window.we will add this responsibility to another users they can able to open that responsibility of OAF page.
    what is the problem in my user is not able to open that responsibility rather than open in another user that particular responsibility. that responsibility behind OAF page is there. is there any profile option we have to set for particular user or that responsibility.
    can any one solve this problem.
    Thanks

    Please refer to Metalink Note 374309.1 and apply required patches
    --Mukul                                                                                                                                                                                                               

  • Unable to open OAF page oracle.adf.mds.MetadataDefException:

    I am unable to open a OAF OAF page. The error message that i am getting is
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /bob/oracle/apps/ak/pmrtest/webui/PMRTestPG-ROHR-MRA=36105=3014=Y=Y, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
    I tried running the below
    begin
    jdr_utils.printdocument(<PageName>);
    end;
    It throws and error "Could not find document <Pagename>"
    Can anyone pls help resolve this issue
    Thanks

    Hi Gyan,
    When I printdocument for that region, I see the xxpositionname1 as the messagestyledtext item.
    <insert before="ManagerColumn">
    <oa:column id="xxPositionName" adminCustomizable="true" bandingShade="none" cellNoWrapFormat="false" columnDataFormat="textFormat" displayGrid="true" rendered="true" scope="." totalValue="false" userCustomizable="false"
    xmlns:oa="http://xmlns.oracle.com/oa">
    <ui:columnHeader xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:sortableHeader id="xxPositionNameSH" adminCustomizable="true" cellNoWrapFormat="false" initSortSeq="none" prompt="Position" rendered="true" required="no" scope="." sortState="yes" userCustomizable="false"/>
    </ui:columnHeader>
    <ui:contents xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:messageStyledText id="xxPositionName1" adminCustomizable="true" cellNoWrapFormat="false" dataType="VARCHAR2" initSortSeq="none" prompt="Position" queryable="false" rendered="true" required="no" scope="."
    selectiveSearchCriteria="false" serverUnvalidated="false" sortState="no" tipType="none" totalValue="false" userCustomizable="false" vAlign="middle" viewAttr="Name1" viewName="IrcOfferSearchVO" warnAboutChanges="true"/>
    </ui:contents>
    </oa:column>
    </insert>
    Thanks,
    HC

  • Not able to create rows in a table with dependent columns in an OAF page.

    We have a table in an OAF page which has the property "Records Displayed" set as "10". Hence pagination kicks in for more than 10 rows in the table. "Add rows" is enabled in this table. The table also has 'detail' component.
    In this table, we have created 2 new columns (dropdowns) using personalization. Dropdown 2 is dependent on the value selected in Dropdown1. Both are required fields.
    We are able to add new rows to the table. All the columns render properly. Dropdown 2 also renders properly depending on the values selected in Dropdown1. There is no issue until we add the 10th row (remember the number of displayed records in the tabble is 10). When we add the 10th row, the fields appear properly. Dropdown1 values are displayed as expected. But when we select a value in Dropdown1, Dropdown2 does not refresh and get populated with the expected values (depending on Dropdown1 values). Dropdown2 remains blank. But this happens only when the 10th row is added. Since Dropdown2 is a required field and since Dropdown2 is not refreshed with values depending on Dropdown1, the records cannot be saved.
    There seems to be a problem with refresh when the nth row is added to the table where 'n' is the Records displayed in the table (pagination).
    If we change the Records Displayed to say 15 then we have the above problem when adding the 15th row. 14 rows can added to the table without an issue.
    Can a workaround (other than increasing the number of displayed records) be provided for this issue?

    Hi,
    I suspect you have written a method having String return type but the method does not have return statement.
    Go to the Catalogue component->BPM Object->Right click on the BPM object and select New Method->Give the method name. Now the method window will be opened. Go to the propertied tab of the right most panel. Set the return type as string. In the method window editor write your business logic. The below mentioned code is for sample one.
    String msg = "Hello World";
    return msg;
    Bibhu

Maybe you are looking for

  • File won't save in CS5 but does in CC need to make it back compatible

    This is my script, it runs fine in Photoshop CC but not on CS5.1 It does most of the script but will not save it comes up with the error   save current document in file "Images3:2013-2014:WK99:Top:Top_WK99_PSD:TM15WA00124SV1RH.png" of current documen

  • Manhours not refelecting in CJI3 Line item report

    What user is meaning that manhours entered by employee/end users (personnel) for their daily work in the project does not reflect in CJI3 report (Actual line items display). I have posted manhours in CAT2 but these are not getting transferred in Proj

  • Download ed videos start and stop then just freezes and

    There are no more.details. that's it

  • PROTECT in SMARTFORMS

    Hi, in sapscript we have sentence PROTECT/ENDPROTECT, what is the equivalent in smartforms? How can i do likewise in smartforms? Best regards.

  • Grab is dead?

    I just finished putting in a new HD, and thus, a fresh install and TM migration. Unfortunately, Grab is now useless (along with Photoshop CS2, but that was expected). It just quits as soon as I click on it. Anyone else have this one? p.s. - having a