Update of key flexfield in OAF

We have a requirement to update account based on a DFF column value. Upon the update of DFF field, id for key flexfield is generated in processFormRequest. Then I update related view object id column. But in the screen, account combination does not change. Currently I am able to use forwardImmediatelyToCurrentPage to refresh the screen and get new account combination. But I am not sure whether this is the correct way.
Is there any way to refresh account combination based on new ID other than the current way I used? please advice. Thanks.

Hi,
wrong forum, try the Oracle OAF forum here on OTN
Frank

Similar Messages

  • How to get the CCID from a Key Flexfield in OAF page

    Hi all,
    I have created a KFF on a custom page/region.
    I can search on segments and select a value in the Flex field Lov.
    I am not sure how I can read the ccid that is behind a selected code combination.
    I would like to read the value of the ccid on the click of a submit button.
    I can certainly identify the Button event with a given name but not exactly sure what should be coded in the processFormRequest method.
    Below is my KFF implementation code in the processRequest of the controller:
    OAKeyFlexBean kffId = (OAKeyFlexBean)webBean.findIndexedChildRecursive("DrKeyFlexItem");
    // Set the code combination lov
    kffId.useCodeCombinationLOV(true);
    // kffId.useCodeCombinationLOV(false);
    //set the structure code for the item key flex
    kffId.setStructureCode("UK_ACCOUNTING_FLEX");
    // Unite Account Structure code - ACCOUNTING_FLEXFIELD
    //Set the attribute name to the item
    kffId.setCCIDAttributeName("CodeCombinationId");
    //Execute the Query
    UnIntraSearchKFFAMImpl am = (UnIntraSearchKFFAMImpl)pageContext.getApplicationModule(webBean);
    UnIntraSearchKFFVOImpl vo = (UnIntraSearchKFFVOImpl)am.findViewObject("UnIntraSearchKFFVO1");
    if(!vo.isPreparedForExecution())
    System.out.println("Just before executing the VO Query");
    vo.executeQuery();
    Thanks
    Vinod

    The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
    Do you actually have a class/object called Student?
    That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
    public class Student{
      String name;
      List classes;
      List subjects;
      List teachers;
      // appropriate getter/setter methods
    }Then you load each student, and populate its individual lists.
    That lets you pass the list of students, each student having its own lists for display.
    Hope this helps,
    evnafets

  • Key flexfield - protecting one of the segment as NON-UPDATABLE/ READ-ONLY

    Key Flexfield setup for "People Group Flexfield" consists of seeg1,seg2,seg3,seg4.
    We would like to make Seg1 of this flexfield "READ ONLY" / "DISPLAY ONLY" / "Non-Updatable".
    Please advise possible way of making this functionality.
    I have tried, following but no luck :
    1) Limitations of Forms Personalization [ID 420518.1]
    Forms Personalization is not possible for any key flexfield structure or segments.
    This is a limitation of Forms Personalization on Flexfield. There was an enhancement request Bug 5506506 - "PERSONALIZE FLEXFIELDS BY USING FORMS PERSONALIZATION" but it was rejected the enhancement request as this is not feasible. A Flexfield is a single field in a form but then when you click into it and it opens up the flexfields window, the multiple fields you see is actually a user exit with multi segment values, not form fields. No Form Personalization events are passed to flexfield windows (user exits). No Form Personalization events are passed to segments inside the flexfield window (user exit).
    2) Key Flexfield Security Rules Enabled
    Defining security rules on any segment in key flexfield makes all segments as read only. Per Oracle Document:"Defining security rule on key flexfield combination on one or more segments allows all segments to be not updatable"

    In SSHR, I believe it is possible although I have not done it before, I have spoken to people who have.
    You need to have access to jDeveloper and be able to open up the SSHR page in question. Find the internal ID of the flex item within the SSHR page in question.
    Then you create a new item in personalization and set that new item to have the same ID as you retrieved from jDeveloper. Make that item read only and configured the 'default' flex to not show the segment in question.
    That is basically the way this can be achieved but it is not straightforward and requires a cursory understanding of OAF.
    I do not know if it is possible to do this in the PUI. Would be interested to know requirement behind essentially showing a static read only field in a professional form - can the admins not be trusted to leave it alone? One workaround would be coding a user hook or custom library to error if that field is updated. Not read only but would stop those pesky Administrators meddling with it!

  • Updating the key field in a table

    I am trying to assign new values to the primary key column in a table. As it is necessary to hold a permanent record of the relationship between the new and old values, I am extracting the old values into another table and assigning the new values from a sequence with an insert trigger on this table.
    Within the same mapping, I cannot seem to take the new values from this table and update the original table. Ideally, I would like to update key flexfield colum with the new primary key values using the old primary values as the in the where clause' of the update statement (as opposed to delete and reinsert the rows into) the originating table - as I only pull across the key flexfield column into the number allocation table, this is necessary to preserve the other data.
    Can anyone let me know how this can be achieved?...I cannot find the concept of new and old in OWB table updates.
    I have tried using the (unsuitable) load type of 'DELETE/INSERT' on this table, but this results in the contents of the table being deleted when I run the mapping.

    If it's necessary to change the primary key then your database design is likely wrong. I don't understand why it would be necessary to update a PK unless you use PK with a certain meaning which is a design failure.
    Regards,
    Jörg

  • Validation on People Group Key Flexfield

    Hi all,
    I have a People Group Key flexfield (KFF) defined with 7 Segments, and I want to make 1 of the Segments (SEGMENT7) Read-Only for a specific set of Responsibilities.
    I have tried creating a Form Personalization for this, but I don't believe you can achieve this using forms personalizations (because you can only reference the entire flexfield as a whole, and not individual segments).
    I have also tried using the Custom Library, and referencing FND_KEY_FLEX.UPDATE_DEFINITION to apply this validation, but I have not been able to get this to work either.
    Finally, I have tried creating a security group and attaching it to the Value Set / KFF Segment but this doesn't quite give me what I need, as this only lets you Include/Exclude specific values and not make the segment Read-Only.
    Does anyone know how to apply this validation to a People Group KFF Segment?
    Thanks in advance,
    Jon

    If nothing else works , you can write a before-update d/b trigger on the underlying table that compares :old.segment7 with :new.segment7 and raises failure if the values differ for the user's logged in responsibility.

  • Key Flexfield's Segment List not working as expected

    Greetings. I am having problems using the Segment List attribute of a key flexfield bean. I want to restrict the segments that a user can enter values for. I would like to do this by preferably setting the relevant segments read-only, or alternatively hiding them.
    According to the documentation it is possible to enter a segment list of the form:
    structure code1|segment1's name|segment2's name...
    If the Segment List is left empty, all segments will be shown, but if it is supplied, only the segments in the list will be shown.
    Also, it is possible to make a segment read-only by adding the code ($RO$) after a segment's name, like this:
    Structure code1|Segment1($RO$)|Segment2...
    I have tried both, and in both cases the code combination text box continues to show and edit all segments. All segment names are still listed under the text box, too, even when omitted from the Segment List. But when the user clicks the flashlight search button next to the text box to bring up the search/selection dialog, the segments match the Segment List, so the behaviour appears to be different for the text box and the dialog.
    If anyone could shed some light on this issue, it would be much appreciated! Thanks in advance :-)

    I guess this snippet from OAF Dev guide will make you believe my words :)
    =================================================================
    Key Flexfield Segment List
    You may fill in the Segment List property if you want to show some, but not all of the segments in your flexfield. If you leave this property empty, all segments are rendered. The syntax is similar to that described for descriptive flexfields, only you should use structure codes to replace context values. The format is:
    structure code1|segment1's name|segment2's name...||structure code2|segment4's name|segment5' name...
    Segments within a certain structure code are separated by a single pipe, "|", while data from a different structure codes is separated by a double pipe, "||". The example below lists segments for just one structure code:
    FWK Item Flexfield|Manufacturer|Product Family|Product
    Read-Only Segments
    You can add the read-only token ($RO$) after any of the segments in the list. For example, the ($RO$) designator below sets Segment1 in structure code 1 to be read-only:
    Structure code1|Segment1($RO$)|Segment2...
    ===============================================================

  • How to simulate setFireAction on key flexfield

    Hi,
    I'm busy since two months with Jdev and Oracle framework.
    What I want to do is : if the value from a key flexfield changes, an action should be fired (in this case a descriptive flexfield nees to be updated).
    Since setFireAction does not work on a OAKeyFlexfieldBean, I did try the next thing.
    OAKeyFlexBean kffBean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("ResourceName");
    kffBean.setOnDoubleClick("javascript: submitForm(0,0,{event:'kffBean'});"); // does not work
    The first problem is that setOnDoubleClick does not work at all. It works e.g. for the OAWebBean.
    The second problem is that I do want a reaction like OnChange but this is not implementable for this kind of object
    Has anyone any idea how to solve this ?

    Hi
    But I am not trying to delete a seeded KFF. I want to delete a KFF which I have created.
    Regards
    Rahman

  • Is it possible to Update Remote Key

    Hi,
    I have a remote system which create remote key while syndicating to ERP...
    ERP will create the material number which inturn needs to be updated in MDM using import manager..
    While importing I am mapping Material number to remote key.. which is creating new remote key along with defualy remote key generated while
    syndication... Is it possible to have one key as it is of same material from  same system? And at the same time it is again syndicating after
    I import with material number (Remote Key)..
    Thanks
    Rajeev

    HI Ravi,
    by doing so I am having the dublicates in the Data Manager...
    Steps I peffromed :
    I have a main table of fields FName(DF),LName,City ....I created a remote Sytem (Remote1) with range of 1000 to 2000 .. Imported two records say ((A,AA,City1)(B,BB,CITY2)) using FName as matching filed (I didnt mapped remote key).. MSS is started so I see the keymapping as A,Remote1 and 1000 and B,Remote1 and 1001 for these two records..
    NNow I created a dummy remote system and added a new field to the main table MatNumber.... I importing the file with (A,AA,City,Mat1) and remote system as dummy where I am mapping MatNumber to Remote Key... By doing so I see three records with one record dublicating as It got imported from new remote system with key value Mat1..
    Can you please guide how to havve only two records by just updating the key value....
    Thanks
    Rajeev
    Edited by: rajeev raj on Jun 22, 2010 10:53 AM

  • Creating Descriptive & Key FLEXFIELDS in Forms 10g

    Hello everyone,
    I want to create Descriptive & Key Flexfields in Oracle Forms 10g,Kindly help........

    A FLEXFIELD IS A FIELD MADE UP OF SUB–FIELDS, OR SEGMENTS. THERE ARE TWO TYPES OF FLEXFIELDS: KEY FLEXFIELDS AND DESCRIPTIVE FLEXFIELDS.
    KEY FLEXFIELDS:
              I HAVE A COLUMN CALLED ADDRESS(SINGLE FIELD),WHEN I KEEP MY CURSOR ON THIS FIELD AND PRESS ENTER,IT POP'S UP A WINDOW WITH ALL NECESSARY FIELDS CORRESPONDING TO ADDRESS LIKE,DOOR-NO.,STREET NAME,CITY ETC.... WITH AN OK & CANCEL BUTTON.
    ONCE I GIVE THE VALUES ACCORDINGLY IN THE ADDRESS FIELD AND CLICK OK BUTTON IT STORES ALL THE VALUES IN WINDOW TO THE ADDRESS FIELD.
    DESCRIPTIVE FLEXFIELDS:
    DESCRIPTIVE FLEXFIELDS LETS YOU ADD ADDITIONAL FIELDS TO THE FORM IN ORDER TO TRACK ADDITIONAL INFORMATION NEEDED BY THE BUSINESS, THAT WOULD NOT BE CAPTURED BY THE STANDARD FORM. DESCRIPTIVE FLEXFIELDS CAN BE CONTEXT SENSITIVE, WHERE THE INFORMATION YOUR APPLICATION STORES DEPENDS ON OTHER VALUES YOUR USERS ENTER IN OTHER PARTS OF THE FORM.
    A DESCRIPTIVE FLEXFIELD APPEARS ON A FORM AS A SINGLE–CHARACTER, UNNAMED FIELD ENCLOSED IN SQUARE BRACKETS [ ]. EACH FIELD OR SEGMENT IN A DESCRIPTIVE FLEXFIELD HAS A PROMPT AND CAN HAVE A SET OF VALID VALUES
    THIS CONCEPT IS USED FREQUENTLY IN ORACLE APPLICATIONS, WHICH I WANT TO IMPLEMENT IN FORMS 10G.I BELIEVE WITH YOUR EXPERTISE I WILL BE ABLE TO AHIEVE IT.
    REGARDS ,
    SRINI.

  • Error while compiling Key flexfield

    Hi,
    I'm getting the below error while trying to compile one key flexfield structure.
    +APP-FND-00668: The data that defines the flexfield on this field may be inconsistent.  Inform your system administrator that the function: FDFRKS could not find the structure definition for the flexfield specified by Application = &APPL, Code = GL# and Structure number = 50241 (APPID=101)
    APP-FND-00874: Routine FDFBKS found no rows in table FND_ID_FLEX_STRUCTURES. Please contact your system administrator or support representative.+
    we have two cloned instance from production.In one of the instacnes we are geting this error. The only difference between the two instacnes is that in one instance ,italy langugae was licensed while in the other it's not.
    We are getting the error where the language was licensed.
    Note-: we had only licensed the language but never enabled multilingual tables.
    regards,
    Rakesh

    I checked note 215777.1 . and found that there is a discrepancy in the counts.
    as there is a discrepancy in FND base table and _TL table note 580524.1 is also applicable.
    So which soln should i go for??
    regards,
    Rakesh

  • How to set a 3 default values for a dependent key flexfield

    hi,
    I have an inquiry in oracle applications 11i - Oracle General Ledger module, Accounting Key flexfield structure.
    we have an independent key segment PROJECT and a dependent key segment SUB-PROJECT.
    Can we define 3 dependent value for the SUB-PROJECT to be the default for any new entered value in the PROJECT segment??
    e.g creating 3 default SUB-PROJECT values: X, Y, and Z. Any new value entered to the PROJECT key segment will have X, Y and Z by default as it's SUB-PROJECTS.
    If the above scenario is possible, please guide me to the best solution...
    Thank you...

    I can find that the value set of any dependent value set has only one room for a default value.
    What are the implications of creating a new Independent value set and assign it to the SubProject segment, on historical data and reports?
    thank you...

  • Steps to setup descriptive flexfield or/and key flexfield.

    Where can i find white paper or document other than the user guide in metalink or any other source which talks about steps to setup a descriptive flexfield or/and key flexfield.

    Hi,
    You might wanna check out following documentation.
    http://download-east.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/flexnav.htm#contentsFX

  • ORA-14402: updating partition key column would cause a partition change

    Hi,
    When I am trying to execute an update statement where i am tring to update date values emp_det from 11-oct-2010 to 12-nov-2010.
    Oracle throws an error :
    ORA-14402
    updating partition key column would cause a partition change
    I think that this is because emp_det is a partitioning key of a partitioned table.
    Oracle documentation says that
    "UPDATE will fail if you change a value in the column that would move the
    row to a different partition or subpartition, unless you enable row
    movement" .
    alter table t enable row movement;
    I did not understand what is meant by "enable row movement".
    I cannot drop the partitions and recreate it after updating the table and also i don't have proper priviliges for enale row movement syntax
    because of the lack of privileges. How to solve this is issues with out row movement and recreate partition.
    Can this be done by a developer or is there any other way to execute update in this case? its urgent.. pls help..
    thanks in advance..
    By
    Sivaraman
    Edited by: kn_sivaraman on Nov 1, 2010 2:32 AM

    kn_sivaraman wrote:
    I did not understand what is meant by "enable row movement". Each partition in partitioned table is physically separate segment. Assume you have a row that belongs to partition A stored in segment A and you change row's partitioning column to value that belongs to partition B - you have an issue since updated row can't be now stored in segment A anymore. By default such update is not allowed and you get an error. You can enable row movement and Oracle will move row to target partition:
    SQL> CREATE TABLE SALES_LIST(
      2                          SALESMAN_ID NUMBER(5,0),
      3                          SALESMAN_NAME VARCHAR2(30),
      4                          SALES_STATE VARCHAR2(20),
      5                          SALES_AMOUNT NUMBER(10,0),
      6                          SALES_DATE DATE
      7                         )
      8    PARTITION BY LIST(SALES_STATE)
      9    (
    10     PARTITION SALES_WEST     VALUES('California', 'Hawaii'),
    11     PARTITION SALES_EAST     VALUES('New York', 'Virginia', 'Florida'),
    12     PARTITION SALES_CENTRAL  VALUES('Texas', 'Illinois'),
    13     PARTITION SALES_OTHER    VALUES(DEFAULT)
    14    )
    15  /
    Table created.
    SQL> insert
      2    into sales_list
      3    values(
      4           1,
      5           'Sam',
      6           'Texas',
      7           1000,
      8           sysdate
      9          )
    10  /
    1 row created.
    SQL> update sales_list
      2    set  sales_state = 'New York'
      3    where sales_state = 'Texas'
      4  /
    update sales_list
    ERROR at line 1:
    ORA-14402: updating partition key column would cause a partition change
    SQL> alter table sales_list enable row movement
      2  /
    Table altered.
    SQL> update sales_list
      2    set  sales_state = 'New York'
      3    where sales_state = 'Texas'
      4  /
    1 row updated.
    SQL> SY.

  • Updating partition key column would cause a partition change

    while i am executing this query in sql i am getting an error message saying
    that
    updating partition key column would cause a partition change
    SQL> update questionbnkmaster set sectionid=23 where qno=19;
    update questionbnkmaster set sectionid=23 where qno=19
    ERROR at line 1:
    ORA-14402: updating partition key column would cause a partition change
    what can do to update the table without changing to the other fields
    tyhanx in advance
    cinux

    try this
    ALTER TABLE questionbnkmaster ENABLE ROW MOVEMENT
    /Cheers, APC

  • Server Crash after Updating Licence Key

    Hi Team,
    Recently I had met with a strange issue in which around 5 servers shows recovery screen after the server reboot . The only change happened was the server license key was updated . Initially it was noticed that these servers were showing activate Windows
    screen and we had provided the valid license key. Later the application team had rebooted the server and it went to recovery, Another server I had rebooted and it also followed the same result .  In recovery console it was noted that active partition
    was changed and in C:\ bootmgr was missing I had fixed those issues and later server boots up and showing many sys files missing in drivers folder .
    Anyone aware of similar issues ? I strongly believe updating license key wont crash the server .

    Hi,
    I agree with you. Updating license keys should not crash the server. Meanwhile, would you please let me know
    version information of the problematic server OS?
    Based on current situation, it’s hard to say what cause to the server crash (seem to be related to .sys files).
    When you complete the process of Startup Repair, will be able to access the server? If can, please open Event Viewer and check if find some related events.
    If can’t, please access system recovery options. Then run
    sfc /scannow command to scan all protected system files and run
    chkdsk command to check disk state.
    Hope this helps.
    Best regards,
    Justin Gu

