[RDMLX] Is it possible to get and set image property of image element?
Posted: Wed Jun 13, 2018 8:57 pm
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
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