0

Import an Image from a Filename

Greetings - New to Ninox scripting, so please forgive the basic question:

I have a picture container called "Image" and

a text container called "Filename" which contains path to an image that I want placed into the image container. 

In the "Trigger after update" I place this line of script

importFile(Filename)

That doesn't work, nor do options that involve Image := Filename or the like

Thanks!

1 reply

null
    • Mel_Charles
    • 1 yr ago
    • Reported - view

    methaion

    I don't import my images from a path but when I print a customer quote (i'm on cloud version) this gives me a download file but I also write back a file to the quote into an image box.

    Not sure if this will help you - but here if my script (it does a test to see if the quote is still a draft or not - but ignore those lines

    let myPdf := printAndSaveRecord(this, "Quotes");
    let myName := "Quotation.pdf";
    importFile(this, myPdf, QteNum + " " + myName);
    if 'Draft!' = true then
        alert("Draft Quote Only Saved ! Turn Off Draft Flag To Print Final Quote!")
    else
        if 'Draft!' < true or 'Draft!' = null then
            printRecord(this, "118PrintQuote")
        end
    end

Content aside

  • 1 yr agoLast active
  • 1Replies
  • 104Views
  • 2 Following