GetCtrlTemplate Method

The GetCtrlTemplate method gets the template for a control, and then uses values from this template to create an object. It uses values from this template to set the default values and the format for the property set that this control uses. It returns nothing. It uses the following syntax:

GetCtrlTemplate ("control_name", "display_name", consts.get( "control_type" ), 
column_index); 

where:

  • control_name specifies the name of the control.

  • display_name specifies the label that Siebel Open UI displays in the client for this control.

  • control_type specifies the type of SWE control, such as SWE_CTRL_TEXTAREA. You can specify one of the following values:

    • SWE_CTRL_URL

    • SWE_CTRL_TEXTAREA

    • SWE_CTRL_TEXT

    • SWE_CTRL_DATE_TZ_PICK

    • SWE_CTRL_DATE_TIME_PICK

    • SWE_CTRL_DATE_PICK

    • SWE_CTRL_CHECKBOX

    • SWE_CTRL_CALC

    • SWE_CTRL_COMBOBOX

    • SWE_CTRL_PWD

  • column_index is an integer that specifies the physical location in the list control.

For example, the following code gets the template for the TestEdit control:

GetCtrlTemplate ("TestEdit", "Test Edit", consts.get( "SWE_CTRL_TEXTAREA" ), 1);