TLists in Forms 9i

I have populated a TList and have found that the list is not linked to seperate records, even though it is part of the same data block. as an example, one record has the values 'DB', 'SE', 'comms' and another has 'comms', 'comp'. When the list is populated it contains all values and is consistant as I scroll through records.
What I would like to achive is a seperate listing for each record. Is this possible?
I have changed the TList to a text box in order to check that my actual code is OK and it works fine.
Thanks.
Mark

Rosemary - you will (if not now but the in the future) probably have the same problem with the IE JVM since MS have stopped shipping the JVM as part of he browser. So, while it may be ok now, sometime in the future you will have to ensure a JVM gets installed. You can of course do this when youcreat the client image (so long as you have control over this).
Regards
Grant Ronald
FOrms Product Management

Similar Messages

  • URGENT : How to save multiple entries in a T list at one go

    If I have a T list that contains the colours availiable at a paint shop (just an example), e.g. white, green, red. I want to save the multiple entries in the t-list at any moment to the database column at one go. how can i do it.
    Also the table doesn't contain a column for the colour_code, but instead it has the shop_id and the colour_id corresponding to that shop_id. So i need to insert into the database the colour_id for a particular colour_code as the t-list is just a control item in the data block.
    Please help.
    Abhishek.

    if you use multi-selection Tlist item or create your own Tlist looking form, then you may loop thru these multi-selections and add your logic into this loop.

  • How to move value from one tlist to another tlist in same form?

    how to move value from one tlist to another tlist in same form on button press?
    Same like in data block wizard when we select value from 1st list it will go to 2nd list and can be move back. Please help i am new to forms .
    Regards

    just call the following proc in your add & add all buttons. Reverse the code for REMOVEs
    this proc will move one item at a time from list_item1 to list_item2.
    PROCEDURE add_an_item
    IS
      v_list_count    NUMBER;
      v_item1_label  VARCHAR2(60);
    BEGIN
      IF :list_item1 IS NOT NULL THEN v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
          IF v_list_count >= 1 THEN FOR i IN 1..v_list_count
          LOOP
             IF   :list_item1    = Get_List_Element_Value('list_item1', i)
             THEN
                  v_item1_label := Get_List_Element_label('list_item1', i);                 
                  Add_List_Element('list_item2',1,v_item_label,:list_item1);         
               Delete_List_Element('list_item1',i);
               Exit;
             END IF;
          END LOOP;
           END IF;
       END IF;
    END;
    *********************************************************************************this proc will move all items from list_item1 to list_item2.
    PROCEDURE add_all_items
    IS
      v_list_count NUMBER;
      v_item_label VARCHAR2(60);
      v_item_value VARCHAR2(60);
    BEGIN
    v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
    IF    v_list_count = 1 AND Get_List_Element_Value('list_item1', 1) IS NULL THEN NULL;
    ELSIF v_list_count >= 1 THEN
           FOR i IN 1..v_list_count
           LOOP
            v_item_value  := Get_List_Element_Value('list_item1', i);
            v_item_label  := Get_List_Element_label('list_item1', i);       
            Add_List_Element('list_item2',i,v_item_label,v_item_value);
           END LOOP;
           clear_list('list_item1');
    END IF;
    END;I added [ code ] tags to make this easier to read.
    Message was edited by:
    Jan Carlin

  • ... Forms Tlist error.. problem... help out plz ..

    Hi.
    i m facing a prblem with my Tlist. The problem is that i want to retrieve some record with dynmic record group. There are few neighbours against each site which are populated in the list.
    here is the code behind the mouse click trigger of the text item
         rg:=find_group('nrg');
              if not id_null(rg) then
                   delete_group(rg);
                   clear_list('nlist');
              rg:= create_group_from_query('nrg','select ncellid,to_char(ncellid) from rfbsc.neighbour where pcellid = :cid1');
              x:=populate_group(rg);
              Populate_list('nlist',rg);
              else
              rg:= create_group_from_query('nrg','select ncellid,to_char(ncellid) from rfbsc.neighbour where pcellid = :cid3');
              x:=populate_group(rg);
              Populate_list('nlist',rg);
              end if;
    Now it is working fine . when ever i press button the record is shon. when i click on the site id text item field to display the neighbours in the list , it gives me correct number and name of the neighbours.
    Now when i again press button/ select any other site id. it agains shows me record for site id( there are other fields as well instead of tlist)
    Now when i click on the text item site id field, the neighbours shown are not correct. let me more explain it .
    Suppose i select site id of 4001, then i click the mouse on that text item field , the Tlist is populated with the record.
    i select another site id or type another site id, 4181
    it shows the records , and then when i click the mouse, it shows neighbours but does not show any other record based on those tlist items.
    i do not know why it is showing wrong neighbours if i try to get it again. ..
    Summary is that it works just fine for the first time when the instance starts, after that if you have logged on , you are unable to get correct record for the neighbours..
    when i try to clear_list()
    it is not working..
    the requirement simply is that whenever i click the field , the neighbours are shwon in the list.
    Now user can type the nfew site id and clikc again , the new site have different neighbours, why the tlist is not showing them..
    Rememeber that Tlist is seperate block while siteid field in seperate block..
    thanx altot

    Hi,
    Try changing the query
    " rg:= create_group_from_query('nrg','select ncellid,to_char(ncellid) from rfbsc.neighbour where pcellid = :cid1');"
    as like this
    rg:= create_group_from_query('nrg','select ncellid,to_char(ncellid) from rfbsc.neighbour where pcellid = ' || <block_name>:cid1);
    Replace the <block_name> with the actual block name of the item cid1 / cid3.
    HTH.
    Regards,
    Arun

  • Forms tlist

    How can i highlight (select) multiple elements in the T List?
    something like in the wisard when you create a block from table and can select multiple columns to move them
    into selected list.
    thanks ..alex

    Alex -
    The T-List is just like a poplist and can only have one value.
    If you installed the benefits and feature demos from the Forms6i CD then in the STANDARD.OLB there is a component called PICKLIST that you can reuse. Be sure to also attach the PICKLIST.PLL library.
    This gives you a shuttle to select multiple values and move them over to the right side like in the wizard. All functionality is in this reusable component you just need to supply the population of values on the left side.
    You can read about PICKLIST in the online help system.
    Hope this is what you need,
    Candace Stover
    Forms Product Management

  • How to populate records in forms

    hello all,
    i m making project named library management in forms and sql,
    i have a table names subject in which there are two fields subject and book_title
    in forms both item are as TList now i want to do is when we select particular subject example maths..all the related books of that subject populate with it in the title_book column.how can i do this
    please help me
    thanx in advance

    thanx
    but can u tell me how to change the filter of the form block
    regards
    ruchi

  • Output from Tlist concatinated???

    Hi,
    i have this data in a table
    sample format is below
    ID   Name
    1    A
    2    B
    3    C
    4    D
    5    E
    .and so on
    I am using the following code to populate the Name column in my non-db Tlist in a Form
    DECLARE
    RG_NAME_1  VARCHAR2(40) := 'my_data';
    RG_ID_1    RecordGroup;
    ERROR_1    NUMBER;
    BEGIN
        RG_ID_1 := FIND_GROUP(RG_NAME_1);
        IF NOT ID_NULL(RG_ID_1)
    THEN
        DELETE_GROUP(RG_ID_1);
    END IF;
        IF ID_NULL(RG_ID_1)
    THEN
    RG_ID_1 := CREATE_GROUP_FROM_QUERY(RG_NAME_1, 'SELECT NAME,TO_CHAR(ID)
                                 FROM T ORDER BY 1');
    END IF;
    ERROR_1 := POPULATE_GROUP(RG_ID_1);
       IF ERROR_1 = 0
    THEN
       POPULATE_LIST('block.tlist, RG_ID_1);
    END IF;
    EXCEPTION
    WHEN
       NO_DATA_FOUND
    THEN
       NULL;
    END;Well all this is working very fine
    my Tlist is populated with 'names' at run time
    the problem is that i want to achive 2 things
    1. To show the respective clicked Name(s) in a non-database text item and the clicked name is deleted from the tlist. If the user clicks more than one name then the Names in the text item should be concatinated with a comma and a space
    For example, if the user clicks 'A' then 'A' should be deleted from tlist and should come in the non-db text item. If the user clicks another element then that element should also be deleted from Tlist and come in the text item as
    A, B
    and so on..
    in the second requirement I want only the ID behind the clicked name should come in another text item and the clicked Name is deleted from the tlist.
    Incase of more than one selection the ID's should come concatinated with a comma and a space in the Text item just as explained above..
    For exmaple: user clicks 'A', then 'A' should be deleted from the tlist and its ID should come in the text item. On further click the same procedure follow and the next ID comes after the first ID as 1,2
    and so on
    I would be extremly grateful if somone tells me with example code how to achieved this
    regards,

    assuming that you have two items.
    list item - blk_ctl.list
    text_item - blk_ctl.text
    add the below code in the WHEN-LIST-CHANGED trigger of the list item.
    begin
      --pad the values to a text item
         if :blk_ctl.text is not null then
              :blk_ctl.text := :blk_ctl.text||','||:blk_ctl.list;
         else     
              :blk_ctl.text := :blk_ctl.list;
         end if;     
      --loop through the list to find the selected element
      --and delete it
         for i in 1..get_list_element_count('blk_ctl.list')
         loop
                   if get_list_element_value('blk_ctl.list', i) =  :blk_ctl.list then
                        delete_list_element('blk_ctl.list', i);
                   end if;
         end loop;
    end;

  • How to create a tree structure using list items(tlist)

    HI every one,
    As we know how to create a tree structure using Hierarchy item type.
    We have a requirement to create The same tree like structure using List Item(Tlist)
    I would be so appreciated If you send with an example
    Thanks
    RangaReddy

    Hi all
    Any one help me please
    Actually our client requirement is creation of tree structure using list item,similar to what we used in oracle Application(FNDSCSGN) form.We did the tree structure using hierarchy tree using Htree and Ftree.It working excelently.For client requirement, we want to use list item.How PJC(Pluggable Java Components) is useful for using list item(Tlist).I can't understand how it is useful.
    Do you have any example please help me.
    Thanks
    RangaReddy

  • Tlist & tree controls - highlight colour

    Does anyone know if/how we can influence the colour used to highlight a row in a tree/t-list.
    Is it configurable or are we stuck with whatever the colour scheme gives us?
    Thanks,
    Bren

    you can change the color via visual attribute - for the whole item
    in the tlist you can't change the colors between the values of the tlist... That's impossible in native Oracle Forms.
    Maybe a PJC helps you in that case

  • Please help me in my form problem .. urgent

    Good morning every body
    I have a problem with my form
    I have created one list item ( and changed the type to Tlist )
    Then I create one record group .. and I wrote the select statements as follows :
    SELECT NOM,TO_CHAR(REQ_ID) FROM  HD_PHOTOS WHERE REQ_ID = :parameter.req_id
    After that I created one procedure which does the following :
    PROCEDURE RET_DATA_new  IS     
    A NUMBER ;               
    tmp number ;
    BEGIN
                        SELECT COUNT(REQ_ID)           
              INTO A
                        FROM HD_PHOTOS                     WHERE REQ_ID = :parameter.req_id ;               
                        IF A <> 0 THEN                         tmp := populate_group('RECORD_GROUP32');                          populate_list('ENDUSERVIEWEDIT.a','RECORD_GROUP32');                    ELSE                          NULL ;                    *     END IF ;          *     
    END;
    Then in the trigger named : WHEN-NEW-FORM-INSTANCE I called this procedure
    The form runs with no errors … but when I tried to select a value from my list .. it always selects the first value in the list
    After that I changed the type to : combo box
    Then It runs ok .. but another problem occurred ……… the user can change the values retried in my list …. And this is not acceptable in my project ( I want the user not to change the value )
    I hope my problem is clear …. Waiting for your kind help

    This is what i am using for populating list or any other thing
    i am creating record group in runtime.. try this.. Its simple and it works..
    No need the check the record count. because if there is no value it wont give any error!
         DECLARE
              RG_ID      RECORDGROUP;
              ERRCODE      NUMBER;     
              RG_NAME      VARCHAR2(40)     := 'MY_RG'; -- RG_NAME
              ITEM_NAME VARCHAR2(40)     := 'ENDUSERVIEWEDIT.a'; -- ITEM_NAME
         BEGIN
         RG_ID := FIND_GROUP( RG_NAME );
              IF NOT ID_NULL(RG_ID) THEN
              DELETE_GROUP( RG_ID );
         END IF;
              RG_ID := CREATE_GROUP_FROM_QUERY(RG_NAME,'SELECT NOM,TO_CHAR(REQ_ID) FROM HD_PHOTOS WHERE REQ_ID = '''||:parameter.req_id||'''');
              ERRCODE := POPULATE_GROUP( RG_ID);
              POPULATE_LIST(ITEM_NAME,RG_NAME);
         END;
    ------------------------------------------------------------------------------------------------------------------------------------------------------

  • Background color of a list item implemented as Tlist

    Hi,
    I have one form with 3 blocks each holding one list item. The list item that has the focus should have a different background color from the other 2 list items. I thought to implement this with visual attributes I assign in the when-new-block-instance trigger. This however only partially works.
    What happens is the following :
    At startup focus is in the first block. This block's when-new-block-instance trigger is fired :
    SET_ITEM_PROPERTY('BK_LIST.LIST',VISUAL_ATTRIBUTE ,'VA_INDICATOR');
    SET_ITEM_PROPERTY('BK_LIST2.LIST',VISUAL_ATTRIBUTE ,'VA_ENABLED_LIST');
    SET_ITEM_PROPERTY('BK_LIST3.LIST',VISUAL_ATTRIBUTE ,'VA_ENABLED_LIST2');
    and the list correctly gets it's yellow background. (defined in va_indicator)
    Va_enabled_list and va_enabled_list2 both have a white background, difference between them is the font size)
    Now when we move focus to the 2nd block we get a different behaviour. This is the trigger defined on the 2nd block :
    SET_ITEM_PROPERTY('BK_LIST.LIST',VISUAL_ATTRIBUTE ,'VA_ENABLED_LIST');
    SET_ITEM_PROPERTY('BK_LIST2.LIST',VISUAL_ATTRIBUTE ,'VA_INDICATOR');
    SET_ITEM_PROPERTY('BK_LIST3.LIST',VISUAL_ATTRIBUTE ,'VA_ENABLED_LIST2');
    So I except the first block to get a white background again and the second block to get it's yellow background. However only the selected row in the tlist changes it's background color. (this in both blocks)
    I do not understand why the first time (at form startup) the background color is set for the whole item and the second time only for the selected record.
    I tried to use the property background_color but the colors are different from what I see in my color palette in that case. If I use the same color codes I also use in my visual_attributes the final result on the screen is different...
    Secondly the result is the same, at form startup the item's background is set, as from the second call only the current salected record in the tlist will change from background color.
    Forms are running C/S and are developed in Forms 6i. One way to get the result I need is by navigating back & forward to my application in Windows using Alt-Tab. At that moment the correct background colors are suddenly applied... Is there a way to force a similar sort of screen refresh ?
    Thanks for any hints, workarounds, tips or solutions !
    Kris
    Message was edited by:
    [email protected]

    Hi,
    I still don't have a clue how I could solve this one.
    It works leaving the block (so making it white again) but it does not work entering the block. (giving the list item another background color). The problem is not about the whithe color. If I do my tests with other colors (red-yellow) the problem remains.
    Best Regards,
    Kris

  • Developer 6 Form

    * I would like to run the Forms on the Web without the default MDI window and toolbar, is it possible to hide these and customise your own? and how?
    * Do you include images, hyperlinks and list items as such when you developing the form or do you include it on the web page in the HTML code?
    Does anyone know any sites that use Oracle Developer Form 6?
    Thank you.

    You might try checking the actual value of the item. While the when-list-change trigger won't file, I don't know why, the movement to another field can be used with the when- validate, or post-change trigger. Then the value in the tlist field will be readable for what was selected. You can set the initial value to NULL as well.

  • Developer 6.0 Form

    How can I check which item in a tlist is selected?
    I used to check whether the tlist control is null to determine if any thing selected, but it does not work when depolying the same form in web.
    It seems that oracle cannot detect any list changed event even if item is highlighted with mouse click.
    null

    You might try checking the actual value of the item. While the when-list-change trigger won't file, I don't know why, the movement to another field can be used with the when- validate, or post-change trigger. Then the value in the tlist field will be readable for what was selected. You can set the initial value to NULL as well.

  • Multi-Selection in Tlist....

    Hi Everyone,
    I want to know who to enable multi-selection in a List Item whose List Style is Tlist. I want that user can select multiple items from a list by holding shift button or control button. How can I implement this?
    Please help!
    Thanks a lot.
    Imran

    You can't do it with the default t-list.
    There is a component that you can use that does this, it comes with the standard Forms demos that you can download from otn smaple code section.

  • Navigation In Multiple-Form Application

    I am working on an application that consists of two forms. On the main form, the user can select a customer from a TList and then click a button to invoke the second form containing that customer's details. On the second form, a 'cancel' button will return you to the main form. In the 'When-button-pressed' trigger for the cancel button, I used the exit_form built-in. When you are returned to the main form, the focus is put on the TList with the first item in the list selected - regardless of which item in the list the user had originally selected. I have the original selection in a global variable, but I can't figure out which trigger will be fired by the exit_form built-in, in order to assign the TList to that global variable. I can't use Post-Block because I don't want the assignment to happen everytime the list is navigated to - only when the user hits the cancel button on the second form. Any suggestions?

    Try the when-window-activated of the first form. the first form's window we'll be activated when you close the second form.

Maybe you are looking for