2022.2

Table Of Contents
Expanded Script window
Whenexpanded,theScriptwindowreplacesallpartsofthewizardbelowtheSelectorbyaboxinwhich
thescriptcanbetyped.See"Writingyourownscripts"onpage368.
Foranoverviewofkeyboardshurtcutsthatcanbeusedinthisscripteditor,see"Keyboardshortcuts"
onpage502.
Chart Script dialog
TheChartScriptdialogspecifieswhichvariabledatawillbedisplayedinachartandshowsapreview
ofboththechart(ontherighthandside)andthedata(atthebottom).Thisdialogisoneofthepartsof
theInsertChartwizards.Itcanbereopenedbydouble-clickingtherelevantscriptintheScriptspane.
Formoreinformationaboutcharts,see:"Businessgraphics"onpage229.
ThesearetheoptionsintheChartScriptdialog:
l
Name:Thenameofthescript,makingiteasiertoidentifyit.
l
Selector:TheSelectororTexttoapplythescriptto.
l
Selector:UsesCSSselectorstofindtheelementtowhichthescriptapplies.(Seealso:
"SelectorsinOLConnect"onpage385.)
l
Text:Usestextasatriggerforthescript.Thescriptappliestoallinstancesofthetext
foundinthetemplate.
l
Selector and Text:UsestextwithinthespecifiedSelectorasatriggerforthescript.
l
Input Type:Usethedrop-downtoselectthesourceofthedatatoaddtotheChart.
l
Data fields:SelecttousefieldsattherecordlevelintheDataModel.
l
Data table:Selecttousefieldsinadetailtable.Atleastonedetailtablemustbeavailable
intheDataModelPaneforthisoptiontobefunctional.
l
Detail table:Usethedrop-downtoselectoneofthedetailtablesthatarepartofthe
DataModel.
l
Category:Usethedrop-downlisttoselectthedatafield(intheselecteddetailtable)
ofwhichthevalueswillappearunderthebarsortheline;inotherwords,onthex
axis.
l
Values:Selectdatafieldswithanumericalvalue.
Page 480