How do I display an image saved in an Appian folder

I've attempted multiple times to display images saved in our branding folder in Appian, but each time I receive an error that the image does not exist.  I've tried using the doc 'name', 'ID', and the UUID.  Does anyone have any tips?  I've even tried saving the docs to the knowledge center instead of a regular folder.  It would be helpful to see an example of coding.  I'm not even able to display our logo.

Thanks for any help!

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Sowvik Roy

     Now i get what you wanted ,You want to generate and show QR code in a single interface  isn't it? , Correct me if i'm wrong.

    I would like to suggest small changes to above design. Design the main interafce like in below snippet. 

    {
      a!cardLayout(
        contents: {
          a!documentViewerField(
            label: "Document Viewer",
            labelPosition: "ABOVE",
            document: ri!document,
            height: "MEDIUM",
            showWhen: a!isNotNullOrEmpty(ri!document)
          ),
          a!buttonArrayLayout(
            buttons: {
              a!buttonWidget(
                label: "Generate QR code",
                style: "OUTLINE",
                showWhen: a!isNullOrEmpty(ri!document),
                saveInto: a!startProcess(
                  processModel: "Your process model",
                  onSuccess: a!save(ri!document,fv!processInfo.pv.generatedqr)
                )
              )
            },
            align: "START",
            marginBelow: "NONE"
          )
        },
        height: "AUTO",
        style: "TRANSPARENT",
        marginBelow: "STANDARD"
      )
    }

Children