Colgroup Tag |
---|
Table Body (tbody) |
---|
id | getDesignTimePropertycolumnpadding0px | 100% |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDesignTimeProperty |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getDesignTimeProperty |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get a design-time property of an element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var frm = solutionModel.getForm('orders')
var fld = frm.getField('fld')
var prop = fld.getDesignTimeProperty('myprop') |
|
|
|
|
Table Body (tbody) |
---|
id | getDesignTimePropertyNames |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDesignTimePropertygetDesignTimePropertyNames |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getDesignTimePropertygetDesignTimePropertyNames |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get a the design-time property properties of an element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var frm = solutionModel.getForm('orders')
var fld = frm.getField('fld')
var proppropNames = fld.getDesignTimePropertygetDesignTimePropertyNames('myprop')
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns a JSTab instance representing the tab which has the specified name. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name – - The name of the tab that should be returned. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSTab – - A JSTab instance represented the requested tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne);
tabPanel.newTab('tab2', 'Child Two', childTwo);
tabPanel.getTab('tab2').text = 'Child Two Changed';
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns an array of JSTab instances holding the tabs of the tab panel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSTab[] – - An array of JSTab instances representing all tabs of this tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne);
tabPanel.newTab('tab2', 'Child Two', childTwo);
var tabs = tabPanel.getTabs();
for (var i=0; i<tabs.length; i++)
application.output("Tab " + i + " has text " + tabs[i].text);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the UUID of this component. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var button_uuid = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());
|
|
|
|
|
Table Body (tbody) |
---|
id | newTab-String_String_JSForm |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a new tab with the text label and JSForm. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name – - The name of the new tab. {String} text – - The text to be displayed on the new tab. {JSForm} form – - The JSForm instance that should be displayed in the new tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSTab – - A JSTab instance representing the newly created and added tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
// Create a parent form.
var form = solutionModel.newForm('parentForm', 'db:/example_data/parent_table', null, false, 640, 480);
// Create a first child form.
var childOne = solutionModel.newForm('childOne', 'db:/example_data/child_table', null, false, 400, 300);
childOne.newField('child_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
// Create a relation to link the parent form to the first child form.
var parentToChild = solutionModel.newRelation('parentToChild','db:/example_data/parent_table','db:/example_data/child_table',JSRelation.INNER_JOIN);
parentToChild.newRelationItem('parent_table_id','=','child_table_parent_id');
// Create a second child form.
var childTwo = solutionModel.newForm('childTwo', 'db:/example_data/my_table', null, false, 400, 300);
childTwo.newField('my_table_image', JSField.IMAGE_MEDIA, 10, 10, 100, 100);
// Create a tab panel and add two tabs to it, with the two child forms.
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne, parentToChild); // The first form uses the relation.
tabPanel.newTab('tab2', 'Child Two', childTwo);
|
|
|
|
|
Table Body (tbody) |
---|
id | newTab-String_String_JSForm_Object |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(name, text, form, relation) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name – - The name of the new tab. {String} text – - The text to be displayed on the new tab. {JSForm} form – - The JSForm instance that should be displayed in the new tab. {Object} relation – - A JSRelation object that relates the parent form with the form that will be displayed in the new tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSTab – - A JSTab instance representing the newly created and added tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
// Create a parent form.
var form = solutionModel.newForm('parentForm', 'db:/example_data/parent_table', null, false, 640, 480);
// Create a first child form.
var childOne = solutionModel.newForm('childOne', 'db:/example_data/child_table', null, false, 400, 300);
childOne.newField('child_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
// Create a relation to link the parent form to the first child form.
var parentToChild = solutionModel.newRelation('parentToChild','db:/example_data/parent_table','db:/example_data/child_table',JSRelation.INNER_JOIN);
parentToChild.newRelationItem('parent_table_id','=','child_table_parent_id');
// Create a second child form.
var childTwo = solutionModel.newForm('childTwo', 'db:/example_data/my_table', null, false, 400, 300);
childTwo.newField('my_table_image', JSField.IMAGE_MEDIA, 10, 10, 100, 100);
// Create a tab panel and add two tabs to it, with the two child forms.
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne, parentToChild); // The first form uses the relation.
tabPanel.newTab('tab2', 'Child Two', childTwo);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
putDesignTimeProperty |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| putDesignTimeProperty |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set a design-time property of an element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var frm = solutionModel.getForm('orders')
var fld = frm.getField('fld')
fld.putDesignTimeProperty('myprop', 'strawberry')
|
|
|
|
|
Table Body (tbody) |
---|
id | removeDesignTimeProperty |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
removeDesignTimeProperty |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| removeDesignTimeProperty |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Clear a design-time property of an element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var frm = solutionModel.getForm('orders')
var fld = frm.getField('fld')
fld.removeDesignTimeProperty('myprop')
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Removes the tab with the specified name from the tab panel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name – - the name of the tab to be removed |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var tabPanel = form.newTabPanel('tabs', 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne);
tabPanel.newTab('tab2', 'Child Two', childTwo);
tabPanel.removeTab('tab1');
|
|
|
|
|
|