error frm-40803 [message #640866] |
Thu, 06 August 2015 03:45 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/162e216f329427776c437d2638523b1d?s=64&d=mm&r=g) |
sanodani
Messages: 98 Registered: October 2014
|
Member |
|
|
Hallo,
I have master and 2-detail blocks,
in detail block, i have WNRI- Trigger, which is as below, and these two blocks display records when the criteria matched (which is defined in WNRI in master block), either just in one block or in both blocks, as per the matched criteria.
and when the search criteria has matched just one and display the record in the respective blocks, but the problem i am having is, when i click to the above block in ID field then, it gives error:
"FRM-41803: No previous record to copy value from "
though the criteria is matched just the block below. I actually looking for that, when just criteria for block2 matched then it should display records in block 2 and the block1 should be deactivate or not allowed to click.
how can i solve this error? help please.
in detail blk:
if :system.record_status = 'NEW' then
duplicate_record;
set_block_property('block1', INSERT_ALLOWED, PROPERTY_TRUE);
:block1.id := null;
end if;
regards,
|
|
|
|
|
|