AddAttachment

 2 Replies
 0 Subscribed to this topic
 78 Subscribed to this forum
Sort:
Author
Messages
Ragu Raghavan
Veteran Member
Posts: 473
Veteran Member

    writeattachrec is being replaced by AddAttachment. I found documentation on how to use it in a webrun node in IPA. Could not find any example of use in Design Studio. After some trial and error got this to work - 

     

    function AddComment()
    {
    var vXMLData = 'Title55Message55';

    var vURL = "http:///lawson-ios/action/AddAttachment";


    var xhr = new XMLHttpRequest();
    xhr.open("POST", vURL, true);
    xhr.setRequestHeader('Content-Type', 'text/xml');
    xhr.send(vXMLData);
    // to check for errors etc
    var vResponse = xhr.responseText;
    }


    Ragu Raghavan
    Veteran Member
    Posts: 473
    Veteran Member
      oops - the XML data did not come across correctly. Will try again -

      var vXMLData = 'Title55Message55';
      Ragu Raghavan
      Veteran Member
      Posts: 473
      Veteran Member

        Will try an attachment - 

        Attachments