Query regarding Forms Personalization

Hi ,
I have a requirement to execute the following code in a WHEN-NEW-FORM-INSTANCE trigger to update the WHERE clause of the Item Category flexfield in the Purchasing module.
Normally I would have executed this code from within the trigger. How can I replicate it using Forms Personalization, I mean what type of Action do I need to define which will execute this code directly or indirectly.
FND_KEY_FLEX.UPDATE_DEFINITION( BLOCK=>'LINES',
FIELD=>'ITEM_CATEGORY',
ENABLED=>'N'
WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE AND category_id =
644)'
I also tried to create a stored procedure without luck as fnd_key_flex is defined in a library attached to the form, so get error creating the procedure.
Thank You
Shankar.

Hi,
I guess I will need to achieve this using CUSTOm.pll. But, I have a query !
The KFF is defined using fnd_key_flex.define(block=>'LINES',
field=>'ITEM_CATEGORY',
id=>'CATEGORY_ID',
code=>'MCAT',
appl_short_name=>'INV',
num=> ':po_startup_values.structure_id',
          required => 'Y',
          validate => 'FULL',
usedbflds=>'Y',
          autopick=> 'Y',
          qbe_in=> 'Y',
SELECT_COMB_FROM_VIEW=>'MTL_CATEGORIES_VL',
          COLUMN=> 'DESCRIPTION \\\"' || NAME_IN('PARAMETER.DESCRIPTION') || '\\\"(240)',
WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE )',
WHERE_CLAUSE_MSG=> 'APPL=PO;NAME=PO_RI_INVALID_CATEGORY_ID');
where it selects from mtl_categories_v.
Tha Dev Guide mentions that we can update the WHERE_CLAUSE using for eg.
FND_KEY_FLEX.UPDATE_DEFINITION( BLOCK=>'LINES',
FIELD=>'ITEM_CATEGORY',
ENABLED=>'N'
WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE AND
category_id = 644)'
But, there is no option to change the source view itself. How do I change that ? I cannot see a parameter SELECT_COMB_FROM_VIEW for the FND_KEY_FLEX.UPDATE_DEFINITION !!
Can I write the FND_KEY_FLEX.DEFINE again in CUSTOM.pll using my custom view instead ? Will it override the default definition ?
Any suggestions or alternative ways would be appreciated.
Thanks
Shankar
Edited by: user565538 on Mar 27, 2009 3:46 AM

