Skip to end of metadata
Go to start of metadata



Property Summary
String countDataProviderID
This dataprovider's value will be presented as a 'count bubble' in each item of the list.
String dataIconDataProviderID
The predefined icon of this data-provider will appear on items in the list; if not specified, 'dataIconType' will be used instead.
String dataIconType
This predefined icon will appear on items in the list if 'dataIconDataProviderID' is not set.
String headerDataProviderID
The text of this data-provider will appear on top of the inset list; if not specified, 'headerText' will be used instead.
String headerStyleClass
The styleClass of the list header.
String headerText
This text will appear on top of the inset list if 'headerDataProviderID' is not set.
String listStyleClass
The styleClass of the list.
String name
The name of this inset list.
JSMethod onAction
This action will be executed when an item in the list is clicked.
String relationName
Name of the relation to be used by the inset list.
String subtext
This text will appear as the secondary (smaller) text of items in the list if 'subtextDataProviderID' is not set.
String subtextDataProviderID
The text of this data-provider will appear as the secondary (smaller) text of items in the list; if not specified, 'subtext' will be used instead.
String text
This text will appear as the main text of items in the list if 'textDataProviderID' is not set.
String textDataProviderID
The text of this data-provider will appear as the main text of items in the list; if not specified, 'text' will be used instead.
Number x
The x coordinate of the component on the form.
Number y
The y coordinate of the component on the form.



Property Details

countDataProviderID

This dataprovider's value will be presented as a 'count bubble' in each item of the list.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

dataIconDataProviderID

The predefined icon of this data-provider will appear on items in the list; if not specified, 'dataIconType' will be used instead.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

dataIconType

This predefined icon will appear on items in the list if 'dataIconDataProviderID' is not set.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

headerDataProviderID

The text of this data-provider will appear on top of the inset list; if not specified, 'headerText' will be used instead.

Returns

Sample

var insetList = jsform.getInsetList('il1');

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.name = 'il2';
 

headerStyleClass

The styleClass of the list header. Can have values from 'a' to 'e'.

Returns

Sample

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.headerStyleClass = 'e';
 

headerText

This text will appear on top of the inset list if 'headerDataProviderID' is not set.

Returns

Sample

var insetList = jsform.getInsetList('il1');

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.name = 'il2';
 

listStyleClass

The styleClass of the list. Can have values from 'a' to 'e'.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.listStyleClass = 'e';
 

name

The name of this inset list.

Returns

Sample

var insetList = jsform.getInsetList('il1');

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.name = 'il2';
 

onAction

This action will be executed when an item in the list is clicked.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

relationName

Name of the relation to be used by the inset list.

Returns

Sample

var insetList = jsform.getInsetList('il1');

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.name = 'il2';
 

subtext

This text will appear as the secondary (smaller) text of items in the list if 'subtextDataProviderID' is not set.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

subtextDataProviderID

The text of this data-provider will appear as the secondary (smaller) text of items in the list; if not specified, 'subtext' will be used instead.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

text

This text will appear as the main text of items in the list if 'textDataProviderID' is not set.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

textDataProviderID

The text of this data-provider will appear as the main text of items in the list; if not specified, 'text' will be used instead.

Returns

Sample

var list = solutionModel.getForm('created_by_sm_1').getInsetList(solutionModel.getForm('il1');

var newList = solutionModel.newListForm('created_by_sm_3', list.dataSource, list.textDataProviderID);
newList.onAction = newList.getForm().newMethod('function aMethod(event){application.output("Hello world!");}');
 

x

The x coordinate of the component on the form.

Returns

Sample

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.x = 90;
newInsetList.y = 90;
application.output('location of newInsetList: ' + newInsetList.x + ', ' + newInsetList.y);
 

y

The y coordinate of the component on the form.

Returns

Sample

var newInsetList = jsform.newInsetList(8,insetList.dataSource,insetList.relationName,insetList.headerText,insetList.textDataProviderID);
newInsetList.x = 90;
newInsetList.y = 90;
application.output('location of newInsetList: ' + newInsetList.x + ', ' + newInsetList.y);
 



  • No labels