Kbase P122746: How to access the mode of a SmartDataViewer or a SmartDataBrowser object?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/9/2007 |
|
Status: Unverified
GOAL:
How to access the mode of a SmartDataViewer or a SmartDataBrowser object?
GOAL:
How to get the mode of a SmartViewer from a displayFields override?
GOAL:
How to get the mode of a SmartBrowser from a displayFields override?
FIX:
Invoking the getObjectMode FUNCTION returns the mode of the object as a character value of "Modify", "Update" or "View". This function is defined in src\adm2\datavis.p procedure. For example:
1. The following statement messages the current mode of the SmartDataViewer, h_vCustomer, and the SmartDataBrowser, h_bCustomer, when executed from anywhere in the parent window:
MESSAGE
DYNAMIC-FUNCTION('getObjectMode':U IN h_vCustomer) "~n"
DYNAMIC-FUNCTION('getObjectMode':U IN h_bCustomer)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
2. The following statement messages the current mode of a SmartDataViewer, h_vCustomer, when executed from its displayFields override or any where else in the SmartDataViewer procedure:
MESSAGE
DYNAMIC-FUNCTION('getObjectMode':U IN THIS-PROCEDURE)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
3. The following statement messages the current mode of a SmartDataViewer, h_bCustomer, when executed from its displayFields override or any where else in the SmartDataViewer procedure:
MESSAGE
DYNAMIC-FUNCTION('getObjectMode':U IN THIS-PROCEDURE)
VIEW-AS ALERT-BOX INFO BUTTONS OK.