Change Event when Image modified

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Change Event when Image modified

Post by MarcusLancaster »

Hi all.

Just wondered if there was an event available which I can listen for to tell me if an image has changed (either picked from the gallery, or a photo taken, or annotated etc). Can't see anything obvious in the documentation.

Apologies if I've missed something.

Cheers for now.

Marcus.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Change Event when Image modified

Post by tsupartono »

HI Marcus,
The Image element will only post the image data to the server if there is any change (e.g. the user took a photo, or picked a photo from the gallery).
So you can tell if the image has changed by checking (in your RDML program) if the Image property is present (or Annotation.Image property for separate annotation image).
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: Change Event when Image modified

Post by MarcusLancaster »

Hi Tony.

Ah okay thank you for that info... but what if I'm OFFLINE and need to monitor for a change and run some JavaScript?

I guess I can check for a difference in blob size... but I need to do that in an event fired when I return from the taking / picking the image.

Is there an event available?

Cheers!

Marcus
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Change Event when Image modified

Post by tsupartono »

Unfortunately there is no such event.
We can add it if it's required, let us know.
Post Reply