Displaying external Dropbox images. The solution if your database contain many pictures to keep the database size small.
Pictures say more than words...
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 + ">")
Thank you Dean !
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.
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?
Not that i'm aware of.
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!
@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! :-)