Kbase P12243: How to pass dynamic property values between SmartObjects
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
GOAL:
How to pass dynamic property values between SmartObjects
GOAL:
How to pass variables between Smart Objects
FACT(s) (Environment):
Progress 9.x
FIX:
To set and get dynamic properties, the ADM2 has the four dynamic-functions:
1. setUserProperty()
2. getUserProperty(),
3. assignLinkProperty()
4. linkProperty().
1. setUserProperty("<propertyName>", "<propertyValue>")
This function receives the property name and the property value as parameters and sets it in the ADM-DATA attribute. Since the property name is a string, this name could be a variable, field value, object screen-value, etc.
2. getUserProperty("<propertyName>").
Returns the value for the property supplied as a parameter.
3. assignLinkProperty("<linkName>", "<propertyName>", "<propertyValue>")
Sets a property value through a link name. assignLinkProperty is useful when you don't have the target handle, as it sets the property to every object with the specified link. If it is necessary to set a property to each data-target for a specified SmartDataObject (SDO), the statement would be:
DYNAMIC-FUNCTION('assignLinkProperty':U IN h_dCust,
'data-target', 'propName', 'propValue').
4. linkProperty("<linkName>", "<PropertyName>").
Gets the property value through a link name. It returns the value of the property name through the link name supplied as the first parameter.