Displaying external Dropbox images. The solution if your database contain many pictures to keep the database size small.

Ninox Profile

Pictures say more than words...

Dropboximg

Steven

Ninox Profile

Thank you!

Ninox Profile

To center photo:

let k := substring('Shared URL', 0, length('Shared URL') - 1) + "1";
let c := "'display: block; margin-left: auto; margin-right: auto;'";
html("<img width=auto height=99% align=middle style=" + c + " src=" + k + ">")

Ninox Profile

Thank you Dean ! 

Ninox Profile

Now I am trying to figure out the smallest number of clicks required to get a dropbox shared file URL. On Windows it seems like the fastest route is to first open the dropbox folder using Windows Explorer and then right-click a file.

Ninox Profile

Or is there a way to bring up a open file dialog from within Ninox, then right-click the file and copy its shared URL?

Ninox Profile

Not that i'm aware of.

Ninox Profile

Fantastic, thanks for the inspiration! It's been on my "list of things to do later" to find a way to link to external pics.

 

In my case, I'll be linking to my images on various public websites so I created a separate field where I paste the image address. (And I guess since I'm not using Dropbox, I don't have to use the "let k" thing...)

 

This is going to save me so much time and reduce my database size. Thanks again!

 

Screen Shot 2020-08-16 at 5.53.52 PM

Ninox Profile

@RoSoft_Steven Rooryck @Choices Software - Dean Westover: So... I just found a potential downside solution to this, at least for my use. Maybe you can help?

 

This solution works great when I'm in a form, but the images don't show up in the table views.

 

Am I doing something wrong, or is this a limitation? If the latter, do you have other tricks up your sleeves that could allow me to see images in the table views, short of adding pics to the database?

 

Thank you in advance! :-)

 

Screen Shot 2020-08-17 at 1.05.53 PM

Reply