Get the message "do you want to save the changes you made?

Hi all

I activated the zoom for the standard form of profiles (applications developer) open a new custom form that is used to enter additional information for profiles.
Two fields profile option id and the profile on the new form option name should get the value in the calling form. Based on these values the new form should show the custom intermediate table data if the record exists.
If there is no data in this profile of the user must be able to enter information and create new record and commit to the DB table.
If there is data in the file should be displayed and if the user updates of any field, you have to refresh the record in the DB table.
I created two new parameters in the new profile_option_id and profile_option_name form which gets its value from the calling form through the custom.pll changes.
Now, when the new form opens, I see the 2 default fields. But it pops up the message "do you want to save the changes you made?
If I say no, then the data are displayed for the existing record. If I click Cancel, and then nothing happens.
Please help me to understand the reason for the pop-up message when the form is opened.
I changed only a TIME-NEW-FORM-INSTANCE trigger to the new form.

Start
If (: parameter.profile_option_id is not null) and (: parameter.profile_option_name is not null)
then
set_block_property ('NAPP_USR_PRF_OPTIONS_TBL', DEFAULT_WHERE, 'profile_option_id =' |: parameter.profile_option_id |) "(ET profile_option_name = ''' ||: parameter.profile_option_name || ''');"
: NAPP_USR_PRF_OPTIONS_TBL.profile_option_id: =: parameter.profile_option_id;
: NAPP_USR_PRF_OPTIONS_TBL.profile_option_name: =: parameter.profile_option_name;
end if;
GO_BLOCK ('NAPP_USR_PRF_OPTIONS_TBL');
execute_query();
end;

I use form 10g and DB version is 11.2.0.2.0

Thank you
Chrystel

Hi Olivier,.

: NAPP_USR_PRF_OPTIONS_TBL.profile_option_id: =: parameter.profile_option_id;
: NAPP_USR_PRF_OPTIONS_TBL.profile_option_name: =: parameter.profile_option_name;

GO_BLOCK ('NAPP_USR_PRF_OPTIONS_TBL');
execute_query();

After having assigned the value in any field and then using exectue_query triggers the message.
If option 1 is...
If you need to assign then first use execute_query; then assign a value

Option 2 is...
Use commit_form and then use execute_query;

I hope this helps...

Hamid

Tags: Oracle Development

Similar Questions

Maybe you are looking for