Hi, this one has me really stumped. It's in Oracle Forms 6i.
When I ask to commit changes to 2 blocks conveying some information, it's prompting me twice to save changes. I need to only have it prompt once.
I have 2 data blocks displaying information for a marker (I work for a Uni). The first block displays ID and Name, the second block (on the same area) displays their contact details.
When Key-Nxtblk is triggered, I currently check if anything has changed, if so, I do this:
The middle two lines seem to add the 2nd prompt to commit, but I Can find no other way to execute_query to the 2nd block if you click no on the prompt.
Any suggestions would be appreciated,
Thanks in advance.
Chris
Note: I changed the values in "go_block" for this post, so that is not an error there.
When I ask to commit changes to 2 blocks conveying some information, it's prompting me twice to save changes. I need to only have it prompt once.
I have 2 data blocks displaying information for a marker (I work for a Uni). The first block displays ID and Name, the second block (on the same area) displays their contact details.
When Key-Nxtblk is triggered, I currently check if anything has changed, if so, I do this:
Code:
clear_block(ask_commit);
execute_query;
go_block(block2);
execute_query;
go_block(nextblock);
execute_query;
Any suggestions would be appreciated,
Thanks in advance.
Chris
Note: I changed the values in "go_block" for this post, so that is not an error there.