DFF Validation

Is there an API I can call to validate DFF values before loading them into a Open Interface Table.
Regards,
Andries

this is not possible
you must immediately correct errorful data
i,guru

Similar Messages

  • DFF validation - Looking for a function that validates a DFF

    Hi,
    I have found this code:
    IF NOT fnd_flex_descval.validate_desccols (appl_short_name => p_application_short_name
    , desc_flex_name => p_desc_flex_name
    , resp_appl_id => p_resp_appl_id
    , resp_id => p_resp_id
    But I would like to find out which attributes are not valid.
    I also have found this call:
    SELECT application_column_name BULK COLLECT
    INTO L_attributeTbl
    FROM fnd_descr_flex_column_usages
    WHERE descriptive_flexfield_name = p_desc_flex_name -- G_descFlexNameLines
    AND descriptive_flex_context_code = p_desc_context -- PR_context
    ORDER BY column_seq_num;
    dbms_output.put_line('Attribute rejected: ' || L_attributeTbl(fnd_flex_descval.error_segment) );
    l_error_message := fnd_flex_descval.error_message;
    But the author of the message writes that it is unreliable.
    Many thanks if you can help.

    Hi Jean;
    Pelase check below and see its helpful for your issue:
    how to do validation on DFF ?
    how to do validation on DFF ?
    Validate DFF in Oracle Apps
    http://www.oraclearea51.com/code/code-snippets/oa-framework/tutorial-code/validate-dff-in-oracle-apps_14.html
    HOW TO validate ALL DFF values in one go
    http://wiki.oracle.com/page/HOW+TO+validate+ALL+DFF+values+in+one+go
    Hope it helps
    Regard
    Helios

  • Custom date validation format for dff field

    requirement -
    dff has a specific date time format different from the standard valuesets for date-time stamp available in apps. So if the user enters the incorrect format, it should do the validation.
    Format needed for dff is : 2012-04-30 15:46:35
    I tried a couple of thigs but dint fork . How do I do it.
    any suggestions ?
    Thnks

    This topic was discussed many times in the forum before, please see old threads for details.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=dff+AND+Validation&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=dff+AND+Validate&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=dff+AND+Validation+AND+Personalization&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to do validation on DFF ?

    Hi,
    I have 2 requiements on Employee Self-Service, create absence page:
    1) Sponsor filed in Absence form should be made mandatory based on few conditions.
    2) Child of Delivery field in Absence form should be made mandatory based on few conditions.
    I have found that both of the fileds are coming from DFF, and not able to get handle over these fileds.
    How can I make them render true and false based on the conditions?
    Thnaks,
    Ranita.

    Hi,
    Referring following code:
    OADescriptiveFlexBean descFlexfieldsBean = (OADescriptiveFlexBean)webBean.findChildRecursive("DescFlexfields");
    if(descFlexfieldsBean != null){
    UINode uinode = descFlexfieldsBean.getIndexedChild(pageContext.getRenderingContext(),0);
    if(uinode != null){
    flexStr = uinode.getID();
    OAMessageTextInput ccc =(OAMessageTextInput)descFlexfieldsBean.findchildrecursive(flexStr );
    if (ccc != null)
    ccc.setRquired("yes");
    Other workaround is :
    1> for the particular condition --> check viewattribute of the dff item Sponsor is equal to null or not
    if it is null then throw the error
    Thanks,
    Kumar

  • 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

  • How to add new validation for the iProcurement web page?

    Hi,
    I am very new to OA Framework. Can you experts give me some guidance on how to proceed with the following customization?
    My requirement is in iprocurement when you open a new cart and check out on "ICX_POR_SHOPPING_CART" there is a Project Field and reference to Charge account. If the users go to charge account (ICX_POR_CHECKOUT_SUMMARY) and enter the segment values ( which includes project segment) and enters a value in project segment other than '000000' with out entering the Project Field on "ICX_POR_SHOPPING_CART" the page should give error.
    Please give me some suggestions on how to proceed.
    Thanks
    Vish

    I need the client side validation. By saying server side validation if you mean writing a triger on tables to validate then I am thinking to take that option as last resort.
    Can you please tell me what is PPR ( Is it personalization?) stands for.? In my case the Charge Account is DFF.
    Can you direct me to any documentation on how to add custom javascript to achieve my objective?.
    Thanks for your Help.
    Regards

  • 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 use the :$PROFILE$ token in a table validation value set

    Hi Community,
    Let me explain the scenario.
    We have a Flex Value Set (CLIENTES SERVICIO DIRECTO) with a table validation, included in the PO Headers DFF, which shows a LOV with the Ship-to addressfrom the customer which we want to serve the goods; i.e. we are acting as a commisionists and the supplier puts the goods in the Ship-to address of the customer.
    This Flex Value Set, as I mentioned, have a table validation, with the following validation table information:
    Table Application: Oracle Receivables
    Table Name: RA_ADDRESSES_ALL a, RA_CUSTOMERS b
    Table Columnns: b.CUSTOMER_NAME Varchar2(20), a.PARTY_LOCATION_ID Varchar2(20)
    Where/Order By: a.CUSTOMER_ID = b.CUSTOMER_ID
    Additional Columns: a.ADDRESS1 "Dirección"(20), a.CITY "Ciudad"(10)
    If we translate this to a SQL code:
    select a.address1,
    a.city,
    a.party_location_id,
    b.customer_name
    from ra_addresses_all a,
    ra_customers b
    where a.customer_id = b.customer_id
    and b.customer_id = 6283 <--- This last condition clause is for narrowing the result to the interested customer.
    This select retrive us two records; for the same customer, one of them for one organization_id (let's say 85) and one of them for the other organization_id (84).
    What we are looking for and want is that the LOV, which actually display the two records, shows only the ship-to site of the customer that belongs to the organization_id which belongs the user who queries or creates the Purchase Order.
    I.e. Suppose that we enter to Purchasing using the responsibility assigned to the Operating Unit or Organization_id 84. We want that theLOV only shows the Ship-to Site from the customer that belongs to the Operating Unit or Organization_id 84.
    I believe that we can achieve this using the :$PROFILE$ token, but we do not know how.
    Any ideas?
    Thanks a lot for your answer.

    Hi Rcana,
    We have just test your suggestion and it works. We believe that the correc sentence was fnd_profile.get('profile_name'), but the value feature solve the problem. Thanks for your help.
    Regards.

  • 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 in Attachement Document Category (There is no DFF column found in form)

    Hi All
    I want to enabel DFF for the form Attachment -> Document Categories in Application Developer.
    Table (FND_DOCUMENT_CATEGORIES) has attribute columns, but the DFF [] column is not found in the form.
    Is it possible to enable DFF for this form??
    Thanks
    Edited by: user12270833 on Feb 10, 2013 12:43 AM

    @Nancy O.
    Thank you so much for the information and the links!
    Removing the height from the css made the error go away.
    I did use a spry menu bar for the links. I then added in pictures for the buttons that i made in PS.
    The reason i am using the free site that i am, is that this is my first real web site. It doesnt have to be ready for months and i wanted to make sure i could do the project before it goes on a pay site.
    @hans-g.
    Here are a couple of pictures from my Fx and IE.
    Fx http://i195.photobucket.com/albums/z100/micro5797/Kommitted/homeFxupload.png
    IE http://i195.photobucket.com/albums/z100/micro5797/Kommitted/HomeIEupload.png
    In these pictures, why is the linkable lower banner section that says "Desktop" higher then the rest of the banner?
    Is that a problem that occured in the "slicing" in photoshop?
    In DW i set the border to ) trying to fix the problem, but it didn't make a difference, that is why i assume d that it may be an error listed in http://validator.w3.org/ , but now i see that it isnt.

  • How to include a DFF in search

    My requirement is,
    I have a DFF. I want to make the DFF fields searchable in OA framework. How can i achieve it?. Please advice by steps. Thanks

    In OA developer guide, for DFF they have mentioned as follows
    +++
    Descriptive Flexfield in a Search Region Currently if a Search region includes a descriptive flexfield that has a segment of type LOV, any search criteria that you specify in that flexfield LOV will be auto-validated. LOVs, however, should not be validated in a search criteria region. To turn validation off, use the following API in OADescriptiveFlexBean:
    public void setUnvalidated(boolean unvalidated);
    If the unvalidated value for this method is true, OA Framework will disable LOV validation and disable server-side validation for the descriptive flexfield. See Flexfield Validation for more details.
    +++
    Does it mean, DFF can be implemented in Search Region. If Yes, how?. Any idea.
    Regards,
    Soorya

  • 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

  • FlexField Validation based on Form Status

    Hi ,
    Background :
    I have a Valueset attahced to a segment in DFF, that say, stores a employee ID. My Value set picks up only active employees based on a specific condition. So that, when user enters data, he/she can choose only active ones.
    But as days pass by, the users are end dated. So when I query the Order ( to which this DFF is attached, ) that has an end-dated employee attached to it, the validation fails.
    My Question :
    Is there a way to have the Value set fire only in the Entry Mode and not fre in Query mode?
    Do we have to do this using the FORM.STATUS ( 'NEW','CHANGED') in the valueset query to acheive this? Or is there a simpler way?
    Thanks
    konnektme

    Hi Karthik,
    Instead of making the value set not to validate, you can make the value set to validate as successful. This can be achieved in any of the following ways.
    1) Make the Employee value set to display both Active/Inactive employees. If required the Status column can be displayed in the LOV. Also the list can be ordered by active employees first, then followed by inactive employees. There by user have the option to select the exployees be referring the employee status. This provides a provision to create records based on inactive employees also. If we strictly want to restirct to select only active employees. As said earlier, we can validate in Key-Commit or When validate Record.
    2) Change the value set to return active values always and inactive values only based on condition. Say the condition is (:system.record_status <> 'QUERY' and active_flag = 'y'). In this case only active records will be retreived in the record status is not query, where as if the record status is query, inactive records will also be retreived.
    If you have any solid condition to restrict the records, you can use those instead of record status/form status.
    I would prefer to use Option 1. Which will provide a solid result all the time. Where as option 2 might cause some issues if it is based on record/form status.
    Thanks
    K.Nataraja Suthan,

  • Value Set Error in Further Element Entry DFF

    Hi
    We have defined a value set(attached to Further Element Entry DFF) to fetch person contact details.
    Value Set definition
    ====================
    SELECT papf1.full_name, pcr.contact_person_id
    FROM
    per_contact_relationships pcr,per_all_people_f papf,per_all_people_f papf1,fnd_sessions fs,hr_lookups hl
    WHERE pcr.person_id = papf.person_id
    AND pcr.contact_person_id = papf1.person_id
    AND pcr.contact_type = hl.lookup_code(+)
    AND hl.lookup_type(+) = 'XXWHO_CONTACT'
    AND ((pcr.contact_type = 'XXWHO_FAM'
    AND pcr.cont_attribute1 = 'Child')
    OR (pcr.contact_type = 'XXWHO_FAM_CHILD'))
    AND papf.person_id = :$PROFILES$.PER_PERSON_ID
    AND FS.SESSION_ID=USERENV('SESSIONID')
    AND fs.effective_date between pcr.date_start AND NVL(pcr.date_end,'31-DEC-4712')
    AND fs.effective_date BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND fs.effective_date BETWEEN papf1.effective_start_date AND papf1.effective_end_date;
    We have used :$PROFILES$.PER_PERSON_ID to filter only the contact records specific to the person to whom the element entry would be attached.
    Issue here is when we are trying to attach the element entry from People Enter and Maintain form, we are able to see the list of values.
    Where as when we are trying to attach the entry from fast path -> Entries, no value is retrived. And client is using the fast fath "Entries" to
    attach the entries for restricting the access from the users.
    Any input/pointer in this regard?

    Tried this but it is giving the below error
    APP-FND-01242: Cannot read value from field PER_ASSIGNMENT_ID
    Cause: The field PER_ASSIGNMENT_ID 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.

  • GL Import Without Validation

    Hi Guys,
    I have a Q. What are the risks involved during the Journal Import Without Validation. What is the risks involved in importing the invalid DFF.
    Kindly help?
    Thanks,
    Vijay

    hi,
    I think you are setting the value somewhere inside..Use invalidating action and print the data in that field..
    Now check if its the same as u r entering..
    Regards
    Bharathwaj