Similar Messages

  • Plz!!!! Its urgent regarding Form personalization

    Hi all ....
    How to modify the query in existing Lov using Form Personalization in Oracle R12.
    Plz Provide the steps to accomplish this task.
    Actually i want to add more column value in lov window. Plz

    Duplicate thread (please post only once).
    Help me Form Personalization in Oracle apps R12 - its urgent!!!!!!!
    Help me Form Personalization in Oracle apps R12 - its urgent!!!!!!!
    Please update your other thread instead of creating duplicate threads across the forums.
    Thanks!

  • How to change a LOV query from Forms Personalization(Doc ID 1534116.1)

    Customer followed the step on Note 1534116.1, but after that close the form and reopening the form , cus is unable to  query the form.
    Please advise.
    Thanks,
    Ling

    Pl post EBS version - what does "unable to query the form" mean ? Any error codes / messages ? Was FRD trace enable to troubleshoot ?
    MOS Doc 438652.1

  • Query on Forms Personalization of Oracle Assignment Form

    Hi All,
    My customer has a requirement of personalization on the Assignment form. They would like to show the People group flex field segments but make them non-editable.
    Since the People Group is a KFF, I am unable to figure out how to personalize this. If any of you has done this with any KFF, could you please let me know the steps to follow?
    Thank you.
    Regards,
    Prathima.

    Balamurugan wrote:
    We are migrating Oracle forms 4.5 to oracle 10g. We have following apporaches.
         1. Oracle 4.5-->6i-->10g, In this what are benefits of migrating into intermediate version.Oracle's migration path is 4.5, 6i, 10g it is more logical to migrate using this path and it is recommended by Oracle, the obsolete built-ins would be pointed out at compilation and fixes would be more automated and simple since Forms 6i was designed to accept migration from 4.5 and the internal design of the forms will be much more adaptable to later releases.
         2. if we migrating into intermediate version 6i, do we need to fix all the errors before moving to 6i.It would be better and easier to fix things in Forms 6i rather than 10g, you can leave them and than you'll have to fix them under 10g.
         3. if no, do we lose any functionlity while migrating to 10g.Functionality built on obsolete built-ins and commands will be lost, you are more likely to face bugs.
         4. Does Oracle support direct migration to 10g?Oracle's official migration path is 4.5 to 6i to 10g
         5. if we open oracle 4.5 form in 10g form builder, do we lose any functionality? do we need to lot manual replacement?It all depends on your application size and features. I suggest you migrate to Forms 6i first and than to 10g although you can do it directly to 10g since Forms 6i is no longer supported.
    I personally rather follow the recommended path and use Oracle support in 10g migration.
    For more Forms migration information check out [Forms Upgrade Center|http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html] .
    Tony

  • Query regarding Form Object

    Dear All,
    In my Add On, I have many forms and I am using only one form object for all the forms. Is it permissible or I have to use different form objects for each form. When I am navigating from One form to other I am getting error as Invalid Form. In one case I am opening another(child) form from the parent form, but when I close the child form and click anything on the parent form I am getting error as Invalid Form. Please help me.
    Regards,
    Noor hussain
    Edited by: noor_023 on Feb 25, 2010 10:41 AM

    Hi,
    the error "Invalid Form" refers to the attempt to take a reference to a not existing form, like this:
    oForm = oSboApplication.Forms.Item("ThisFormUIDNotExists")
    Or probably you use e not correct reference to a form in order to reach an item, like this:
    ' oForm is not set properly
    oItem = oForm.Items.Item("TheItemUID")
    Please, post relevant code if this not help you.
    Regards.
    Carmine

  • Query regarding form names

    What are the form names for goods reciept ,
    Goods sent , Billing and what are th corresponding transaction codes to check the form print preview ?
    I have already checked in  TNAPR table but i didnt get.
    can anybody help me out?

    Hi Mohammed,
    the entries in TNAPR comes from the values maintained in NACE transaction .
    To find any SAP standard SAPScripts and SMARTFORMS, you need to check NACE transaction.
    BR,
    Preema
    *Pls award all helpful answers

  • Forms Personalization -LOV

    Hi all,
    I am new to forms personalization.How to restrict the LOV in forms personlaization.
    I gave like below.
    TriggerEvent: WHEN-NEW-ITEM-INSTANCE
    TriggerOBject:RCV_TRANSACTION.VENDOR_LOT_NUM
    Condition::RCV_TRANSACTION.VENDOR_LOT_NUM is null
    Actions:
    9)Builtin:Create Record Group from Query
    Arugument:
    select 'Dmage Issue' Transaction_Reason,'For Damage' Description from dual
    union all
    select 'POST' Transaction_Reason,'Increase and Decrease' Description from dual
    union all
    select 'Scrap Sales' Transaction_Reason,'For Scrap Sales' Description from dual
    union all
    select 'Self Consumption' Transaction_Reason,'Self Consumption' Description from dual
    union all
    select 'Theft Issue' Transaction_Reason,'For Theft' Description from dual
    union all
    select 'Vendor Debitable' Transaction_Reason,'for Vendor Debitable' Description from dual
    Group_Name :REASON_CODE_XX
    10)Property
    Object Type :LOV
    Target Object :REASON_CODE
    Property Name :GROUP_NAME
    Value:REASON_CODE_XX
    I am getting error Line column doesnt match with LOV.
    Please help me in this.
    Thanks ,
    Muthu

    Hi,
    My friend this issue is because that the new record group query is not matching the old record group query in the form. Can u share the record group query in the form.Or try to modify the newly created query in form personalization.
    Ie: Try to match the same columns in the both query.
    Check this link might be use full.
    http://oraclemaniac.com/2012/08/11/how-to-modify-a-form-lov-using-forms-personalization/
    Thanks & Regards
    Srikkanth

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Query regarding Oracle Apps Personalization

    Hi all,
    In Oracle Personalization, I want to concatenate Global Variable value with message using Show Message .
    How it is possible ?
    Anyone help me in this regards ?
    Thanks in advance.....
    regards
    sanjay

    Pl post details of OS, database and EBS versions.
    Pl see these MOS Docs
    How to Zoom or Create Master-Details relationship Using Forms Personalization?          (Doc ID 457643.1)
    ORDER MANAGEMENT SUITE - USAGE OF CUSTOM LIBRARY CUSTOM.pll          (Doc ID 438922.1)
    HTH
    Srini

  • Projects Expenditure Inquiry - Forms Personalization Query

    Hi, and Happy New Year...
    I'm using 11.5.10.2 and am stuck on a forms personalization and wondered if I could ask for some help please?
    I'm using a Projects Inquiry responsibility, and going into Expenditures > Expenditure Inquiry > Project
    I want to hide the "Mass Adjust" button at the bottom of the screen (which appears to the left of the "Clear" button).
    I've then gone into Help > Diagnostics > Custom Code > Personalize
    Function Name     PA_PAXTRAPE_SINGLE_PROJECT
    Form Name     PAXTRAPE
    Seq          1
    Description     Test
    Level          Function
    Condition
    Trigger Event     WHEN-NEW-FORM-INSTANCE
    Processing Mode     Not in Enter-Query-Mode
    Actions
    Object Type     Item
    Target Object     ITEMS_QF.MASS_ADJUST
    Property Name     DISPLAYED
    Value          FALSEThis works when I first go into the form - the "Mass Adjust" button is hidden.
    However, I then have to search for a project - I enter the project number, press tab, and EBS searches for the project, and displays the project name.
    The "Mass Adjust" button then appears again.
    I have tried all sorts of variations:
    Function Name     PA_PAXTRAPE_SINGLE_PROJECT
    Form Name     PAXTRAPE
    Seq          1
    Description     Test
    Level          Function
    Condition
    Trigger Event     WHEN-NEW-FORM-INSTANCE
    Processing Mode     Both
    Actions
    Object Type     Item
    Target Object     ITEMS_QF.MASS_ADJUST
    Property Name     DISPLAYED
    Value          FALSE
    /* and another one */
    Function Name     PA_PAXTRAPE_SINGLE_PROJECT
    Form Name     PAXTRAPE
    Seq          1
    Description     Test
    Level          Function
    Condition
    Trigger Event     WHEN-NEW-RECORD-INSTANCE
    Trigger Object     ITEMS_QF
    Processing Mode     Both
    Actions
    Object Type     Item
    Target Object     ITEMS_QF.MASS_ADJUST
    Property Name     DISPLAYED
    Value          FALSE
    /* and another one */
    Function Name     PA_PAXTRAPE_SINGLE_PROJECT
    Form Name     PAXTRAPE
    Seq          1
    Description     Test
    Level          Function
    Condition
    Trigger Event     WHEN-NEW-BLOCK-INSTANCE
    Trigger Object     ITEMS_QF
    Processing Mode     Both
    Actions
    Object Type     Item
    Target Object     ITEMS_QF.MASS_ADJUST
    Property Name     DISPLAYED
    Value          FALSE
    /* and another one */
    Function Name     PA_PAXTRAPE_SINGLE_PROJECT
    Form Name     PAXTRAPE
    Seq          1
    Description     Test
    Level          Function
    Condition
    Trigger Event     WHEN-NEW-ITEM-INSTANCE
    Trigger Object     ITEMS_QF.MASS_ADJUST
    Processing Mode     Both
    Actions
    Object Type     Item
    Target Object     ITEMS_QF.MASS_ADJUST
    Property Name     DISPLAYED
    Value          FALSE
    /* and another one */
    Function Name     PA_PAXTRAPE_SINGLE_PROJECT
    Form Name     PAXTRAPE
    Seq          1
    Description     Test
    Level          Function
    Condition
    Trigger Event     WHEN-VALIDATE-RECORD
    Trigger Object     ITEMS_QF
    Processing Mode     Both
    Actions
    Object Type     Item
    Target Object     ITEMS_QF.MASS_ADJUST
    Property Name     DISPLAYED
    Value          FALSEBut none of them make any difference - the "Mass Adjust" button always reappears after I have searched for the project.
    Any advice about how to do this would be much appreciated.
    Thanks!

    Thanks for your reply.
    In the end I spoke to someone in the office who said that it would be simpler to use menu and function exclusions instead. I then deleted the personalisations, and added the following exclusions against the responsibility, which worked:
    Function:
    Expenditure Inquiry: Run Project Streamline
    **** Removes "Run Request" button from "PA Expenditure Items" screen*
    Submenu:
    Expenditure Inquiry: Adjustments
    **** Removes "Mass Adjust" button from "Find Project Expenditure Items" screen*
    Thanks for your help though, it's much appreciated.
    Edited by: 966480 on Jan 3, 2013 7:59 AM

  • Query on Oracle form personalization

    Guys,
    I want to Open (Zoom) Approved Supplier Form from RFQ Form for a particular item of a buyer.
    To implement the same, I followed the below provided steps.
    A. I just opened the RFQ Form.
    1. Seq# 10
    Condition# WHEN-NEW-FORM-INSTANCE
    Processing Mode# Not in Enter-Query Mode
    Actions#
    Seq: 10
    Type: Menu
    Menu Entry: SPECIAL10
    Menu Label: Open Approved Supplier
    2. Seq# 20
    Condition# SPECIAL 10
    Processing Mode# Not in Enter-Query Mode
    Actions#
    Seq: 10
    Type: Property
    Object Type: Global Variable
    Target Object: XX_ITEM_NUM
    Property Name: VALUE
    Value : =:PO_LINES.ITEM_NUMBER
    Seq: 20
    Type: Message
    Message Type: Show
    Message Text: :GLOBAL.XX_ITEMNUM
    Seq: 30
    Type: BuiltIn
    Builtin Type: Launch a function
    Function Code: PO_POXSCASL
    Funcation Name: Define Approved Supplier List
    Saved my personalization and clicked on 'Open Approved Supplier' that takes me to "Approved Supplier" form.
    B. Approved Supplier form is opened
    1. Seq# 10
    Condition# WHEN-NEW-FORM-INSTANCE
    Processing Mode# Not in Enter-Query Mode
    Actions#
    Seq: 10
    Type: Builtin
    Builtin Type: GO_BLOCK
    Arguement: ASL_ITEMS
    Seq: 20
    Type: Builtin
    Builtin Type: DO_KEY
    Arguement: ENTER_QUERY
    2. Seq# 20
    Condition# WHEN-NEW-RECORD-INSTANCE
    Trigger Object# ASL_ITEMS
    Processing Mode# Both
    Actions#
    Seq: 10
    Type: Property
    Object Type: Item
    Target Object: ASL_ITEMS.ITEM_NUM
    Property Name: VALUE
    Value : =:GLOBAL.XX_ITEM_NUM
    Seq: 20
    Type: Builtin
    Builtin Type: DO_KEY
    Arguement: EXECUTE_QUERY
    Saved everything and log out/log in and navigate to RFQ form and clicked on "Open Approved Supplier". the moment controller takes me to the Approved Supplier Form, it throws me an error message "Duplicate Item/Commodity being defined (ITEM_COMMODITY = 900842)" Though If I open Approved Supplier form without any personalization and query for 900842 item, it does not throw me an error. I am wondered why its happening. Can you guys please advise me where I am wrong?
    Waiting for your replies.
    Thanks
    Sunil

    Pl post details of OS, database and EBS versions.
    Pl see these MOS Docs
    How to Zoom or Create Master-Details relationship Using Forms Personalization?          (Doc ID 457643.1)
    ORDER MANAGEMENT SUITE - USAGE OF CUSTOM LIBRARY CUSTOM.pll          (Doc ID 438922.1)
    HTH
    Srini

  • Form Personalization Query

    Hi,
    Could any one please let me know what does :CTL_GLOBALS.SESSION_DATE exactly do in form personalization. I know it will give the session date but to be specific I want to know the significance of CTL_GLOBALS.
    Regards,
    Ad

    If you are new, I would suggest you read up a little bit on Oracle forms.
    You can start with http://www.orafaq.com/wiki/Forms_FAQ
    WHEN-NEW-ITEM-INSTANCE is an event that fires when the control has navigated to a new item
    WHEN-NEW-RECORD-INSTANCE is an event that fires when the control has navigated to a new record
    WHEN-NEW-BLOCK-INSTANCE is an event that fires when the control has navigated to a new block
    What is Item, Record , Block interms a oracle apps forms screen (say element entry screen in payroll).
    See http://osm.utoronto.ca/i/doc/AEMIG/frms_comp_about.htm
    DO_KEY is a way to execute the actions associated with that key.
    NEXT_ITEM is the field that the cursor will go to after you hit tab.
    Hope this helps,
    Sandeep Gandhi

  • PO Summary Form Personalization

    Hi Gurus,
    We are having a requirement as below.
    User Created a Purchase Order with 100 Lines and approved it.Now he wants to change the Promise Date of few Lines.User used the PO Summary form to do it.In the "FInd Purchase Orders Form" User enter the PO Number in Number Field and Line Number in Lines Field as 77 and click on the find button.Its Navigated to Purchase Order Lines Form then clicked on the Open Button in "Purchase Order Lines Form" then the Purchase Order Form opens with all the Lines that are Presented in the PO.But the User Needs only the Particular Line 77 of that PO in order to Modify Promise Date.But its not Navigating to Particular Line Directly why?
    Is there any Possibility of doing Form Personalization? If so please suggest me the clear step by step process to attain my requirement.
    We are using Oracle Applications R12.1.3.
    Are there any profile options to navigate the cursor to particular line?
    Its my urgent requirement.Please gurus help me out immediately in solving this requirement.
    Thanks In Advance,
    RS.
    Edited by: user2549696 on Jul 27, 2012 4:00 PM

    Hello RS,
    I don't see a simple way to achieve what you are looking for. Most probably you will have to develop a customization to the form (customize the form itself) or maybe via CUSTOMPLL, but I have no experience with that. Maybe someone else has some ideas on that.
    Another option is that people use the form in a different way, using the "Query by Example":
    On the find form they enter just the PO number and press on find, then open to open and they will see all the lines in the PO. Then they click into the Lines block, press F11, enter Line number, press CTRL+F11 to execute the search and it will show only this specific line. Maybe not so efficient as you want, but at least faster than scrolling through all the PO lines.
    And in R12 there is a web-based version of the PO Summary (OAF page), maybe you should explore that one as well? It's called "Buyer Work Center". Click on tab "Orders" and on that page on (sub)tab "Lines". Then you can add search fields "Order" and "Line Number" (use forms personalizations to have those search fields per default available).
    Then search for PO & Line number, press Go. Then above the search results table you can select from the LOV the entry "Update Line" and press Go and it will navigate immediately to the specific Line and you can update the quantity or date.
    kind regards,
    David.

  • Saled Order Form Personalization Error

    Hi Friends,
    I have a problem while doing the Form personalization for Saled order form, particularly for the 'Payment Terms' in the 'Others' Tab.
    Problem is that i have disabled the 'Payment Terms' filed as per the requirement that no client cannot insert, update and delete the Payment terms in that filed but client want to default value in the Payment term as a 'CREDIT CARD'.
    while creating the SO also the filed is disabled, problem is while querying the Sales Order form, it is not allowing to query because 'Credit Card' already is there.
    please suggest me a solution for this.
    Thanks
    Anushka

    Hi,
    As far as I understand; You have 2 requirements
    1. Payment term should be always 'CREDIT CARD'.
    2. Payment term defaulted should not be updated or deleted by User.
    Action Plan:
    1. Use 'Not in Enter Query Mode'
    2. First Insert value into Payment terms.
    3. Make Update allowed as False instead of Disable.Disabling a field and inserting may cause errors in particular scenarios.
    If you still face problem, try inserting Payment terms on the basis of some condition, i.e when this condition is met then only insert will be done or else the field will be left blank. Ex: Customer Name not null
    Regards,
    Sridhar

  • After Form Personalization getting problem

    Dear All,
    I did one form personalization, it's working fine. But the problem is ..
    At the time of closing that form it's asking Do you want to save? with out changing any filelds.
    Just i opened that form and queried records, then i tried to close that form . at this time it's asking do u want to save.
    i didn't change any filed data.
    why it's asking .pls give me solution.
    Regards,
    Reddy.

    E-business related questions are better asked here OA Framework

