operation attach
Defines the component behavior for a contained DSP instance after it is attached to a parent DSP.
operation attach {scopeBlock} {variablesBlock} Your code here ... end
Use
Dynamic Server Pages only.
Description
The attach operation is useful for refreshing the contents of the child DSP before it is displayed. For example, you can set the default data values, issue a message, or apply styles.
A DSP that is contained in another DSP by means of the DspContainer widget is attached to the parent DSP when the component instance name is assigned to the DspContainer field. If the DSP component instance is already available on the browser and the attach operation is defined, the attach operation is fired instead of the exec operation.
Following this, the attached component is displayed, and the attach trigger is executed.
The attach operation can only be implemented in a contained DSP component.
Note: You can define scope and variables in an attach operation, but you cannot define parameters.
operation attach partner web FIELD1 = "This is the %%$componentname%%% component, with instance name %%$instancename%%%" end