Maybe you are looking for

  • Error message:Won't open an iphoto library file & will not import new pix

    I have deleted some files from iPhoto library in an effort to get more disk space. Trying to import from camera. Getting error message that says it cannot open File 2002/01/11. That file has been deleted. Clicked continue and message kept popping up.

  • Populating combobox in jsp page from javabean using jsp:getProperty tag

    hi, i am new to jsp, so i don;t know how to populate a combobox in jsp page with productid attribute from a javabean called Bid . i want to have a code to automatically populating combobox using the attribute value from javabean. please reply me. <js

  • Select FOR ALL ENTRIES statement cannot get duplicates entries

    Hi all, t_yxapy_fields consist of inty  field 0001 kostl 0002 perid 0008 ansal 0008 preas 0008 trfst The following is the code for me to transfer the contents of t_yxapy_fields into t_pa_fields. SELECT dbtab       FROM t777d       INTO TABLE t_pa_fie

  • I can't increase the hieght of my Songs tab Column Browser window

    I can't increase the size of my "Songs" tab's Column Browser. Shortly after the 11 update (god, I really hate that the Browser is no longer a column between the sidebar and song window anymore... but I digress), I was adjusting the height of that win

  • SO close - location script help

    Hi everyone! I am SOOOO close, Im off by a letter or a _root. or something! At least I think so. Anyhow, im desperate, and coming to you guys, those that know infinitely more than me. So I have a flash file with 2 scenes. Scene one is an intro, scene