StringIndexOutOfBoundsException: 00000000

 4 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Goober
Basic Member
Posts: 17
Basic Member

    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;
    }

    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      If you key this directly on the WFWK.1 form do you get any kind of error?
      David Williams
      wilcoxmad
      Veteran Member
      Posts: 87
      Veteran Member
        The only thing I see, and it may not make any difference, is that I always put a space on each side of the + sign. Might be worth a try.
        Gary Davies
        Veteran Member
        Posts: 248
        Veteran Member

          Spaces on the + will not make any difference.  Try changing your OUT=TEXT to OUT=XML.

          Goober
          Basic Member
          Posts: 17
          Basic Member

            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!