Keeping a Page On-Screen After Clicking “Save”

Solution Approach

You can keep the same page on-screen after clicking the “save” button by specifying the URL in the save button’s Properties dialog.

Procedure

Step 1:  Open the page’s Properties dialog and select the OK or Save button code generation tag.

Step 2:  Set URL to Back to take the application user back to the previous page.

Tag Property

Setting

Code generation tag

Save

Button Text

Save

Validate page data

True

Button Command

Save data on page

This indicates to the application that data must be added or updated in the database.  Do not change the command name from Save data on page, otherwise the updated data will not be saved in the database.

URL

Back

Optionally, you can specify the URL of the current page to refresh the browser with the same page.

Step 3:  Build and run the application.