Maybe you are looking for

  • Newbie with "disk too slow" issues

    Hi folks, TOTAL newbie (Mac newbie, audio newbie) here, up front disclaimer. I've just been trying to play the "Numbers Game" demo project in Logic Pro on my new MacBook Pro and I'm getting the "disk too slow" message (error 10010)...This is a 2.66 G

  • Automatic Email notification of ST03N data

    Hi everyone, Currently, I provide <b>dialog steps data from ST03N</b> to my client on a daily basis using a spreadsheet that I send via email.  I want to somehow <u>automate the data extraction process and the email notification sent to my client</u>

  • Oracle Express vs Oracle Discoverer

    For publishing reports on the web, which product is better? Oracle Express or Oracle Discoverer? I understand Oracle Discoverer comes packaged with OracleAS. Do we need to purchase Oracle Express separately? What factors determine one product over th

  • Where should we install Oracle Workflow Server?

    Hi, We are using Oracle Warehouse Builder 10G R1. We installed Runtime Repository in oracle databae 10.2 We installed Oracle Workflow server 2.6.3.5 in separate oracle datbase 10.2. What I mean to say is, we installed Runtime Repository in one databa

  • Removing Dynamic Context members

    Hi, how do I remove all the context nodes and elements that I create dynamically? Is there a single line command to accomplish this? Any help would be greatly appreciated. Code samples would be of great help. Thanks, Sudheer