Maybe you are looking for

  • My Mac Mini/Yosemite is new. But it now has malwares and Mac Keeper keeps popping up even after uninstalling.. Who can help?

    Hi everyone, My mac mini is new. I have a few issues with it. But the most annoying is the malwares that infested it now. I have only been using it for about 3 weeks or so. Of course, I thought everything that popped up are safe to click and just sta

  • Oracle 10g Express Edition Beta 3 Install Problems

    I made three install attempts for this software, and I'll detail them below. This was a fresh install on a computer that previously had no other version running ATTEMPT 1 The installation procedure ran, but even though the OracleServiceXE service sta

  • Massive Deleting of Users in BO 5.1 Sun

    Hi everybody, Is it possibile in my environment (Business Objects 5.1 on Sun Solaris) to massively delete a list of users? I know that in Windows Environment it can be done from the Supervisor using the Import functionality (On the File menu, I click

  • Extract principal on server side from outToken/KRB_AP_REQ

    Hey, I have a Kerberos SSO application with JAAS/JGSSAPI according to the tutorial which can be found here: http://java.sun.com/j2se/1.4.2/docs/guide/security/jgss/single-signon.html Mutual authentication with initSecContext() and acceptSecContext()

  • Trouble with WRT-54G

    I have a new WRT-54G wireless router. I am on DSL. I had another wireless box and it went bad so I purchased the Linksys. Since I have hooked it up my lap top will not recieved data. It shows that it is connected but when I try to bring up Internet E