Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Update of SuperContainer to v2.863 has lost our jpg image resizing

Featured Replies

Hi Guys,

With the update of SuperContainer from v2.792 to v2.863 in FM V11 we appear to have have lost the automatic resizing of our jpg images.

The URL we were using was:

"http://"

& "192.168.123.192:8020"

& "/SuperContainer/Files/"

& "Grandmothers Garden/Products"

& "/" & Products::MWProductCode

&"?style=upload"

& "width=" & GetLayoutObjectAttribute ( "supercontainer" ; "width" ) - 2

& "height=" & GetLayoutObjectAttribute ( "supercontainer" ; "height" ) - 2

The web viewer dimensions are 246 px wide by 345 px high. I've tried using those dimensions as per the example in the Documentation but the images are not resizing and the scroll bars remain. Most images are larger than the web viewer.

I therefore conclude that I have a syntax error which has surfaced with the update and I would be most grateful if the error can be spotted.

Thanks,

John Wolff

Hamilton, New Zealand.

Well, just looking at the above URL, it would read something like:

"http://192.XXX.XXX.X...es/Grandmothers Garden/Products/PC001?style=uploadwidth=244height=343"

(where "PC001" is some arbitrary product code)

As you can see, you'd have a "uploadwidth" and "244height" string -- which is not valid. You need some ampersands to separate URL parameters. Try:

"http://"

& "192.168.123.192:8020"

& "/SuperContainer/Files/"

& "Grandmothers Garden/Products"

& "/" & Products::MWProductCode

&"?style=upload&"

& "width=" & GetLayoutObjectAttribute ( "supercontainer" ; "width" ) - 2

& "&height=" & GetLayoutObjectAttribute ( "supercontainer" ; "height" ) - 2

I hope this helps. Good luck,

  • Author

Hi ooparah,

Thank you for your prompt reply. After paying some more attention to the exact text of the code, I've been able to get it behaving. Clearly, the additional "&" are needed even though they seem redundant

We now have Delete, Choose File and Upload file buttons that were not there previously but we can live with them.

I'll likely get some further tweaks of this code from your team whilst at DevCon next month.

Sincerely,

John

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.