Skip to end of metadata
Go to start of metadata

Refresh page Nov 15, 2019 14:55

Supported Clients
SmartClient WebClient NGClient MobileClient

Constants Summary
JSMethod COMMAND_DEFAULT Constants used for setting commands to "default".
JSMethod COMMAND_NONE Constant used for setting commands to "none".
Number DEFAULT Constant used in various places to set properties to their default value.
Number IGNORE Constant used to remove a component from the tab sequence or set form navigator to IGNORE value.
Number NONE Constant used in various places to set properties to "none".

Constants Details

COMMAND_DEFAULT

Constants used for setting commands to "default".

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var form = solutionModel.newForm('parentForm', 'db:/example_data/parent_table', null, false, 1200, 800);
form.onFindCmd = SM_DEFAULTS.COMMAND_DEFAULT; // This makes the find work like it does by default.

COMMAND_NONE

Constant used for setting commands to "none".

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var form = solutionModel.newForm('parentForm', 'db:/example_data/parent_table', null, false, 1200, 800);
form.onFindCmd = SM_DEFAULTS.COMMAND_NONE; // This disables the find on the form.

DEFAULT

Constant used in various places to set properties to their default value.

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var form = solutionModel.newForm('parentForm', 'db:/example_data/parent_table', null, false, 1200, 800);
form.navigator = SM_DEFAULTS.DEFAULT; // Show the default navigator on the form.

IGNORE

Constant used to remove a component from the tab sequence or set form navigator to IGNORE value.

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

// Create three fields. Based on how they are placed, by default they will come one
// after another in the tab sequence.
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var fieldTwo = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
var fieldThree = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 70, 100, 20);
// Set the third field come before the first in the tab sequence, and remove the 
// second field from the tab sequence.
fieldOne.tabSeq = 2;
fieldTwo.tabSeq = SM_DEFAULTS.IGNORE;
fieldThree.tabSeq = 1;

NONE

Constant used in various places to set properties to "none".

Returns

Supported Clients

SmartClient,WebClient,NGClient,MobileClient

Sample

var form = solutionModel.newForm('parentForm', 'db:/example_data/parent_table', null, false, 1200, 800);
form.navigator = SM_DEFAULTS.NONE; // Hide the navigator on the form.

  • No labels