Document Viewer

Hi, I am new to Appian and working on a Prototype for a client. I have a use case to upload a set of files to a folder that is created for each new client and then view these uploaded documents in document viewer for review. Can someone provide some help to do this please? 

  Discussion posts and replies are publicly visible

Parents
  • Hi, check this link

    https://docs.appian.com/suite/help/24.1/Document_Viewer_Component.html

    And remember that when you upload files into Appian with fileUpload Component, the document won't be available until you call submitUploadedFiles() ...

  • Thank You for your response. I check this out. 

    I have a problem to solve before I get here. I have an interface for user to upload files. I want to store these files in new folders with their unique uploadID. So i use the following code in SaveInto:

    a!createFolder(
    name: ri!DR_Filings['recordType!{7e936f34-1fd3-4278-8e04-aa1289d866dd}DR Filings.fields.{b10b56fd-3534-4386-a523-e76a45f88f15}companyName'],
    parentFolder: cons!DR_UPLOADED_FILES_PARENT,
    onSuccess: a!save(target: local!newFolder, value: fv!folder)
    ),

    but the local variable is not getting populated with the new folder name, which i want to use in my file upload function:

    a!fileUploadField(
    label: "Upload Type3 Document",
    labelPosition: "ABOVE",
    target: local!newFolder,
    value: ri!DR_Filings['recordType!{7e936f34-1fd3-4278-8e04-aa1289d866dd}DR Filings.fields.{ba570aec-da87-4369-939e-5387d9a3bea4}docId3'],
    saveInto: {
    ri!DR_Filings['recordType!{7e936f34-1fd3-4278-8e04-aa1289d866dd}DR Filings.fields.{ba570aec-da87-4369-939e-5387d9a3bea4}docId3']
    },

    Can you help me figure out where I am going wrong?

Reply
  • Thank You for your response. I check this out. 

    I have a problem to solve before I get here. I have an interface for user to upload files. I want to store these files in new folders with their unique uploadID. So i use the following code in SaveInto:

    a!createFolder(
    name: ri!DR_Filings['recordType!{7e936f34-1fd3-4278-8e04-aa1289d866dd}DR Filings.fields.{b10b56fd-3534-4386-a523-e76a45f88f15}companyName'],
    parentFolder: cons!DR_UPLOADED_FILES_PARENT,
    onSuccess: a!save(target: local!newFolder, value: fv!folder)
    ),

    but the local variable is not getting populated with the new folder name, which i want to use in my file upload function:

    a!fileUploadField(
    label: "Upload Type3 Document",
    labelPosition: "ABOVE",
    target: local!newFolder,
    value: ri!DR_Filings['recordType!{7e936f34-1fd3-4278-8e04-aa1289d866dd}DR Filings.fields.{ba570aec-da87-4369-939e-5387d9a3bea4}docId3'],
    saveInto: {
    ri!DR_Filings['recordType!{7e936f34-1fd3-4278-8e04-aa1289d866dd}DR Filings.fields.{ba570aec-da87-4369-939e-5387d9a3bea4}docId3']
    },

    Can you help me figure out where I am going wrong?

Children