|
| Re: how can i create the dynamic list item ? [message #319076 is a reply to message #318874 ] |
Thu, 08 May 2008 23:58   |
sinida1984 Messages: 29 Registered: September 2007 |
Junior Member |
|
|
Hi
You can try using add_list_element() in any trigger where u need to put it dynamically. Please search on add_list_element in help. You will get what is the syntax..
Eg:- add_list_element('TEXT_ITEM4', 1, 'c', 'c');
will add 'c' into list element named text_item4 as 1st list element.
if u give like add_list_element('TEXT_ITEM4', 3, 'c', 'c');
will add 'c' into list element named text_item4 as 3rd list element.
Regards
Sinida
|
|
|
|
|
|
| Re: how can i create the dynamic list item ? [message #319203 is a reply to message #319163 ] |
Fri, 09 May 2008 06:00   |
sinida1984 Messages: 29 Registered: September 2007 |
Junior Member |
|
|
Hi....
Your code should be like below...
Declare
Cursor pg is (select partgroupno||'-'||groupname gpcode,partgroupno from partgroup);
cnt number(3) := 1;
begin
clear_list(:part);
for i in pg loop
add_list_element('Menu.part',cnt,i.gpcode,i.partgroupno);
cnt := cnt + 1;
end loop;
end;
Regards
Sinida
|
|
|
|
|