Progress
ADM 2 Reference


editInstanceProperties (smart.p)

Runs the dialog to get run-time property settings.

Parameters: None

Returns: Nothing (procedure)

Notes:

Examples:

PROCEDURE editInstanceProperties: 
/* Purpose: Display a different Instance Property Dialog if this object 
   is in a Template. Use the normal dialog if this is in a standard 
   Master file. */ 
DEFINE VARIABLE cInfo AS CHARACTER NO-UNDO. 
/* use the AppBuilder API to determine if this instance is in a 
   Template. */ 
RUN adeuib/_uibinfo.p (?, ‘HANDLE ‘:U + STRING(THIS-PROCEDURE), ‘TEMPLATE’:U, 
OUTPUT 
cInfo). 
IF cInfo = ‘yes’:U THEN   /* Use a special attribute dialog for 
                             templates. */ 
RUN special.w (INPUT THIS-PROCEDURE). 
ELSE                      /* Dispatch standard ADM event. */ 
  RUN SUPER. 
END PROCEDURE. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095