RQ10 getattachrec.exc for comments

 1 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
BrianP
Advanced Member
Posts: 35
Advanced Member
    Has anyone used with V9.0.0.6 and LSF 9.0.0.8?



    thanks
    Derek Czarny
    Veteran Member
    Posts: 63
    Veteran Member
      Yes. This is an example of what I got to work.

      RQCheckAttach – Retrieves comment from REQHEADER
      Web Program: cgi-lawson/getattachrec.exe
      Post String: &_OUT=XML&_PDL=&_FN=REQHEADER&_IN=RQHSET1&K1=&K2=&_ATYP=U&_AUDT=I&_USCH=http&_OPM=T&_DATA=TRUE&_ECODE=FALSE

      Javascript variable.
      var Attachback = RQCheckAttach_result;
      var D = Attachback.indexOf("AttData")
      var F = Attachback.indexOf("/AttData")
      var myAttach = Attachback.substr(D+18,F-D-23);
      var myAttach = escape(myAttach);
      var myAttach = myAttach.replace(/%5C/g,"%5C");
      var myAttach = unescape(myAttach);
      var vresults = myAttach.length

      if (vresults >= 1)
      {var vEmailAttach = '

      Click here to see attached quote

      '}
      else
      {var vEmailAttach = ''}