Home » Developer & Programmer » Forms » Multiple Records
Multiple Records [message #135890] Sun, 04 September 2005 01:21 Go to next message
samit_gandhi
Messages: 226
Registered: July 2005
Location: Hong Kong
Senior Member

I want to show the multiple records in the multi row datablock. I have write following cursor to get the record in the datablock. but it gives me the last record only.

DECLARE
DEPCNT NUMBER;
CURSOR C1 IS SELECT STOCK_CODE,CURRENCY,SELL_PRICE
FROM STOCK_MASTER;
BEGIN
OPEN C1;
FIRST_RECORD;
LOOP
FETCH C1 into :GROUP_METAL_PRICE.STONE_CODE,
:GROUP_METAL_PRICE.CURRENCY,
:GROUP_METAL_PRICE.STANDARD_PRICE;
EXIT WHEN C1%NOTFOUND;
GO_BLOCK('CONTROL');
GO_ITEM('CONTROL.EDIT');
NEXT_RECORD;
END LOOP;
CLOSE C1;
END;

Please tell me what is the mistake in this.

Its urgent.

Samit gandhi
Re: Multiple Records [message #135955 is a reply to message #135890] Mon, 05 September 2005 02:34 Go to previous message
Leo007
Messages: 15
Registered: June 2005
Junior Member
Hi Samit gandhi,

try to set:
GO_BLOCK('CONTROL');
GO_ITEM('CONTROL.EDIT');

before
OPEN C1;



Leo
Previous Topic: FRM-40212
Next Topic: interview questions
Goto Forum:
  


Current Time: Thu Sep 19 23:34:12 CDT 2024