Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSTab |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getTab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a JSTab instance representing the tab which has the specified name. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} name – The name of the tab that should be returned. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns 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) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSTab[] |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getTabs |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns an array of JSTab instances holding the tabs of the tab panel. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns 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) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| UUID |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getUUID |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns the UUID of this component. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns UUID |
|
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 |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSTab |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newTab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Adds a new tab with the text label and JSForm. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {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 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', 'example_data', 'parent_table', 'null', false, 640, 480);
// Create a first child form.
var childOne = solutionModel.newForm('childOne', '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','example_data','parent_table','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', '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 |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSTab |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newTab |
Span |
---|
| (name, text, form, relation) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated). |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {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 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', 'example_data', 'parent_table', 'null', false, 640, 480);
// Create a first child form.
var childOne = solutionModel.newForm('childOne', 'example_data', 'child_table', 'null', false, 400, 300);
|
|
|
|
| childTwomyimageIMAGEMEDIA100tabpanelandaddtwotabs it,with twoformstabPanelformnewTabPaneltabs 10, 10, 620, 460);
tabPanel.newTab('tab1', 'Child Two', childOne, parentToChild); // The first form uses the relation.
tabPanel.newTab('tab2', 'Child Two', childTwo);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeTab|class=node}{tr:id=name}{td}h6.removeTab{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeTab{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeTab_des|text=|trigger=button}{sub-section}{sub-section:removeTab_des|trigger=none|class=sIndent}Removes the tab with the specified name from the tab panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeTab_snc|text=|trigger=button}{sub-section}{sub-section:removeTab_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeTab_prs|text=|trigger=button}{sub-section}{sub-section:removeTab_prs|trigger=none|class=sIndent}\{[String]} name -- the name of the tab to be removed
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeTab_ret|text=|trigger=button}{sub-section}{sub-section:removeTab_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeTab_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeTab_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeTab_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeTab_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeTab_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeTab_sam|trigger=none}{code:language=javascript}'example_data','parent_table','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', '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) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| removeTab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Removes the tab with the specified name from the tab panel. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} name – the name of the tab to be removed |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
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');
|
|
|
|
| {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |