_OUTPUT_ARROW_FUNCTIONS_ Method
Outputs the moveall and movesel JavaScript functions
on the Dimensions page
Syntax
CALL SEND(OBJID,'_OUTPUT_ARROW_FUNCTIONS_');
Details
The moveall and movesel
functions update the available and selected statistics list boxes
as the user makes statistic selections for the report display.
Example
The following output
is produced:
function moveall(fromlistbox,tolistbox) {
pos=0;
if (fromlistbox.options.length!=0) {
pos=tolistbox.options.length;
for (i=0; ifromlistbox.options.length; i++) {
if (from<listbox.options[i].value!="" && fromlistbox.options[i].value!="MIXED") {
tolistbox.options[pos]=new Option(statslabellist[fromlistbox.options[i].value],
fromlistbox.options[i].value);
pos++;
}
}
}
fromlistbox.options.length=0;
stats(document.mf.sa,document.mf.s);
}
function movesel(fromlistbox,tolistbox) {
pos=0; index=0; newlength=0;
if (fromlistbox.options.length!=0) {
pos = tolistbox.options.length;
var listofstats = new Array();
j = 0;
for (i=0; i < fromlistbox.options.length; i++) {
if (fromlistbox.options[i].selected==false && fromlistbox.options[i].value!="MIXED"
&& fromlistbox.options[i].text!="") {
listofstats[j]=fromlistbox.options[i].value;
j++;
}
}
for (j=0; j < fromlistbox.length; j++) {
if (fromlistbox.options[j].selected && fromlistbox.options[j].text!="" &&
fromlistbox.options[j].value!="MIXED") {tolistbox.options[pos]=new
Option(statslabellist[fromlistbox.options[j].value],
fromlistbox.options[j].value);
pos++;
}
}
remstatanal(fromlistbox);
if (num > 1) {
j=0;
fromlistbox.options[j]=new Option(statslabellist["MIXED"],"MIXED");
}
else
j=-1;
for (i=0; i < listofstats.length; i++) {
j++;
if ( j==listofstats.length )
break;
else
fromlistbox.options[j]=new Option(statslabellist[listofstats[i]],
listofstats[i]);
}
}
stats(document.mf.sa,document.mf.s);
}