|
|
|
|
|
Re: how to populate one column from database to list item [message #302641 is a reply to message #291833] |
Tue, 26 February 2008 07:29 ![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) |
dillango
Messages: 145 Registered: January 2008
|
Senior Member |
|
|
Hi,
I created the item called "TEST" with item type as list item.
created the record group called "listrec" with selecting one column from the base table.
In when-new-block-instance trigger, I gave the following
POPULATE_list(:TEST,'listrec');
When I execute the form, I did not find any values in the list item. (The table have more than 200 records)
Any help please?
Ilango
|
|
|
|
|
|
|
|
Re: how to populate one column from database to list item [message #302669 is a reply to message #302659] |
Tue, 26 February 2008 09: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) |
dillango
Messages: 145 Registered: January 2008
|
Senior Member |
|
|
Yes Mr.Vamsi,
Still I could not resolve it..
The record group query is (recone) :
SELECT DESIG_CODE, DESIG_CODE DUPLI FROM S_DESIG
List item is : item9
Block name : Block2
In when-new-block-instance,
I issued the following :
CLEAR_LIST('BLOCK2.ITEM9');
POPULATE_list('BLOCK2.ITEM9','RECONE');
I tried all the possibilities, still yet to find right solution
Ilango
[Updated on: Tue, 26 February 2008 09:02] Report message to a moderator
|
|
|
|
|
Re: how to populate one column from database to list item [message #304683 is a reply to message #303253] |
Thu, 06 March 2008 02:46 ![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) |
karunakar_adepu84
Messages: 43 Registered: January 2008
|
Member |
|
|
this is the answer
first take record group with the same column twice
the conditions are
1) the columns we are selected they must be in char or varchar2 type.
2) there should be only two columns only.
ex: select to_char(empno) empno1,to_char(empno) empno2 from emp;
now we want to attach this record group for a list item
1) take empno as listitem.
2) take the when-new-form-instance trigger at form level:
3) the code is
declare
n number;
begin
n:=populate_group('groupname');
populate_list('list_itemname','recordgrname');
end;
|
|
|
|