Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


This topic is 4544 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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,

Posted

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

This topic is 4544 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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