How can I pass multiple variables using JS in design studio? My + or , options are not working.
var accField = "JournalNumber"; var sJENumber = lawForm.getDataValue(["GLC-COMPANY"+"GLC-FISCAL-YEAR"]); if (sJENumber == "")
we do the same sort of thing but with a different product....for us you need to know the name of the button (i.e. push3)
then it uses the OnClick function in DS
function BUTTON_OnClick(id,row){ if (id=="push3") { var Company = lawForm.getFormValue("text1"); var Vendor = lawForm.getFormValue("text3").replace(/^s+|s+$/g,""); var Invoice = lawForm.getFormValue("out8",row).replace(/^s+|s+$/g,""); var Suffix = lawForm.getFormValue("out9",row).replace(/^s+|s+$/g,""); var Project = 0;
.......
and does other things....then puts it all together into the URL it passes to the papervision product.
var strWebNow = "https://*************.com/SearchURL.aspx?UserName=**********Password=***********"; var IndexFields = "INVOICE NUMBER|VENDOR CODE"; var IndexValues = Invoice+"|"+Vendor; var ResultsType = "Docs" var invURL = strWebNow+"&ProjID="+Project+"&IndexFields="+IndexFields+"&IndexValues="+IndexValues+"&ResultsType="+ResultsType+"&ShowHomeLink=false"; imgWindow=window.open(invURL,"","toolbars=no,titlebar=no,resizable=yes,scrollbars=yes,menubar=no"); imgWindow.focus();