clear form after commit [message #242752] |
Tue, 05 June 2007 00:15  |
mestoganesh
Messages: 16 Registered: May 2007 Location: Chennai
|
Junior Member |
|
|
hello experts,
I am using forms9i. i used master detail in one form. I have to clear the form(detail as well as master form)after save (commit),just like reload or refresh form. please give your valuable points for my project.
thanks in advance,
|
|
|
|
|
|
|
|
Re: clear form after commit [message #242898 is a reply to message #242863] |
Tue, 05 June 2007 08:04   |
shyam.2384
Messages: 16 Registered: March 2007 Location: BHILAI
|
Junior Member |
|
|
mestoganesh wrote on Tue, 05 June 2007 05:51 | hello shyam,
i under stand the clear_form function, but i dont know in which trigger i called clear_form function. please share your valuable idea..
Thanks,
|
I have created a button named save in which i wrote following coding
SET_ALERT_PROPERTY(ALT_ID,ALERT_MESSAGE_TEXT,'Sure u want to save !');
VAR := SHOW_ALERT(ALT_ID);
IF VAR = ALERT_BUTTON1 THEN
COMMIT_FORM;
if form_success then
GO_ITEM('TOOLBAR.BTN_ADD');
clear_form(no_validate,full_rollback); EXECUTE_TRIGGER('WHEN-NEW-FORM-INSTANCE');
else
Set_Alert_Property('alert_ok',Alert_Message_Text,'RECORD CANNOT BE SAVED !');
VAR := show_alert('alt_ok');
GO_ITEM('TOOLBAR.BTN_EXT');
raise form_trigger_failure;
End if;
I think this will help u....
[Updated on: Tue, 05 June 2007 08:05] Report message to a moderator
|
|
|
|