Unable to display Do you want to save the changes you have made? message [message #458894] |
Wed, 02 June 2010 07:05 |
dhanasurya
Messages: 33 Registered: May 2010
|
Member |
|
|
Hi All,
I have one requirement.i.e I want to display 'Do you want to save the changes you have made?[YES/NO]' message when record status is changed.In my form if i enter some value to the actual qty(db item)
and press 'x' button it does't prompting 'Do you want to save the changes you have made?' message.
For displaying this message i have written following code in the APP_CUSTOM body:
IF (wnd = 'XXMZ_MRS_DET')
THEN
lv_wnd_stat := get_window_property('XXMZ_SUMMARY',VISIBLE);
if lv_wnd_stat = 'TRUE' THEN
IF :SYSTEM.form_status = 'CHANGED' THEN
CLEAR_BLOCK(ASK_COMMIT);
ELSE
CLEAR_BLOCK(no_validate);
END IF;
SET_WINDOW_PROPERTY ('XXMZ_DET', visible, property_false);
ELSE
app_window.close_first_window;
END IF;
if i write above code in the app_custom body it's prompting the above message.But if i click 'YES' it does't save the records?
why it's happening?
How can i save the records when i click 'yes'?
Anyone please help me out
Thanks,
|
|
|
|
Re: Unable to display Do you want to save the changes you have made? message [message #459033 is a reply to message #458897] |
Thu, 03 June 2010 02:07 |
dhanasurya
Messages: 33 Registered: May 2010
|
Member |
|
|
Hi,
Sorry for the late reply.
I have 3 windows in my form.IF I do any validation(like..change the db item value) at 3rd window it does't ask the message(Do you want to save the changes you have made?[YES/NO]') while closing the 3rd window.It is asking the message while closing the first window.
How can i display the message at 3rd window?
How can i write window logic in the app_custom body for the 3 windows?
Thanks,
|
|
|
|