| Enabling all the chec kboxes when block is loaded in forms [message #572120] |
Thu, 06 December 2012 03:59  |
Nshan
Messages: 61 Registered: February 2009
|
Member |
|
|
Hi All,
My requirement is as below,
I have one main form and there is one button when i click on it, another form should be opened which should display multi records with check box for each record.
I have implemented so far. When the new form is opened by default all the records should be checked.
if user does not want some of them then it can be unchecked(This can done manually)..
I have put below code in when-new-block instance trigger
set_item_property('LOCKBOX_DETAILS.CB_SUBMIT', ENABLED, PROPERTY_TRUE);
It is not helping me. Unable to load the block with all the records checkboxes checked...
Any inputs on this please.
Thanks.
Nshan
|
|
|
|
|
|
|
|
| Re: Enabling all the chec kboxes when block is loaded in forms [message #572294 is a reply to message #572279] |
Mon, 10 December 2012 03:52   |
Nshan
Messages: 61 Registered: February 2009
|
Member |
|
|
I have done by looping through all the records as below,
DECLARE
l_total_rec NUMBER;
BEGIN
go_block('XX_FAIL_TRXN');
last_record;
l_total_rec := :system.cursor_record;
first_record;
FOR i IN 1..l_total_rec LOOP
go_record(i);
:XX_FAIL_TRXN.CB_SUC := 'Y';
END LOOP;
first_record;
END;
Thanks,
Nshan
|
|
|
|
|
|