how can i create the dynamic list item ? [message #318874] |
Thu, 08 May 2008 05:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
mm_kanish05
Messages: 493 Registered: January 2007 Location: Chennai
|
Senior Member |
![mm_kanish05%40yahoo.co.in](/forum/theme/orafaq/images/yahoo.png)
|
|
HI
I had create the list item, and how can insert list value in running time(dynamically).
Please guide me a good and simple example
or step by step manner.
wbr
kanish
|
|
|
Re: how can i create the dynamic list item ? [message #319076 is a reply to message #318874] |
Thu, 08 May 2008 23:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sinida1984
Messages: 83 Registered: September 2007 Location: India
|
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 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sinida1984
Messages: 83 Registered: September 2007 Location: India
|
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
|
|
|
|
|