Attached filenames and URL

Comments

4 comments

  • Avatar
    AgilePoint NX Support

    Hi Manish,

    AgilePoint has eform helper method “getUploadedFiles”. This method help us to get the control values. Please find the below script.

    For your Reference
    https://documentation.agilepoint.com/11/developer/cloudjsGetUploadedFiles.html


    function GetFileUpload()
    {
    var options = {};
    var fileName;
    var docURL;
    options.fieldId = 'FileUpload1'; // Please provide your control Internal Id
    eFormHelper.getUploadedFiles (options, function (result)
    {
    if (result.isSuccess)
    {
    fileName = result.data.FileUpload1[0].fileName;
    docURL = result.data.FileUpload1[0].url;
    }

    });
    }
    Regards,
    Aravind
    1
    Comment actions Permalink
  • Avatar
    Lucas Drege

    Hi Aamir,

    It would be helpful to learn more about your use case, but as I understand it, this can be achieved via out of the box file upload control functionality combined with the Microsoft Word stencil.

    With the file upload control, we can restrict the actions a user can take during the various stages of the process.  As an example, in the Submit step, a user might upload new files, whereas in subsequent steps only view the files.  This can be controlled in the Configure menu for the control as shown below.

    To create a PDF of the documents attached, we have a Document process stencil, which includes PDF conversion activity.  I have linked the documentation below.

    https://documentation.agilepoint.com/00/appbuilder/cloudenvShapePDFConverter.html 

    If you do ultimately need filenames and url, we can do that via script, and can get that for you if needed.

    Lucas  

     

    0
    Comment actions Permalink
  • Avatar
    Aamir Babar

    Thanks Lucas!. That's exactly i what i wanted.

    0
    Comment actions Permalink
  • Avatar
    Manish A Athavale

    Hi Lucas, Can I get the script to read the url and filename from the File Upload control? Thanks.

    0
    Comment actions Permalink

Please sign in to leave a comment.