As the subject stated, I need the example to load the image file and then assigned it to the image control. Is there any document guide or how to that I can follow?
Thanks in advance for the help.
how to load image file and assigned it to the image control?
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
You drag an Image Control onto the page. In the Properties view, you will see an Image URL property. In Version 4 this must be a URL - usually relative to the web app root, but it can also be an absolute URL beginning with "http://" as well. In Version 5 this can be either a URL or the path to an image in the workspace. If you want the image to be variable, you can include &&fieldname in the URL.
Examples:
Root of the web app: /UfsServer/tomcat/webapps/ebase
Image file: /UfsServer/tomcat/webapps/ebase/myimages/image1.gif
Image URL property: myimages/image1.gif
Variable image name:
Image URL property: myimages/&&IMAGE_FIELD
Script code: fields.IMAGE_FIELD.value = "image2.gif";
Examples:
Root of the web app: /UfsServer/tomcat/webapps/ebase
Image file: /UfsServer/tomcat/webapps/ebase/myimages/image1.gif
Image URL property: myimages/image1.gif
Variable image name:
Image URL property: myimages/&&IMAGE_FIELD
Script code: fields.IMAGE_FIELD.value = "image2.gif";
0 x
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
Who is online
Users browsing this forum: No registered users and 8 guests