Child pages
  • Globals

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property SummerySummary{th}{tr}{tbody}{tr}{td}[Array]{td}{td}[#allmethods]
Get all global script names of the current solution.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#allrelations]
Get all global relation names of the current solution.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#allvariables]
Get all global variable names of the current solution.{td}{tr}{tbody}{tbody}{tr}{td}[controller]{td}{td}[#currentcontroller]
Get the controller of the top level form in the currently active dialog.{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=allmethods|class=node}{tr:id=name}{td}h6.allmethods{td}{tr}{tr:id=des}{td}{sub-section:allmethods_des|text=|trigger=button}{sub-section}{sub-section:allmethods_des|trigger=none|class=sIndent}Get all global script names of the current solution.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:allmethods_snc|text=|trigger=button}{sub-section}{sub-section:allmethods_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:allmethods_prs|text=|trigger=button}{sub-section}{sub-section:allmethods_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:allmethods_ret|text=|trigger=button}{sub-section}{sub-section:allmethods_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:allmethods_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allmethods_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:allmethods_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allmethods_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:allmethods_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allmethods_sam|trigger=none}{code:language=javascript}
var allMethodNames = globals.allmethods;
application.output("There are " + allMethodNames.length + " global methods.");
for (var i=0; i<allMethodNames.length; i++)
	application.output(allMethodNames[i]);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=allrelations|class=node}{tr:id=name}{td}h6.allrelations{td}{tr}{tr:id=des}{td}{sub-section:allrelations_des|text=|trigger=button}{sub-section}{sub-section:allrelations_des|trigger=none|class=sIndent}Get all global relation names of the current solution.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:allrelations_snc|text=|trigger=button}{sub-section}{sub-section:allrelations_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:allrelations_prs|text=|trigger=button}{sub-section}{sub-section:allrelations_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:allrelations_ret|text=|trigger=button}{sub-section}{sub-section:allrelations_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:allrelations_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allrelations_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:allrelations_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allrelations_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:allrelations_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allrelations_sam|trigger=none}{code:language=javascript}
var allRelationNames = globals.allrelations;
application.output("There are " + allRelationNames.length + " global relations.");
for (var i=0; i<allRelationNames.length; i++)
	application.output(allRelationNames[i]);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=allvariables|class=node}{tr:id=name}{td}h6.allvariables{td}{tr}{tr:id=des}{td}{sub-section:allvariables_des|text=|trigger=button}{sub-section}{sub-section:allvariables_des|trigger=none|class=sIndent}Get all global variable names of the current solution.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:allvariables_snc|text=|trigger=button}{sub-section}{sub-section:allvariables_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:allvariables_prs|text=|trigger=button}{sub-section}{sub-section:allvariables_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:allvariables_ret|text=|trigger=button}{sub-section}{sub-section:allvariables_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:allvariables_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allvariables_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:allvariables_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allvariables_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:allvariables_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:allvariables_sam|trigger=none}{code:language=javascript}
var allVarNames = globals.allvariables;
application.output("There are " + allVarNames.length + " global variables.");
for (var i=0; i<allVarNames.length; i++)
	application.output(allVarNames[i]);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=currentcontroller|class=node}{tr:id=name}{td}h6.currentcontroller{td}{tr}{tr:id=des}{td}{sub-section:currentcontroller_des|text=|trigger=button}{sub-section}{sub-section:currentcontroller_des|trigger=none|class=sIndent}Get the controller of the top level form in the currently active dialog.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:currentcontroller_snc|text=|trigger=button}{sub-section}{sub-section:currentcontroller_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:currentcontroller_prs|text=|trigger=button}{sub-section}{sub-section:currentcontroller_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:currentcontroller_ret|text=|trigger=button}{sub-section}{sub-section:currentcontroller_ret|trigger=none|class=sIndent}[controller]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:currentcontroller_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:currentcontroller_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:currentcontroller_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:currentcontroller_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:currentcontroller_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:currentcontroller_sam|trigger=none}{code:language=javascript}
application.output("Current controller is: " + currentcontroller.getName());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}