Regarding DFF

Hi all,
i have created a form and a table and registered the table suing ad_dd package.
my requirement is to create DFF on the form so that, i created a procedure and given code for "WHEN_NEW_FORM_INSTANCE" and also for WHEN_NEW_ITEM_INSTANCE after that i deployed my form in Applications when i run Open the form i got the following error message.
APP-FND-00682: Program error: Routine FDFGDC cannot read structure ID field. The developer specified a structure ID column (via the Register Descriptive Flexfields form) that does not exist in this block of this form.
Action: Contact your support representative.
APP-FND-01242: Cannot read value from field STUDENT.ATTRIBUTE_CATEGORY
Cause: The field STUDENT.ATTRIBUTE_CATEGORY 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.
can any one tell me How to rectify this error and please give me some information on how to Impament DFF's in a form.
thans in advance,
siddam

the code for when_new_form_instance is
BEGIN
     SRI_DFF_TEST.DFF_PROC('WHEN_NEW_FORM_INSTANCE');
END;
and the package in program units is
PACKAGE BODY SRI_DFF_TEST IS
PROCEDURE DFF_PROC(EVENT VARCHAR2) IS
BEGIN
     IF (EVENT= 'WHEN_NEW_FORM_INSTANCE') THEN
          FND_DESCR_FLEX.DEFINE( BLOCK => 'STUDENT',
          FIELD => 'DFF_TEXT',
          APPL_SHORT_NAME =>
'CUSTOM_APPLICATION',
          DESC_FLEX_NAME => 'SRI_TEST_DFF');
     END IF;
     END DFF_PROC;
END;
in the when_new_item_instance trigger i have given the following code.
when_new_item_instance
DO_KEY('EDIT_FIELD');
thanks for your time and patience,
siddam

Similar Messages

  • 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

  • Unable to default DFF segment based on selection of other field value.

    Hi Gurus,
    *I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
    I have extended my CO and tried many ways (from simple to little complex) but to no success.
    Simpler way:
    *=======*
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
    Row row = vo.first();
    row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
    row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
    This code doesn't work.
    Understanding that, DFF segments can't be set as simple bean, I have done below:
    *===================================================*
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
    oadescriptiveflexbean.processFlex(oapagecontext);
    if (oadescriptiveflexbean != null){
    ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
    if(contextmap != null){
    Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
    if(enumeration != null){
    do
    if(!enumeration.hasMoreElements())
    break;
    Object obj = enumeration.nextElement();
    OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
    oapagecontext.getParameter("WorkRequestDesc1")
    //String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
    if(oawebbean1 != null)
    if(oawebbean1 instanceof OAMessageTextInputBean)
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
    //oamessagetextinputbean.setReadOnly(true);
    oamessagetextinputbean.setText("Jawad");
    } while(true);
    Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
    More info:
    *======*
    VO: RequestDetailsVO
    DFF Regions ID: WorkRequestDesc
    Attribute1 (DFF segment1) ID: WorkRequestDesc1
    Appreciate your responses,
    Jawad

    Dear Guys,
    I found out a workaround for this case (If this helps others): :)
    *1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
    *2. In the extended CO, in PFR, get the handle of these created fields.*
    *3. Set the values as required.*
    Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
    But I still am hunting for the possibility of setting a single segment.
    Thanks and Regards,
    Jawad
    Edited by: Jawad on Apr 19, 2012 3:36 AM
    Edited by: Jawad on Apr 19, 2012 3:38 AM

  • Values not getting saved in DFF in iSupport

    Hi,
    I have enabled DFF in iSupport, which is visible to users. Users are able to enter values in the fields, but after SR is created, the values are not visible in SR update screen in iSupport nor in SR form in customer support.
    Does anybody know what could be wrong?
    Regards,
    Mohammed

    Mohammed,
    Did you try to bounce Apache and see if this helps?
    Please review the following documents and see if it helps.
    Note: 404603.1 - iSupport Not Showing the Descriptive Flexfiels (DFF)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=404603.1
    Note: 272398.1 - Service Request External Flex DFF Is Not Visible In iSupport
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=272398.1
    Note: 594111.1 - Service Descriptive Flexfield Not Visible In iSupport
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=594111.1
    Regards,
    Hussein

  • 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

  • Suppliers Open Interface Tables- DFF Value on Contacts

    Hi all... I am creating an R12 Interface using the 3 Supplier open interface tables
    AP_SUPPLIERS_INT
    AP_SUPPLIER_SITES_INT
    AP_SUP_SITE_CONTACT_INT
    Here's the thing... I need to pass a legacy id value to the Contacts in order to do updates. I was hoping to use the attribute1 field. The problem is, the site contact interface table doesn't have any attribute columns!
    Is there a way around this? Does anyone know why this table is missing columns?
    Thanks

    If just DFF Attribute column try direct update of attribute column.
    Otherwise perhaps the APIs have them?
    Regards,
    Gareth

  • HOW TO CREATE A DFF BASED ON ORGANIZATION

    Hi,
    I want to create a DFF which would have 5 different context values, i want 2 of them to be available in one organization and other 3 in other organization, how i can achieve this.
    Regards,
    Usman.

    Hello,
    "HOW TO CREATE A DFF BASED ON ORGANIZATION"
    1- I will create a customized table having two columns one is for context name and other is for org_id,
    2- then i will create a value set on this table and will use this on 'Value Set' field on 'Descriptive Flexfield Segments' window.
    3- In the where clause of this value set i will pass org_id from profile $PROFILES$.ORG_ID,
    4- this will restrict the context based on org_id And user will only have context related to there org
    I have successfully achieved the above requirment.
    Find below the restriction you should follow so that Value set is available in LOVs on "Descriptive Flexfield Segments" window:
    Value sets used for context fields must obey certain restrictions or they will not be available to use in the Value Set field in the Context Field region of the Descriptive
    Flexfield Segments window:
    • Format Type must be Character (Char)
    • Numbers Only must not be checked (alphabetic characters are allowed)
    • Uppercase Only must not be checked (mixed case is allowed)
    • Right-justify and Zero-fill Numbers must not be checked
    • Validation Type must be Independent or Table
    If the validation type is Independent:
    • the value set maximum size must be less than or equal to 30
    If the validation type is Table:
    • the ID Column must be defined, it must be Char or Varchar2 type, and its size must
    be less than or equal to 30. The ID column corresponds to the context field value
    code (the internal, non-translated context field value).
    • the Value Column must be defined, it must be Char or Varchar2 type, and its size
    must be less than or equal to 80. The Value column corresponds to the context field
    value name (the displayed context field value).
    • the value set maximum size must be less than or equal to 80
    All context field values (the code values) you intend to use must exist in the value set. If
    you define context field values in the Context Field Values block of the Descriptive
    Flexfield Segments window that do not exist in the context field value set, they will be
    ignored, even if you have defined context-sensitive segments for them.
    Best Regards,
    Usman.

  • 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

  • How to Set Default Value in DFF

    Hi Experts
    I have a requirement to Default the DFF field value as No on Iprocurement Requistion Headers Page.
    I followed the below steps to enable the field. Please help me where can we set the initial value as NO.
    Please help me how to set the default value as No and we would aslo want to give flexibility to the user to change it to Yes if they want to.
    Any Help would be greatly appreciated.
    http://oraclerocks.blogspot.com/2008/04/adding-dffs-to-oaf-pages.html
    Add DFF to iProcurement Requisition header in the same way. Define a DFF again:
    1. Create a new Value Set.
    2. Define Values for the value set created in step 1.
    3. Add Value Set to the Flex Field Segment in Application: Purchasing and Title: ReqExpress Headers.
    4. Freeze and Compile the FlexField definition.
    The steps to enable DFF in IP HTML pages are as follows:
    1. Enable profile Personalize Self-Service Defn to yes at the user level
    2. Log in to iProcurement
    3. Go to Checkout: Requisition Information page
    4. Click Personalize Page at the top of the page
    5. Look for Flex: (ReqHeaderDFF)
    6. Click Edit (Pencil)
    7. Change Rendered from false to true8. Click Apply
    9. Click Return to Application
    Regards
    Krishna

    Hi Gaurav
    Thanks for your quick reply. I did a different solution just by adding value set with Pop List and attached to DFF segment. The value set that I created is for single value saying Yes. So on the page by default it will display NULL. If user want to select a value then they will select Yes from the pop list. On that same region I created TIP and left a note.
    I will follow the approach that you mentioned, for my future extensions. Thank you for your help again.
    Regards
    Krishna

  • Error while compiling DFF

    Hi,
    I have added a segment to the DFF, 'Group, Team and Roles Additional Information' and associated a Custom Dependent valueset to that.
    While i compile the flexfield, I am getting the below error.
    +APP-FND-00798: Invalid reference $PARENT_VALUE$ in value set attached to segment SALES CHANNEL+
    +Please check the WHERE clauses of your table validated value sets.+
    SALES CHANNEL is the name of my segment.
    I am working on R12 application. Please let me know if someone can give hint on this.
    Regards,

    I created custom VO and files in my local JDev and it is working properly.
    I wanna migrate it to actual instance.So my question is is it mandatory to compile custom java file in application server or i can use same which i used in my local machine(windows)?
    -- Manoj

  • DFF Values Default in Credit Memo from AR Invoice

    Hi,
    We have entered an AR Invoice with DFF values at the Line Level.
    We are creating a Credit Memo directly from the Invoice.Almost all the information in the Credit Memo defaults from the Invoice which is being credited. The DFF information is not defaulted from the Invoice Line level.
    We have to manually enter them.
    Is there someway to default the DFF values from the Invoice onto the Credit Memo ?
    We are on R12.1.3
    Regards,
    Hari Charan

    Hi Hari Charan,
    in 11i this seems to be not possible, as there is an enhancement request available for the same. However for R12 there is a patch suggested by oracle in the below documentation ...Please review the note in detail
    Transactions Form Issue: Credit Memo Does Not Inherit Descriptive Flexfields of Invoice [ID 1316534.1]
    Regards,
    Ivruksha

  • What are the steps needed to make the field in the DFF Additional Information for Agent only take numbers, commas & hyphens?

    Hello All,
    What are the steps needed to make the field in the DFF Additional Information for Agent only take numbers, commas & hyphens?
    Navigation
    Bob Sales manager<Ebiz form<service request tab<SR type<DFF<additional information for agents <cheque number
    The field Cheque number Character allowed (, -) in the DFF Additional Information for Agent should only take numbers
    Thanks & Regards
    Ayesha

    Thanks Sridar
    If we use Number we cannot separate the cheque numbers with , or -
    We need to enter numbers along with comma and '_' in cheque number field.
    Thanks & Regards
    Ayesha

  • How to populate values into DFF

    hi all
    kindly tell me how to create a LOV for a DFF field based on some other field in the form?
    for ex:
    i created a DFF to catch supplier site based on supplier name entered in the form , how to correlate both?
    kindly answer
    --regards
    --raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi Ghattamaneni,
    Issue resolved?
    if not, try with this.
    Create a Value set based on suppplier name to get supplier site.
    then go to DFF.
    either Sys Admin/Application/DFF or AP/Set-up/DFF.
    Then create DFF with Context Prompt or with context.
    add the attributes and add Value set to each attribute.
    try with this.
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Custom Program to update the GL journal DFF each time journals are imported

    Hi Guru's,
    I have a requirement that I need to build a custom program to update the GL Journal Lines DFF. This program will be executed each time sub-ledger journals are imported to GL.
    OPM, AP, AR, Inv & OM will be the Journal sources for those the journal line DFF needs to be updated.
    Kindly could anyone give me the best way of doing it.
    Thanks & Regards,
    Genoo

    Hello Geno,
    A technical solution is when Journal Import program is launched, the updates of DFF are done after the creation of journals in GL.
    So no need to have a custom concurrent program to update the Journals.
    You can customize the gl_import_hook_pkg.post_module_hook package to call a custom package and do the updates for journals.
    HTH,
    Vik

  • DFF on AP Payment not editable for quick payments

    We are using R12 12.0.6
    We opened a DFF on AP Payments but it only enables for manual payment type
    And we only use Quick Payment Type..For quick Payment, this DFF appears disabled althoiugh its enabled and compiled from Setup>flexfields>descriptive>segments
    Please Help
    Thanks

    Hi,
    As you see from Bug 6696171 (referenced in the same document) that there is no workaround, and this is standard product functionality.
    I would suggest you log a SR, and see if Oracle support can help.
    It would be great if you edit your previous post as copying Metalink notes contents is illegal.
    Regards,
    Hussein

Maybe you are looking for

  • Syntax Error in Update Statement

    Would a smart and kind CF pro mind putting a fresh pair of eyes on this code and tell me where the syntax error is? All the fields in the statement are numeric except the last one (comments). I have enclosed them in val() to ensure they are numeric w

  • Can InDesign CC 2014 automate image placement?

    I have designed a certificate of achievement to award participants for a variety of activities. I have also designed badges for each activity in the form of png files. I will be creating numerous certificaes and already know how to auto-generate them

  • Address Book Prefs

    When I want to print a 'List' of addresses from Address Book as I do quite often, is there a way to permanantly set the 'Paper Size' to A4 instead of it defaulting to US Letter all the time? Its really annoying when you forget to change it when print

  • Wrong icon shows on saved files

    When I save a Sketchup file it is saved with the icon of another program.  Apple help says to open a file with the wrong icon and another file with the correct icon. From the "Get Information" window opened on both files delete the wrong icon and cut

  • Websheets?

    Hi, We've been taking a look at the new websheets in Apex 4 but I'm not really clear on the intention of these. What is the intended audience? What sort of applications is the tool intended to build? Its great that users have the ability to create da