Consultor Eletrônico



Kbase 19622: How to stop users changing page in smartfolder before update
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   23/03/2000
This document applies to: ADM2
Progress version: V9 and up
Kbase Number: 19622

SUMMARY:

This document describes how to prevent users to change page of a smart folder without doing update on first page.
It assumes you have a smartwindow with a smartdataobject, smartfolder with a smartviewer on each page and a smartupdatepanel on page 0.

WHAT YOU NEED TO DO:

- Create a new procedure in your application as an override
- Click on SelectPage
- Add following code to it before the standard behavior i.e., before the line, RUN SUPER( INPUT piPageNum).

IF DYNAMIC-FUNCTION('getPanelState':U IN h_pupdsav) ="disable-all"
THEN DO:
MESSAGE "Please update the first viewer." VIEW-AS ALERT-BOX.
END.
ELSE

Now when you run your application and click on another tab of the smartfolder, the above message should pop up.