PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/16/2018 7:26 PM by  Ragu Raghavan
AddAttachment
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Ragu Raghavan
Private
Private
Veteran Member
(924 points)
Veteran Member
Posts:322


Send Message:

--
12/16/2018 7:17 PM

    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
    Private
    Private
    Veteran Member
    (924 points)
    Veteran Member
    Posts:322


    Send Message:

    --
    12/16/2018 7:23 PM
    oops - the XML data did not come across correctly. Will try again -

    var vXMLData = 'Title55Message55';
    Ragu Raghavan
    Private
    Private
    Veteran Member
    (924 points)
    Veteran Member
    Posts:322


    Send Message:

    --
    12/16/2018 7:26 PM

    Will try an attachment - 

    Attachments
    You are not authorized to post a reply.