How to default Image to computed string

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
BLOMASKY
Posts: 1473
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

How to default Image to computed string

Post by BLOMASKY »

I have an entry form where I want to display an image with the name "PreTrip" + 5 character LoginName.

Each user has a 5 character login name. i.e. Bruce

When the starts to enter a PreTrip record, I want the image (which is stored in the file system) to default and display on the form. It should default to a string + the Login Name. So, in my case, When I start to enter a new record, I want the "picture" to default to:
C:\Aware\Tomcat\webapps\AwareIM\Uploads\PreTripBruce.jpg.

Not sure how to do this.

Thanks
Bruce
Jaymer
Posts: 2455
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: How to default Image to computed string

Post by Jaymer »

Use an HTML cell,
and an <img tag and
build your path in the
src= element.

<img
src=<<SystemSettings.tripimgpath>><<LoggedInRegularUser.username>> >
</img>

Something like that.
Not at my desk.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply