when_new_form_instance (merged 2) [message #547819] |
Sat, 17 March 2012 01:18 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/c86fedf38fdae46febdd4144bf66e65d?s=64&d=mm&r=g) |
furqan
Messages: 115 Registered: January 2012 Location: Hyderabad
|
Senior Member |
|
|
hi..
i want to display records from a table in tabular form with
one condition.
i made a tabular form.and in WHEN-NEW-FORM-INSTANCE i write
DECLARE
CURSOR hascr IS
SELECT
BILL_ID,
BILL_DATE,
MAT_CODE,
PLACE_FROM,
PLACE_TO,
SEND_QTY,
TC_NO,
TRANSACT_NOTE,
BILL_TYPE
FROM SHIP_DTL WHERE BILL_TYPE='Send To Other Store';
BEGIN
OPEN hascr;
FETCh hascr INTO :SHIP_DTL.BILL_ID,
:SHIP_DTL.BILL_DATE,
:SHIP_DTL.MAT_CODE,
:SHIP_DTL.PLACE_FROM,
:SHIP_DTL.PLACE_TO,
:SHIP_DTL.SEND_QTY,
:SHIP_DTL.TC_NO,
:SHIP_DTL.TRANSACT_NOTE,
:SHIP_DTL.BILL_TYPE;
CLOSE hascr;
END;
when i run the form its not showing any errors but displaying only one record.
that is the first record whose bill_type is send to other store.
am i using the right trigger or my select statement has problem.??
please suggest ......
|
|
|
|
|
|
|
|
|
|
|
|