Home » Developer & Programmer » Forms » clear_block
clear_block [message #604928] Mon, 06 January 2014 03:53 Go to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi all,
Suppose ,If i do not write the clear_block after go_block what is happen here i mean , is this mandatory and if i write so, what is the process? Please suggest?
GO_BLOCK('DETAIL');
      CLEAR_BLOCK;


Thank you
Re: clear_block [message #604930 is a reply to message #604928] Mon, 06 January 2014 04:09 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
Your question is meaningless unless you tell us what trigger the code is in and what you want it to.
Re: clear_block [message #604931 is a reply to message #604930] Mon, 06 January 2014 04:16 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi cookiemonster,

Quote:
Your question is meaningless unless you tell us what trigger the code is in and what you want it to.

In The when-button-pressed Trigger.

what is the use of clear_block()built-in after the go_block()?


Thank you.
Re: clear_block [message #604932 is a reply to message #604931] Mon, 06 January 2014 04:21 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
it does exactly what it says it does. I'm really not sure what you are confused about.
If you're not sure what a particular built-in does oracle forms help contains comprehensive descriptions of all of them.
Re: clear_block [message #604935 is a reply to message #604932] Mon, 06 January 2014 05:14 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi cookiemonster,

what is the job of clear_block here or why to used ? , could you please suggest me..

IF :System.Block_Status = 'CHANGED' THEN 
 Commit_Form; 
END IF; 
Clear_Block; 


Thank You
Re: clear_block [message #604937 is a reply to message #604935] Mon, 06 January 2014 05:21 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
I don't know anything about your form, so how would I, or anyone else out here on the internet, know why that clear_block is there?
Re: clear_block [message #604942 is a reply to message #604937] Mon, 06 January 2014 06:51 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It appears that this button is meant to save changes. Once it does that job, it also clears the block so that new data could be entered.

By the way, why don't you ask form's author?
Re: clear_block [message #605016 is a reply to message #604942] Mon, 06 January 2014 22:46 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
By the way, why don't you ask form's author?


I thought if not add clear_block after the go_block builtin what will happen..Ok, now i got very clear explanation on this ThanQ Very Much.. Smile
Re: clear_block [message #605062 is a reply to message #605016] Tue, 07 January 2014 04:23 Go to previous message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
mist598

I thought if not add clear_block after the go_block builtin what will happen


What prevented to comment CLEAR_BLOCK and run the form? You'd immediately see what happens.
Previous Topic: How To implement jre instead of jinit
Next Topic: show all records.
Goto Forum:
  


Current Time: Thu Mar 28 06:22:36 CDT 2024