GetConfigurationsForComponent method: DZComponentConfig class
Syntax
GetConfigurationsForComponent()
Description
Use the GetConfigurationsForComponent method to retrieve all existing drop zone information and configurations for the component as an array of DZConfig objects. This array includes drop zones that are configured with subpages and drop zones that are not yet configured. The array is available through the arrDZInfo property.
Parameters
None.
Returns
None.
Example
import PTCS_DROPZONE:*;
Local PTCS_DROPZONE:DZComponentConfig &dzCompConfig = create PTCS_DROPZONE:DZComponentConfig("EX_EXP_SHEET_FL", "EX_ADMIN_EXPENSE_FL", "GBL");
&dzCompConfig.GetConfigurationsForComponent();
Local integer &i;
For &i = 1 To &dzCompConfig.arrDZInfo.Len
/* Do something with the fetched drop zones. */
Local PTCS_DROPZONE:DZConfig &assignDZInfo = &dzCompConfig.arrDZInfo [&i];
If &assignDZInfo.GetSubpageName() = "" Then
If &assignDZInfo.SetSubpageName("MY_SUBPAGE_SBF") Then
Local boolean &bRet = &assignDZInfo.Save();
Else
/* Indicate that the set operation failed. */
End-If;
End-If;
End-For;
Related Topics