Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing data block as a variable

User_PN9GPOct 21 2016 — edited Oct 21 2016

Hello,

I'm using Oracle Forms 10g and I have a PRE-INSERT-Trigger each on 7 structurally identical data blocks (block_1 ... block_7).

Each of these triggers does essentially the same, the only difference being the data block used.

I would like to write a procedure and pass the data block as a variable but I don't know

1) which data type to use

2) how to assign values to the fields of the data block or read their current values (e.g. block_1.field_1 := value)

I thought of passing the name of the data block as a string and then using GO_BLOCK( block_name ) and then querying the SYSTEM.CURSOR_BLOCK but then I still don't know how to address the fields.

Is there a way to accomplish that task nicely?

Any help is appreciated.

Thanks in advance.

This post has been answered by Andreas Weiden on Oct 21 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2016
Added on Oct 21 2016
1 comment
730 views