// OnBind of fromDatevar val =This.GetDataSetValue("member.fromDate");var fr =val.substr(0,4) +'-'+val.substr(4,2) +'-'+val.substr(0,4);This.SetValue(fr);
// OnBind of toDatevar val =This.GetDataSetValue("member.toDate");var fr =val.substr(0,4) +'-'+val.substr(4,2) +'-'+val.substr(0,4);This.SetValue(fr);
// OnBind of cardHoldervar val =This.GetDataSetValue("member.cardHolder");if(!val) { val =This.GetDataSetValue("member.firstName") +" "+This.GetDataSetValue("member.lastName") ;This.SetValue(val);}
// OnBind of cardExpMMvar items =newArray();var i =0;for ( i=0; i<12; items[i]=("0"+i++).slice(-2)) ;This.SetItems(items.join("\n"));var val =This.GetDataSetValue("member.cardExp");if (val) {var mm =val.substr(0,2);for ( i=0; items[i] != mm; i++) ;This.SetSelectedIndex(i);} else {This.SetSelectedIndex(0);}
// OnBind of cardExpYYvar items =newArray();var i =0;for ( i=20; i<30; items[i-20]=("0"+i++).slice(-2)) ;This.SetItems(items.join("\n"));var val =This.GetDataSetValue("member.cardExp");if (val) {var yy =val.substr(2,2);for ( i=0; items[i] != yy; i++) ;This.SetSelectedIndex(i);} else {This.SetSelectedIndex(0);}
ODIパラメーターの伝送
membership-odi.html<scripttype="text/javascript" >var serverUrl = "https://" + location.host;function SetOZParamters_OZViewer(){ var oz =document.getElementById("OZViewer");oz.sendToActionScript("information.debug","true"); // viewer consoleoz.sendToActionScript("connection.servlet",serverUrl +"/oz/server");oz.sendToActionScript("connection.reportname","/eform/membership-odiparam.ozr");oz.sendToActionScript("odi.odinames","membership");oz.sendToActionScript("odi.membership.pcount","1"); // number of odi parametersoz.sendToActionScript("odi.membership.args1","memberNo="+1002); // odi parameter return true;}start_ozjs("OZViewer", serverUrl + "/oz/HTML5viewer/");</script>