This one I've Looked at over and over and can't figure it out. It tests fine via HTTP URL but when I attempt to run it by clicking the button it flakes on me and I get the StringIndexOutOfBoundsException: 00000000. The code is straight forward. I'm doing an AGS call to a process flow trigger via WFWK.1. It begins to exicute but then crashes.
function BUTTON_OnClick(id, row) { if (id == “push5”) { var vUpdate=lawForm.getDataValueById("select5"); if (vUpdate == "2") { var s = portalWnd.AGSPath+"?_PDL=LAWAPP9&_TKN=WFWK.1"+ "&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Add"+ "&SERVICE=LP31&CRITERION-1=88&WORK-TITLE=LP31Test"+ "&_DELIM=%09&_OUT=TEXT&_EOT=TRUE";
portalWnd.httpRequest(s); }
}
return true; }
Spaces on the + will not make any difference. Try changing your OUT=TEXT to OUT=XML.
Wow , great response time guys. This one is still strange to me but i managed to fix it after I created a new button and started receiving a "_TKN" not defnined even though it is the same script that you are looking at. I looked up the "_TKN not found thread" and someone suggested creating a function for the button. I did that and it resolved my issue. Thanks again for the quick response. Beats Lawson by 10 miles!