Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the configuration key that is assigned to the control.
Syntax
public ConfigurationKeyId configurationKey([ConfigurationKeyId value])
Run On
Client
Parameters
- value
Type: ConfigurationKeyId Extended Data Type
A configurationKeyId system data type that specifies the configuration key ID.
Return Value
Type: ConfigurationKeyId Extended Data Type
The identifier of the configuration key that is assigned to the control.
Remarks
The configuration key is used to determine whether this control can be displayed. If the configuration key is disabled in the system, the control is not displayed in the form.
Examples
The following example shows a call to the configurationKey method to assign the Bank configuration key to the form list control.
static void createForm2(Args _args)
{
Args args;
Form form;
FormRun formRun;
FormBuildDesign formBuildDesign;
FormBuildDataSource formBuildDataSource;
FormBuildListControl formBuildListControl;
FormListControl formListControl;
int idx4;
DictTable dictTable;
CustTable custTable;
configurationKeyId ID;
// Create the form header.
form = new Form();
// Add data sources to the form.
dictTable = new DictTable(tableNum(custTable));
formBuildDataSource = form.addDataSource(dictTable.name());
formBuildDataSource.table(dictTable.id());
// Create the form design.
formBuildDesign = form.addDesign("Design");
formBuildDesign.caption("myForm");
// Add a form list control.
formBuildListControl =
formBuildDesign.addControl(FormControlType::ListView,"List");
idx4 = formBuildListControl.id();
args = new Args();
args.object(form);
// Create the run time-form.
formRun = classfactory.formRunClass(args);
formRun.run();
formRun.detach();
formListControl = formRun.control(idx4);
ID = formListControl.configurationKey(configurationKeyNum(Bank));
}