Progress
ADM 2 Guide
Functions for Accessing Properties
The following property functions are useful for accessing SmartObject properties from application code:
- The assignLinkProperty function sets a property value in one or more objects at the other end of the specified link. It is defined as follows:
For example, the following code in a SmartDataObject uses assignLinkProperty to set the DataModified property to yes in all of its Data Targets:
- The linkProperty function returns the value of the specified property in the single object at the other end of the specified link. It is defined as follows:
For example, the following code in a visual object (a SmartDataViewer or a SmartDataBrowser) uses linkProperty to get the current page of the object’s container:
- The propertyType function returns the data type of the specified property. It is defined as follows:
For example, the following code in a SmartDataObject gets the data type of its DataQueryBrowsed property:
Note that this function returns data types only for properties for which a setpropname function is defined.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |