Home » Developer & Programmer » Forms » Display multi-record control block
icon5.gif  Display multi-record control block [message #146396] Thu, 10 November 2005 03:26 Go to next message
ilhan
Messages: 3
Registered: November 2005
Junior Member
Hi,

Aim: I entered more than one value in Text item in one block,
display corresponding records in tabular block(another block)

Written Code:

Declare
cursor c1 is select * from fnd_compview where comp_code in(:tab_blk.list);
Begin

-- Control_blk1 is tabular block which contains code,description
columns.

go_block('control_blk1');
clear_block;
For crec in c1 loop
--message(:tab_blk.list);
:control_blk1.code:=crec.comp_code;
:control_blk1.description:=crec.comp_desc;
next_record;
Exit when c1%notfound;
End loop;
end;


IT CAN NOT WORK TO DISPLAY THE RECORD IN MULTI RECORD


[Updated on: Thu, 10 November 2005 06:37] by Moderator

Report message to a moderator

Re: Display multi-record control block [message #146427 is a reply to message #146396] Thu, 10 November 2005 06:36 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
You have to create a record in the block first. Right now, you are populating the same record over and over again.

MHE

PS: Changed topic title
Re: Display multi-record control block [message #146526 is a reply to message #146396] Thu, 10 November 2005 22:18 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Another 'useless cursor' artist, what's wrong with master-detail blocks based on tables?

David
Previous Topic: how to create my own toolbar
Next Topic: How can i make splash screen in forms 6i?
Goto Forum:
  


Current Time: Fri Sep 20 03:58:00 CDT 2024