DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: TO CLEAR 2 BLOCKS ON THE SAME CANVAS.

  1. #1
    Join Date
    Jun 2001
    Posts
    109

    Question

    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.

  2. #2
    Join Date
    Sep 2000
    Posts
    47
    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.



  3. #3
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    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.

  4. #4
    Join Date
    Apr 2001
    Posts
    51

    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
  •  


Click Here to Expand Forum to Full Width