/* Start Setting and Storing of Initial ParameterSets */ /* Store Properties of Parameters */ function ParamArray() { {loop} this.{name} = {loopindexzero}; {endloop} return true; } ParamIdentify = new ParamArray(); ParamBrowseStatus = new ParamArray(); ParamFormPosition = new ParamArray(); ParamQuickFormPosition = new ParamArray(); ParamFormName = new ParamArray(); var Paramlistlength = {length}; {loop} ParamFormName[{loopindexzero}] = "{name}"; {select=browse}ParamBrowseStatus.{name} = "browse"; {select=notbrowse}ParamBrowseStatus.{name} = "notbrowse"; {select=browsebutton}ParamBrowseStatus.{name} = "notbrowse"; ParamFormPosition.{name} = {optionformcount}; ParamQuickFormPosition.{name} = {quickoptionformcount}; {endloop} /* Constructor for Parameter Value Set */ function Parameterset(no) { this.count={length}; {loop} this.{name} = null; {endloop} this.no=no; return true; } function Parameterset_init(newset,label,oldset) { {loop} parameters[newset].{name} = parameters[oldset].{name}; {endloop} parameters[newset].setname = label; return true; } var maxparmset = 10; var actualtopparmsetnum = 3; parameters = new MakeArray(maxparmset); for( var l=1; l <= maxparmset; l++) { parameters[l] = new Parameterset(l); } {loop} parameters[3].{name} = "{value}"; {endloop} defaultparameters = parameters[3]; Parameterset_init(2,'initial',3); currentparameters = parameters[2]; Parameterset_init(1,'onentry',3); onentryparameters = parameters[1];