Populating List item on condition.

-- I am populating List item based on the Record Group.
i.e: select casenature,to_char(casenaturecode) from casenature.
-- But when i restrict to display associated record with of another field.
i.e : select casenature,to_char(casenaturecode) from casenature
where casenamecode = :cases.case_namecode
-- it does not display any record in the list item
Plz, help me in this regard.
Thanks in advance.

This is a "standard" lookup:
Create a non-database-item in your databaseblock with the datatype and length of the text to be shown (casenature). I assume that there is a casenaturecode-item in your databaseblock which is populated from the database.
Create a POST-QUERY-trigger on your block and read the value from the database:
DECLARE
  CURSOR cr IS
    SELECT CASENATURE
      FROM THETABLE
     WHERE CASENATURECODE=:BLOCK.CASENATURECODE;
BEGIN
  OPEN cr;
  FETCh cr INTO :BLOCK.THE_NEW_TEXT_ITEM;
  CLOSE cr;
END;
-- Mark record as valid
SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_BLOCK, :SYSTEM.TRIGGER_RECORD, STATUS, QUERY_STATUS);Create an Lov conatining both casenaturecode and casenature, set length of casenaturecode to 0, assign the lov to the new textfield and set "Use Lov For Validation"="Yes" for the textfield.

Similar Messages

  • Populating List Item From View

    I have two data blocks in my form, one named USERS which contains updateable fields to a table from the view and another data block called CONTROL which are all list items that currently populate on a WHEN-MOUSE-CLICK trigger. The list items work as expected for the WHEN-MOUSE-CLICK trigger. However, my problem is trying to populate the list items based on a selection previously chosen and saved to the table (yes, the values are in the table and are selectable through the view). I have a seperate population for this occurrance in the WHEN-NEW-FORM-INSTANCE at the form level, as well as on KEY-SCRUP, KEY-SCRDOWN, WHEN-NEW-RECORD-INSTANCE, and POST-QUERY at the USERS data block level. The only way the list items populate on a previously chosen and saved value is if you choose (WHEN-MOUSE-CLICK trigger) the list of values and save. From then on, as I scroll through the data retrieved in the USERS data block the corresponding data in the users view shows up in the CONTROL block list items. How do I get my form to initially show the corresponding list item data on form load when it is already in a WHEN-NEW-FORM-INSTANCE and POST-QUERY trigger on form load?
    Thanks in advance for any clue to point me in the right direction.
    Kyle
    Edited by: Kyle Miller on Sep 29, 2008 3:09 PM

    The form is for editing a current student information system user who we will be extracting data for an OBIEE IDM import. All of the fields displayed in the OBIEE_USERS data block can be edited. For the CONTROL block list items I would like them to display the current value chosen for the user displayed in the OBIEE_USERS data block. When the CONTROL block list items are clicked on then a list of values are displayed in which the logged in form user can chose another value which ultimately changes the choice for the user displayed in the OBIEE_USERS data block. This all works fine in my current form except the list items do not display the current user selected in the OBIEE_USERS data block's saved value until the list item is selected, a value chosen, and a save is committed to the table tied to the OBIEE_USERS data block. From that point I can scroll through the OBIEE_USERS block and the list item displays the correct value for the selected user, if there are values (some users have NULL values). I have currently worked around this issue by displaying the fields in the OBIEE_USERS block and only use the list items for the changing selection. I did this because I needed a proof of concept for the pilot roll-out and could no longer wait to figure this issue out (it should be more simple it seems). I am still interested in resolving this as I feel it is a great functionality for the form.

  • Populating list item with a record group

    I'm trying to populate a list item (TList) with a Record group with a simple query: SELECT FRM_NAME FROM FORM
    In the forms WHEN_VALIDATE_NEW_FORM trigger, I use POPULATE_LIST('FORM_LIST', 'RG_FORM_LIST');
    Am I missing something? I get the error FRM-41334: Invalid record group for list population.

    thanks, i've tried that, but still nothing. I must be doing something simple, but very wrong. I tried with oracle's default scott/tiger schema, created a simple form with a record group with 2 columns, and populating a manually made poplist (populate_list('LIST4', 'RG1'); Still get errors:
    FRM-30191: No list items defined for required poplist.
    List LIST4
    Item: LIST4
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.

  • Populating List Item

    HI !
    I want to populate List item , from table using SQL query,
    e.g. select * from dept_name,dept_no from dept; and want to save deptid. i.e list item disply only dept_name and store/save dept_id as it is foreign key.
    Thanks & Regards !

    Hi !
    I have adopted this technique.
    I have made function combo_population :
    PROCEDURE COMBO_POPULATION(COMBO_NAME VARCHAR2, COMBO_LIST VARCHAR2)
    IS
         rg_num number;
    BEGIN
         rg_num := populate_group(combo_name);
    populate_list(combo_list, combo_name);
    END;
    I create record group dept_rg (select deptname,to_char(deptid) from dept)
    And i called function at when-new-form-instance
    combo_population('dept_rg','emp.empdepart');
    It works very well only it shows list of department Name, and save department id only.(noted that, on form the list item is deptid and only change its type to varchar2 then above function works well).
    Regards!

  • The name of the current list item

    hi
    i have a table that stores the users names and the available button for him (list item)
    i want to create a function that returns a value
    in the display condition of the list item to show or hide the item .
    my function should receive two parameters one of them is the current user which is the :APP_USER. variable and the other parameter is the current list item which its display condition execute the function .
    so how can i get the current item ?
    thanks

    Ayman,
    You could hard-code it in each function call within each list item's condition.
    Scott

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Material staging indicator not populating in prod order WM pick list item

    Hello,
    I have an issue with material staging in an prod order
    1) PP-WM interface is activated
    2) Control cycle for material is created
    3) Production storage location is created for material
    4) storage type is 100 for production
    5) There is one discontinued material and also the follow up material
    6) stock of discontinued material is zero and requirement are passed to follow up material
    When we confirm the order the stagging indicator for both follow up material as well as discontinued material automatically populates zero (Non relevence to pick list items) where as it should be one (1 - for pick list items).
    One more issue user has manually inserted discontinued material as well as follow up material in production order change mode.
    In the BOM of a main material both discontinued as well as follow up material is there with some quantity as a component.
    For the same work center, control cycle , production storage location the indicator is populating.
    These two material (discontinued as well as follow up) are appearing twice in the WM pick list screen where first two line items are OK and populating indicator "1". But in line item last and second last indicator is not there.
    My question is why the stagging indicator is not automatically populating in the production order WM pick list screen in front of components.

    Unfortunately, WM material staging via production orders is not possible
    from the pull list.  Please see the long text of message RMPU 311
    (WM material staging for production order reservation not possible):
    "You cannot carry out a WM material provision for pick parts from
    production order reservations in the pull list". The reasons for this
    are cleary explained in the SAP on-line documentation via the
    following path :
      Logistics -> Logistics Execution -> Warehouse Management Guide ->
      Goods Issue -> Goods Issue for Production Supply ->
      Material Staging for Repetitive Manufacturing
    See the following under the Selection heading :
    The choice of the selection type influences which types of WM material
    staging are supported in the pull list. However, the pick parts can be
    staged via RS headers/planned orders but not with the current BOM
    explosion. The release order parts, on the other hand, can also be
    staged if the current BOM is used for calculating the dependent
    requirements.
    WM material staging via production orders is not possible from the pull
    list.
    I think you may try in CO02 or COR2 for production order or process order.

  • Two conditions for an list item entry in oracle APEX 3.2

    Hello,
    Can anyone please help me with this issue.
    I have list item with 3 entries. And i want one of the entry item to be displayed on the page 7 and also satisfy the below pl/sql function.
    begin
    if (NVL(:P0_Datastore,'%'||'null%') != '%'||'null%' AND NVL(:P0_schema,'%'||'null%') != '%'||'null%' AND
    NVL(:P0_Table,'%'||'null%') != '%'||'null%') AND
    :P5_COUNT != 0
    then
    return TRUE;
    else
    return FALSE;
    end if;
    end;So how can i modify the function to include the condition to display the item entry on page 7 only.
    thanks,
    Orton

    hello,
    I was able to resolve the issue. By changing the function code to
    begin
    if (NVL(:P0_Datastore,'%'||'null%') != '%'||'null%' AND NVL(:P0_schema,'%'||'null%') != '%'||'null%' AND
    NVL(:P0_Table,'%'||'null%') != '%'||'null%') AND
    :P5_COUNT != 0 AND :APP_PAGE_ID = 7
    then
    return TRUE;
    else
    return FALSE;
    end if;
    end;thanks,
    Orton

  • List item - Population - Based on Data setup

    Dear All,
    I need to populate the list item based on data defined at the database level.
    Tables Used:
    Table 1 : JBCAI_JOB_COM_ADD_INFO
    Column Name     Pk     Null?     Data Type     Default     
    JBEDC_UID          1     N     NUMBER (22)          
    JBCAI_ADD_INFO_CODE     2     N     VARCHAR2 (2 Char)          
    JBCAI_INFO_CODE_SEQUENCE      3     N     NUMBER (3,1)     1     
    JBCAI_ADD_INFO_TEXT     Y     VARCHAR2 (35 Char)          
    SHIPCOMP_CODE     N     VARCHAR2 (4 Char)     
    Table 2 :CODES
    CODE_TYPE CODE_VALUE DESCRIPTION NEXT_VALUE CODE_FLAG
    MCAR 01 Customs References 01 NULL N
    MCAR 02 Customs References 02 NULL N
    MCAR 03 Value of Commodities NULL N
    MCAR 04 Currency of commodities NULL N
    MCAR 05 Purchase Order Number NULL N
    MCAR 06 Other NULL N
    MCAR 07 Consignee Name NULL N
    MCAR 08 VIN NULL N
    FORMS Section
    =========
    JBCAI_ADD_INFO_CODE are the list items which needs to be populated; JBCAI_ADD_INFO_TEXT(free text) which user can enter any descriptions.
    References - Label of the Block
    JBCAI_ADD_INFO_CODE JBCAI_ADD_INFO_TEXT
    Customs References 01 - Free Text()
    Customs References 02 - Free Text()
    Value of Commodities - Free Text()
    Currency of commodities - Free Text()
    Purchase Order Number - Free Text()
    Other - Free Text()
    Consignee Name - Free Text()
    VIN - Free Text()
    VIN - Free Text()
    Business Rules:
    If JBCAI_ADD_INFO_CODE has the flag as 'N' in CODES table then user can select only one time from the list item.
    If JBCAI_ADD_INFO_CODE has the flag as 'Y' in CODES table then user can do multi-selection from the list item e.g; VIN
    How the records are fetched:
    Value for the list item are been populated from CODES table ; which am doing through the below query.
    In WHEN-NEW-FORM-INSTANCE am using the below code:
    PROCEDURE p_fetch_code_value
    IS
              l_query VARCHAR2(200) ;
              l_rg_name VARCHAR2(40) := 'CODES';
              l_errcode NUMBER;
              l_rg RECORDGROUP;
         BEGIN
              l_query := 'SELECT adcod.description description,adcod.code_flag code_flag FROM codes adcod WHERE adcod.code_type = ''MCAR''                    AND adcod.code_value IN (''01''''02'',''03'',''04'',''05'',''06'',''07'',''08'') ORDER BY code_value';
              l_rg := FIND_GROUP( l_rg_name );
              IF ID_NULL(l_rg) THEN
              l_rg := CREATE_GROUP_FROM_QUERY(l_rg_name, l_query);
              END IF;
              l_errcode := POPULATE_GROUP( l_rg );
              POPULATE_LIST('BLK_CONTROL.JBCAI_ADD_INFO_CODE',l_rg);
    EXCEPTION
    Handled WHEN OTHERS exception
    END p_fetch_code_value;
    Saving of Record:
    List value selection are saved to JBCAI_JOB_COM_ADD_INFO.JBCAI_ADD_INFO_CODE column.
    Free Text is saved to JBCAI_JOB_COM_ADD_INFO.JBCAI_ADD_INFO_TEXT column.
    Doubt:
    When i select the first list item value i.e Customs References 01 and then enter some description i.e free text and moved to the next list item; the value Custom reference 01 should not be visible wheras the other values should have to be visible e.g; Customs Reference 02,Value of Commodities.....
    Please help and let me know how can i acccomplish this task?
    Thanks....
    Regards,
    Sunil.G

    Hi Sarah,
    Thanks for your reply.
    There is no issue in the population of the list item; it is working fine with the query which i have pasted.
    My doubt is:
    There are few places where i have set the code_flag as 'Y' / 'N'.
    For the first time when user selects the list item; all the values should be shown.....
    If user has selected the first list item i.e Customs Reference 01 for which the code_flag is 'N' from a multi-record block; then when he moves to the further lines the previous selection for which the flag is set as 'N' should not be shown(if user has already selected once) e.g; 'Customs Reference 01' should not be shown again if user has made the selection before.
    Plz revert incase more explanations required.
    Thanks...
    Regards,
    Sunil.G
    Edited by: Sunil G on Nov 29, 2009 12:16 AM

  • Oracle Forms List Items :not populating list Dynamically using select Query

    Hi ,
    I need to create a list item. And the values to be populated in the list are from Database but I'm unable to populate from database.
    Please help me out how to populate the values from database.
    In Property Pallete we have Elements in List under Functional section , In this we have to manually enter the List values but we can't use any Query to Dynamically populate.
    Thanks,
    Kiran Sanga

    When you need to fill a list with the result of a query, you'll have to do it at runtime.
    Andreas has a good blogpost about this.

  • Populating a text field depending on what is selected in list item field

    I have A form which contains a ROOM_REF field which is a list item, and a ROOM_DESC field which is a text item. (among other things).
    When the user selects from the ROOM_REF field (which is populated by a record group on startup),
    I want it to automatically populate the ROOM_DESC field with the coresponding (read only) data.
    Which kind of trigger do I need to use and with what code?
    Something like:
    SELECT ROOM_DESC FROM ROOM WHERE ROOM_REF = :SESSION.ROOM_REF;
    Thanks

    Did you try this code in WHEN-LIST-CHANGE trigger of list item.
    SELECT ROOM_DESC INTO :ROOM_DESC FROM ROOM WHERE ROOM_REF = :SESSION.ROOM_REF;-Ammad

  • Conditionally diplaying items in List item

    Hi,
    It is appreciably if anyone could help me, how we could conditionally display list items. Depending on the condition the certain items should be greyed out. Our environment is 10g Forms on Windows XP.
    Thanks with Regards.
    Hector

    Do you want to disable the list or the values in the list?
    For the first one use set_item_property: enabled property_false/true based on your condition.
    The second one is not possible.
    Monica

  • Need to do conditional processing based on just-selected list item

    hi -- I have a vertical, unordered list. Each list item branches to a different page when selected.
    When the list item is selected, and before the branch happens, I need to do some conditional processing
    that depends on which list item was just selected.
    How can I get information about which list item was just selected?
    Thanks,
    Carol

    Carol - List items get rendered as links on the page so as soon as you click the link the browser goes there. You can't normally run a process on the current page by clicking that link. I suppose you could build each list item target (defined in the list item definition) to use javascript that submits the page, perhaps passing the item name as the "request" value. Then when the page is submitted, an after-submit process could do whatever you need it to and similarly a branch could be defined for each list item that would take the user to the intended page.
    Scott

  • Is it possible to query an Item with two or more conditions in OOB Update List Item WF Step

    In SharePoint Designer 2010, in Workflows, is it possible to give more then one condition when querying items? Let me explain, it is fairly easy to drop Update item in this list step, and say, for example, Update item with ID X. However, if is it possible
    to do something along this lines with OOB steps, Update an item in this list where Title is Equal to "abc" and Modify date no older then 3 days.
    Update: Workflow is started when the item is added to the list. What I would like is to update some fields on this item depending on information in this item and in external list. For example
    Current Item Field 1 has value "abc"
    Current Item Field 2 has value "123"
    Current Item Field 3 has value "456"
    External List has Item with value in Field 1 "123"
    External List has Item with value in Field 2 "abc"
    External List has Item with value in Field 3 "xyz"
    Update Current Item Field 3 with value "xyz"
    In short I would need following query - Update Current_Item_Field_3 with value from External_List_Field_3 where Field 1 is equal to Current_Item_Field_2 and Field 2 is equal to Current_Item_Field_1

    Hi,
    From your description, I understand you want to update list item with workflow based on two or more conditions.
    To resolve your issue, you need to use “If current item field equals value” condition. Use this condition to compare a field in the current item that the list or reusable list workflow is currently running on to a value. Values can be static text, dynamic
    strings, and lookups to variables, context information, or other SharePoint fields. And you can learn more about each condition by referring to the article:
    https://support.office.com/en-in/article/Workflow-conditions-in-SharePoint-Designer-2010-A-quick-reference-guide-d8e33ac7-9336-487f-a60b-388c4ea497ff?ui=en-US&rs=en-IN&ad=IN
    I assume your External List is called “ListB”, and Current List is called “ListA”, You can follow the steps below:
    1. Add “If current item field equals value" for condition that ListB Field2 equals to ListA Field1, then set the second condition “ListB Field1 equal to ListA Field2” as the “Find the List Item” in the “Lookup for Single line of text”
    as the screenshot below:
    2. Add “Update List Item” as the screenshot below for updating Current_Item_Field_3 with value from External_List_Field_3. In addition, you should set “Find the List Item” in “Lookup for Single line of text” same to the “Find the List Item” in step 1:
    In addition, if you have more conditions, you could add “If current item field equals value” condition, and you should set each “Find the List Item” in “Lookup for Single line of text” same to the “Find the List Item” in step 1.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Dynamic Population of List Item Not Working

    My requirement is to have 1 list item that is populated based on the value selected for a second list item. in the when-list-changed trigger of the second list item, i make a call to a procedure (code below). This seems to not like any of the clear_list or populate_list. the list item type is poplist. i set the class to list. if i use populate_list in when-new-form-instance, there's no problem. PLEASE HELP. When can't I populate list using a procedure??
    ERROR: frm-40734 internal error pl sql error occurred
    PROCEDURE Refresh_List IS
    v_rg_name VARCHAR2(40) := 'RGTEST';
    v_rg_id RecordGroup;
    v_sql varchar2(2048);
    problem EXCEPTION;
    status number;
    list_id item;
    BEGIN
         list_id := Find_Item('BLK_TEST.LST_TEST');
    v_sql:='select column_name from sys.all_tab_columns where table_name=''testtable''';
                   v_rg_id := Find_Group( v_rg_name );
                   IF Not Id_Null(v_rg_id) THEN
                             DELETE_GROUP( v_rg_id ) ;
                   End if;
                   clear_list(list_id);
                   v_rg_id := Create_Group_From_Query( v_rg_name, v_sql ) ;
                   status := Populate_Group( v_rg_name );
                   POPULATE_LIST(list_id, v_rg_id);
                   POPULATE_LIST('BLK_TEST.LST_TEST', 'RGTEST'); also tried this.
                   if status <> 0 then
                             raise problem;
                   end if;
              EXCEPTION
                   WHEN problem THEN
                             message('problem.');
                   WHEN others THEN
                             message('tooto');
    END;

    Thanks for the response. I've tried this example too and it still doesn't like the things mentioned in previous post. In addition, it doesn't like SET_RECORD_PROPERTY(:system.cursor_record,'EMP',status,new_status); I get the same sort of error. The form compiles fine though.
    Background on form:
    this form was created to allow users to dynamically build an update statement. On this form are a number of list items and text boxes that are not populated from a database. So the datablock doesn't retrieve values from the database and the only updating that will be done is when the user clicks an "update" button to execute the sql statement that is built. Could this issue I'm having be related to the way i designed my datablock and items? When the user selects an item from one of the list items, the record status goes to "Changed". So I assumed my issue was because of this and thought the set_record_property statement would help...but that is generating the same error. what am i missing? if i look at the index value of the record group after create_group_from_query, it is -1. after populate_group, it is still -1. should it still be -1?? any help is greatly appreciated.

Maybe you are looking for

  • Load an existing Berkeley DB file into memory

    Dear Experts, I have created some Berkeley DB (BDB) files onto disk. I noticed that when I issue key-value retrievals, the page faults are substantial, and the CPU utilization is low. One sample of the time command line output is as follow: 1.36user

  • IDS 6.0 Authentication LDAP problem

    Hi all, I would like to test the ids6 bundled sample "remote client login". I have installed the temp cert. and activate the SSL on the web-instance. Then, i modify the AMConfig.properties: "com.iplanet.am.server.protocol" to "https". Then, i restart

  • Bootcamp & Windows XP Pro

    reposted in relevant forum Message was edited by: laurie1020

  • Basics of SD,Finance,SCM,Operations required in SAP BI implementation

    Hi, Can some one help me in getting some basic material to understand the following modules: SD,Finance,SCM,Operations Many Thanks, Sravani

  • Delete transfer order

    hello, friends. i want to delete a delivery that has been previously billed.  the billing document has been cancelled and the goods issue reversed.  however, i could not use LT0G as the document items are locked.  i tried to cancel the transfer order