-
Hello all,
How to clear 2 blocks present on the same canvas canvas using clear_block built_in....Also it shouldnt ask me for "Do u want to save the records?"
I used ...
clear_block(no_validate);
this will only clear one block in that canvas ..how do I clear the other block present in the same canvas without asking for prompting me to save?
Please at me know at the earliest.
Thanks
saritha.
-
Hi,
Nothing to worry much. Try this:
GO_BLOCK(first_block) ;
CLEAR_BLOCK(NO_VALIDATE) ;
GO_BLOCK(second_block) ;
CLEAR_BLOCK(NO_VALIDATE) ;
If you are having a Master-Detail relationship between these two blocks, then be sure to clear the details block first and then the master block.
Hope this helps.
-
And after clearing the second block you may want to come back to the first block by adding another line:
go_block('first_block');
Otherwise the control stays in the second block.
-
in order to clear 2 blocks present on the same canvas
u can write a when-button-pressed trigger in which the code will be
Lets assume that the first block name is B0 and the second one is B1.
Then in that case, just write
Go_Block('B0');
clear_block(no_validate);
Go_Block('B1');
clear_block(no_validate);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|