[RDMLX] Is it possible to get and set image property of image element?

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
KazunoriKasahara
Posts: 7
Joined: Mon Feb 03, 2014 11:35 pm

[RDMLX] Is it possible to get and set image property of image element?

Post by KazunoriKasahara » Wed Jun 13, 2018 5:57 am

Hi,

After taking a new image using the camera our customer would like to set the taken image to another image element without saving the image on the server.

I tried the following my sample but it didn't work. The ADDIMAGE1 image element shows the kimage1.png image but the ADDIMAGE2 doesn't show the image.

Is it possible to get and set the image property of the image element?

Define Field(#uFileName) Type(*STRING)
#uFileName := *PART_DIR_EXECUTE + 'kimage1.png'

#Com_Owner.Set_Image Layout_Col(1) Layout_Row(1) Allowchange(True) Name(ADDIMAGE1) Newimage_Resize_Wdth(600) Newimage_Resize_Hght(450) Newimage_Thmbnl_Wdth(200) Image(#uFileName) Newimage_Thmbnl_Hght(150) Mode(Picture) Blankimageresource('Attach_Photo_Here.png')

#Com_Owner.Set_Image Layout_Col(1) Layout_Row(1) Allowchange(True) Name(ADDIMAGE2) Newimage_Resize_Wdth(600) Newimage_Resize_Hght(450) Newimage_Thmbnl_Wdth(200) Newimage_Thmbnl_Hght(150) Mode(Picture) Blankimageresource('Attach_Photo_Here.png')

#COM_OWNER.GET Property('/Form.Fields.ADDIMAGE1.Image') Into(#uFileName)
#COM_OWNER.SET Property('/Form.Fields.ADDIMAGE2.Image') To(#uFileName)

Thank you in advance.
Kazunori

jasonzhou
Posts: 59
Joined: Tue Jan 10, 2017 11:26 pm

Re: [RDMLX] Is it possible to get and set image property of image element?

Post by jasonzhou » Thu Jun 14, 2018 10:56 pm

Sorry Kazunori, I'm afraid it's impossible to set captured image to another element without sending image to server.

KazunoriKasahara
Posts: 7
Joined: Mon Feb 03, 2014 11:35 pm

Re: [RDMLX] Is it possible to get and set image property of image element?

Post by KazunoriKasahara » Thu Jun 14, 2018 11:51 pm

Hi Jason,

Thank you for your reply.
I understand that it's impossible without sending image to server.
We will send image to server.

Kazunori

Post Reply