how to load image file and assigned it to the image control?

View and download documents on various topics e.g. Configuring Ebase Xi under different environmental setups

Moderators: Dave, Jon, Steve, Ian

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to load image file and assigned it to the image control?

#1

Postby t4nu » Thu Dec 10, 2015 3:29 pm

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.
0 x

Jon
Moderator
Moderator
Posts: 1290
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Dec 10, 2015 3:56 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";
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Thu Dec 10, 2015 4:54 pm

Thank you very much for the help. I can get what I want.
0 x


Who is online

Users browsing this forum: No registered users and 1 guest