List items as grouped elements

Hi,
In 'Select List Item' , I want to display list items as grouped elements. Assume that grouping the child items based on its master code.
Eg: [ Fruits ]
Apple
Orange
Goa
[ Animals ]
Tiger
Lion
Elephant
[ Birds ]
...... etc
How can I do it?
Regards
Mohan

Mohan wrote:
In 'Select List Item' , I want to display list items as grouped elements. Assume that grouping the child items based on its master code.
Eg: [ Fruits ]
Apple
Orange
Goa
[ Animals ]
Tiger
Lion
Elephant
[ Birds ]
...... etc
How can I do it?The select list item must generate HTML <tt>optgroup</tt> elements, via an item plug-in or some other technique, e.g.
{thread:id=1115902}
{message:id=4516761}

Similar Messages

  • List item - Record Group Query - Alignment improper Order

    Dear All,
    When am trying to concatenate two columns using record group query and displaying in the list item, the alignment is not in proper order.
    E.g; Below is the columns and data's used in process:
    CODE_VALUE     SHORT_DESC     DESCRIPTION
    ROLL1     Customer - Non accidental     Production, booking with other carrier, bad projection.
    ROLL2     Customer - Accidental     L/C, B/L draft, Customs, Samples, AMS, LAR.
    ROLL3     ABC - Lack of empty     Lack of empty units.
    ROLL4     ABC CDE - Roll over     AGR RRR decision.
    ROLL5     ABC XXX - Accidental     IMO or OOG refused, operational problems, Cut & Run.
    ROLL6     ABC YYY - Fictive booking     Equipment buffer, dummy booking.
    Below is the record group query used in forms:
    PROCEDURE p_when_new_form_instance
    IS
    GROUP_ID recordgroup;
    list_id item := FIND_ITEM ('BLK_CONTROL.LI_ROLL_REASON');
    rg_name VARCHAR2 (20) := 'LI_ROLL_REASONS';
    status NUMBER;
    l_query VARCHAR2 (4000);
    BEGIN
    l_query :=
    'SELECT rpad(short_desc,50,'' '')||'' | ''||description description, code_value code_value FROM codes WHERE code_value IN (''ROLL1'', ''ROLL2'', ''ROLL3'',''ROLL4'',''ROLL5'',''ROLL6'')';
    GROUP_ID := CREATE_GROUP_FROM_QUERY (rg_name, l_query);
    status := POPULATE_GROUP (GROUP_ID);
    POPULATE_LIST (list_id, GROUP_ID);
    EXCEPTION
    WHEN OTHERS
    THEN
    pl_common.when_others;
    END;
    Moreover i have my list item font property by default as ""MS SANS SERIF" and when i run in Forms Builder am getting the alignment as below.
    Result:
    ====
    DESCRIPTION     CODE_VALUE
    Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
    Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
    ABC - Lack of empty | Lack of empty units.     ROLL3
    ABC CDE - Roll over | AGR RRR decision.     ROLL4
    ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
    ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
    Above order is not the expected result as all the |(pipe) symbol should display in proper order as below.
    Expected Result:
    ==========
    DESCRIPTION     CODE_VALUE
    Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
    Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
    ABC - Lack of empty | Lack of empty units.     ROLL3
    ABC CDE - Roll over | AGR RRR decision.     ROLL4
    ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
    ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
    I tried with RPAD and LPAD still the alignment issue is there; i know the issue is because of invariable length of the font.
    But is there any solution to override this it will be of great help.
    So please help!!!!!!!!!!!!!!!!!
    Thanks..................
    Regards,
    Sunil.G

    Hi Francois,
    Thanks for your reply. I have tried changing the font to "Courier(Western)" it is working fine.
    But as per the standards defined, it should be "Ms Sans Serif" nothing apart from that.So that is where the problem lies. :(
    Regards,
    Sunil.G

  • FRM 41337: Issues with list item

    Hi Everyone,
    I have created list item, and populated elements dynamically in when-new-form-instance using below code
    DECLARE
    l_action_rg  recordgroup;
    l_action_id    item
                   := FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
    l_num_action NUMBER;
    BEGIN
    l_action_rg :=
                CREATE_GROUP_FROM_QUERY
                   ('Action_Type_Text_lov',
                    'select flv.meaning Action_Type_Text_lov, to_char(flv.lookup_code) Action_Type_Text_lov from fnd_lookup_values flv where flv.lookup_type= ''XXSCP_GBL_ACTION_TYPE'' AND flv.LANGUAGE = USERENV (''LANG'') '
             l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');        
             POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
    END;My form opening with below error "FRM-41337: Cannot populate list from record group " and showing no records.
    I have read the related threads and tried implimenting the tips. But didnt help me..
    Please suggest me if i miss anything.
    Thanks
    Pavan

    Hi pavan
    Let's test the query on toad...
    or
    i suggest u to try the first condition of ur rg in where clause as below ...
    now let's see what's the output ???
    DECLARE
    l_action_rg  recordgroup;
    l_action_id    item
                   := FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
    l_num_action NUMBER;
    BEGIN
    l_action_rg :=
                CREATE_GROUP_FROM_QUERY
                   ('Action_Type_Text_lov',
                    ' select flv.meaning Action_Type_Text_lov,
    to_char(flv.lookup_code) Action_Type_Text_lov
    from fnd_lookup_values flv where flv.lookup_type= 'XXSCP_GBL_ACTION_TYPE' ' );
             l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');        
             POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
    END;
    @ Divya ;
    Hi Divya Action_Type_Text_lov in the fist select is just an aliasHope this helps...
    Regards,
    Amatu Allah

  • Bug editing list Items using webpart connections ,group by and inline editing

    Hi Everyone. I came across a bug using out of the box features.
    Let me explain well the details to reproduce the error. I used :
    *2 Lists :
    -List one : the consumer list with two columns : 
    -Number column
    -Choice column
    -List two :
    The sender list with one column :
      -Lookup column to gets the number column on the consumer list
    *A webpart Page
    *2 listviewwebparts in the webpart page
    *Connect webparts to filter by the lookup column/number column
    *Add inline editing in the consumer webpart 
    Till now everything works perfectly, inline editing works fine. Let's add some more view details :
    *Add a group by in the view of the consumer webpart (group by the choice column)
    => Try to edit list items, you will notice that inside a group, inline editing is OK and inside another group it doesnt work!
    If you get the same error, that would be nice to find where is the problem (I already found a similar bug and the problem was the sorting that needs to be in the same way for both connected webparts , ASC or DESC). But this one... ???

    Hi Static,
    According to your description, I create the consumer list and sender list, create a webpart page , add a chioce filter webpart and consumer list webpart. But after I add a group by in the view of the consumer webpart, the inline edit still work fine.
    You can have a look at the blog:
    https://support.office.com/en-ca/article/Connect-a-Filter-Web-Part-to-a-List-View-Web-Part-4f3f6c10-0a1b-479d-8b4d-c4f1bf49bb3f#bms3
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • SET element of LIST ITEM

    Hi,
    I have a List Item on my form in which I am populating data in tree format...and that list item populates the data based on a check box value...my form is like this
    Account # : ___________
    Description : ____________________________
    [ X ] Sub Account of : __________________(<------ this is my List item (Pop item)
    and when user selects the value it returns the code and save it on COMMIT;
    now my problem is whenever I do the execute_query the list box element doesnt set accordingly ...hummm. let me explain this way...i have accounts like this
    10000 - Assets
    11000 Current Asset
    11101 Cash in hand
    11102 Petty Cash
    12000 Fixed Assett
    12100 Building
    12101 Building # 1
    now if am creating a sub account I will fill my form like this
    Account # : 11101
    Description : Cash in hand
    [ X ] Sub Account of : __________________(<------ this is my List item (Pop item)
    now if i want a sub account I fill this pop list and it appeared like this
    --------------------------------------------------------------------------+
    10000 - Assets |
    11000 Current Asset |
    11101 Cash in hand |
    11102 Petty Cash |
    12000 Fixed Assett |
    12100 Building |
    12101 Building # 1 |
    -------------------------------------------------------------------------+
    suppose I select 11000 - Current Asset (make it parent account) from the list and
    in the pop list this entry remains there...now after commit and clear_block it clears the block and ready for a new record...
    My question is that when I execute the query all the values comes exactly but the list item perticular element should also be set accordingly ..how can I set the list item element according to the rest.
    Hope I am describing my problem well otherwise plz ask me again.

    as the list item is a control item, it won't be auto-queried while executing query on the base table block. what you can do is, write the post-query trigger to assign the value of parent_account (sub_account_of) to this list item.
    hope it helps.

  • Assign Group permission to list item using client object model

    Hi,
       I am trying to add the list item and assign the permission to the list item by using SP 2010 client object model. The problem which i am facing that when i assign the group as a permission to the item, by automatically the limited access permission
    is added to the group. Please find the steps which i have followed,
    Step-1: Break role inheritance.
     foreach (var item in _listItemCollection)
                            if (item["FileLeafRef"].ToString().ToLower() == "xxx")
                                item.BreakRoleInheritance(true, false);
                                _clientContext.Load(item.RoleAssignments);
                                _folderItem = item;
    _clientContext.ExecuteQuery();
    Step 2: Remove all permissions of the list item.
       foreach (var assignment in _folderItem.RoleAssignments)
                        assignment.RoleDefinitionBindings.RemoveAll();
                        assignment.Update();
    _clientContext.ExecuteQuery();
    Step 3:
        Add Group as a permission to the list item.
      var role = _web.RoleDefinitions.GetByType(RoleType.Contributor);
                    var collRdb = new RoleDefinitionBindingCollection(_clientContext) { role };
                    Principal principal = _grp;
                    _folderItem.RoleAssignments.Add(principal, collRdb);
                    _folderItem.Update();
    _clientContext.ExecuteQuery();
        After adding the group successfully to the list item, i checked the group permission and it contains the value as "Contribute,Limited Access" to the site level and "Contribute" to the list item. Please guide me how to avoid to create Contribute,Limited
    Access role.
    Balaji

    Hi Dmitry,
      When I create the group and assign contribute permission, the group has the permission at the site level(to see the permission, click group and click view Group Permission).  I have added the list item and break the role inheritance permission
    and given the unique permission by providing group as a permission to the list item. After providing the permission, the group permission at the site level changed to "Contribute, Limited Access". I dont know how contribute permission changed to contribute,
    limited access.
    I found the workaround to fix this issue. I created the group and create the folder in the shared document library by using client object model. Due to facing some issue by providing the permission using client object model, i have created the event receiver
    to the document library and using server object model, i can able to assign the approprate group permission.
    Balaji

  • Filter list items based on security groups o365

    How to filter list items based on security groups in o365.

    Hi,
    According to your description, my understanding is that you want to filter list items based on the Office 365 security groups.
    If that is the case, I suggest you can create a data view to filter the list items with CAML Query like below:
    <Where>
    <Membership Type="CurrentUserGroups">
    <FieldRef Name="VisibleToGroup"/>
    </Membership>
    </Where>
    For more information, please refer the detailed article below:
    SharePoint - Filtering a View by Group Membership
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • FRM-30351: No list elements defined for list item.

    Hello!
    i have a list_item with name NOMBRE and in a NEW_FORM_INSTANCE trigger i have the following pl/sql block to populate it:
    declare
         grp_producto recordgroup := find_group('RECORD_PRODUCTO');
         lst_item item := find_item('PRODUCTO.NOMBRE');
         status number;
    begin
         status := populate_group(grp_producto);
         clear_list(lst_item);
         populate_list(lst_item,grp_producto);
    end;
    when i run the form, this message appear
    FRM-30351: No list elements defined for list item.
    List NOMBRE
    and the list appear without elements
    ...can somebody explain me the solution or if i have to do another thing to populate the list?
    Thanks

    Hi Duncan!
    i rewrote the manually code and agregate the clear_list function that i think you refer with "Make sure that the block is empty before you do this". This work the first time but in the next time a change that i do in the database isn't reflected in the list, i think that my cursor mantain the old information, well, can you indicate me some way to clear the cursor or something similar? or explain me another solution?
    thanks so much!
    declare
    nombre_producto soportebwv2.producto.nombre%type;
    lst_item item;
    i number:=1;
    CURSOR cur IS
    select nombre
    from soportebwv2.producto;
    begin
    lst_item:= find_item('PRODUCTO.NOMBRE');
    clear_list(lst_item);
    open cur;
    loop
    fetch cur into nombre_producto;
    exit when cur%NOTFOUND;
    add_list_element(lst_item, i, nombre_producto, nombre_producto);
    i:=i+1;
    end loop;
    close cur;
    end;

  • No list elements defined for list item.

    hi master
    when i use list item and run then give this error
    FRM-30351: No list elements defined for list item.
    List PRODUCT_NO
    Created form file MODULE1.fmx

    Try posting your question to Forms

  • 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.

  • How to Remove Edit permissions to a group/user when an list item is approved.

    Hi,
    We have a requirement of removing the edit permissions on custom list item when a item is approved, this I have to implement using OOB feature or customization and designer, but no code should be involved.
    Can anyone please suggest me to implement this.
    Thanks, Swaroop Vuppala

    Check this below
    You need to use item level permissions.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9e3a624e-77d3-432f-9a2b-3f25b925423a/how-to-remove-edit-and-delete-option-for-a-list-item-when-approval-workflow-is-complete-and?forum=sharepointgeneralprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

    Following code :
    <!DOCTYPE html>
    <style type="text/css">
    div {
    display: block;
    margin-left: 2em;
    span {
    display: list-item;
    list-style-type: decimal;
    </style>
    &lt;div>
    &lt;span>first&lt;/span>
    &lt;span>second&lt;/span>
    &lt;span>third&lt;/span>
    &lt;/div>
    Displays as :
    0. first
    0. second
    0. third
    while looking fine in other browsers (checked IE7, chrome, opera, safari...)

    updated code snap...

  • .... List Item Problem

    ...HI....
    I want to populate list T List with the values from the database
    I want that whenever user select a date, all the record with that date is displayed in the T list from which user can select and click on the record and that record will displayed in the Fields .
    I have created a list and a recordgroup
    recgroup:= create_group_from query('gname','select createtime,stlong from cc_hist where stid like %1063')
    and then i use
    status is a number variable
    status:= populate_group('gname');
    Now i user
    Populate_list( listname,gname) where gname is the record group name.
    but this procedure is not working
    then i use
    Recgroup varchar2(100);
    Recgoup:='select ......... query)
    then
    Populate_list('listname',recgroupname)..
    No error is shown rather i recieve a message in the task bar of Forms 6i
    that " Module built succesfully"
    But not a single item is shown in the T List..
    why is this..
    Is there any other way to popluate the list
    i want ot show at least 2 or 3 columns in the same list is it possible..
    Kindly reply urgent...
    Thanx alot ..
    best regards

    sorry man.. No use giving either group id or grouop name thats not issue..
    why is not creatign the group ..
    The main issue is that ..
    here is the code i m using ..
    eclare
    --listid item:=List_item('List6');
    rg Recordgroup;
    pop number;
    begin
    --Add_list_Element('List6',1,'Hi','first');
    rg:= Create_Group_From_Query('rcg','select st_city,to_char(st_cit) from site');
    pop:=Populate_Group('rcg');
    Populate_list('List6','rg');
    -- clear_list('List6');
    end;
    well i have searched and found that if you create groups to populate item in the list box.. you need to add extra column for the value of the list item.. for each element.
    thats what i tried to do. but still i get the error.
    FRM41072 etc that cannot create record group..
    i dont know what the hell is the error..
    Kindly tell me How to populate my list..
    its an imp module and user will select stid and i will create group based on that stid and then populate result in a list item.. T list..
    Kindly reply me urgent so that at least i know how to do this..
    best regards
    thanx alot...

  • How to populate List Item from the table in a form builder

    I want to know how to populate the List Item (pop up menu and combo box) from a table.
    Supposing I have a table Customer(cust_id,cust_name)
    and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.

    This is the method i am using to populate a list.
    1- First of all you need to create a non-database list item for customer_name.
    2-create this procedure
    PROCEDURE populate_list_with_query
    --Populates the given list item with the specified query.
    (p_list_item in VARCHAR2
    ,p_query in VARCHAR2)
    IS
    /* Name the record group after the list item (no
    block prefix). */
    cst_rg_name constant VARCHAR2(30) :=
    GET_ITEM_PROPERTY(p_list_item,item_name);
    v_rg_id RECORDGROUP;
    BEGIN
    v_rg_id := FIND_GROUP(cst_rg_name);
    IF ID_NULL(v_rg_id) THEN
    v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
    END IF;
    IF POPULATE_GROUP(v_rg_id) = 0 THEN
    POPULATE_LIST(p_list_item,v_rg_id);
    /* Force display of first list element label
    in the list item. */
    COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
    END IF;
    END populate_list_with_query;
    3- Create When-Create-Record on the block level and write this code
    BEGIN
    POPULATE_LIST_WITH_QUERY('bk1.customer_name',
    'SELECT customer_name, to_char(customer_id) FROM customer');
    END;
    In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
    i hope this will solve your problem ...

  • Populate a non List ITEM

    I am familiar with the procedure of creating a record group to pupulate a list item. What I have never done and I am wondering how to do it is for when you want to populate a text item for display only. List is not necesary as the data has already been entered.
    any ideas?
    thanks!
    here is the scenario
    I have one table with:
    education --numeric 1 to 5 possible values
    in another table, I have the labels for this
    id | label | type
    1 elementary 1
    2 highschool 1
    3 college 1

    I believe you need a LOV. You have a display item which would hold the value of a chosen element. The values are, I believe, in a table already. You need to define a RG( based on a query retrieving values from the existent table) and base a LOV on this RG. In the when new item instance invoke the LOV. Assign the value chosen in the LOV to the display item (set the return item to the display item in the Column mapping property of the LOV).
    I hope this helps.
    Thanks

Maybe you are looking for