Consultor Eletrônico



Kbase P28212: How to change a property of a  Dynamic SmartDataBrowser that
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   24/07/2003
Status: Unverified

GOAL:

How to change a property of a  Dynamic SmartDataBrowser that is located in a SmartFolder page

FIX:

Until the page where is located the Dynamic SmartDataBrowser is not initialized you cannot change property of it.
So the right place to put the the code to change an attribute of it is in a override of Changepage procedure. So you have to:

1- Create a new override procedure for Changepage
2- Write a code like this in it:

/* Code placed here will execute PRIOR to standard behavior. */
RUN SUPER.

/* Code placed here will execute AFTER standard behavior. */

/* let say that you want to change an attribute of the dynamic*/
/* browse that is in page 2 */
IF DYNAMIC-FUNCTION('getCurrentPage':U) = 2 Then
/* let's change the position of the Dyn SBO */
RUN repositionObject IN h_dynbrowser ( 1.43 , 1.00 ) NO-ERROR.

END PROCEDURE.