Page 1 of 1

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

Posted: Wed Jun 13, 2018 8:57 pm
by KazunoriKasahara
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

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

Posted: Fri Jun 15, 2018 1:56 pm
by jasonzhou
Sorry Kazunori, I'm afraid it's impossible to set captured image to another element without sending image to server.

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

Posted: Fri Jun 15, 2018 2:51 pm
by KazunoriKasahara
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