NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: irissystems on June 21, 2007, 10:03:00 AM
-
Hello again,
I would like to have different icons indicating the status of a record in my browse list. I tried coding coding condition like a filter in the conditional tab of the field I'd like the image in but I don't seem to get any image? What am I doing wrong?
Steve
-
Steve,
Go to the "Conditional" tab for that field.
You will need to set up two conditions.
Select insert then,
Specify your 1st condition e.g. FILE:Active = 1
Specify image: 'active.gif'
Now insert another condition:
condition: FILE:Active = 0
image: 'inactive.gif'
Cheers,
Alan
-
You can see an example in the attachment. Here i have the Country lookup the flag image using the name as the country and appending the .png extension from the sub folder web\flags
In the list of offices you can see an icon color button depending on the type of office it is. Also the button titled weather on this list passes the variables Country, City to Yahoo weather site and launches it in the current frame.
I put the code in the embed "Validate Rocord" section as shown below.
It checks to see the record lab type and assigns the local variable LOC:Flag to the icon desired image..
Case FOG:Status_LabCap
Of 0
LOC:Flag='images/none.png'
Of 1
LOC:Flag='images/agri.png'
Of 2
LOC:Flag='images/pet.png'
Of 3
LOC:Flag='images/both.png'
Of 4
LOC:Flag='images/nolab.png'
else
LOC:Flag='images/none.png'
End !Case
hth
[attachment deleted by admin]
-
Hi Steve,
One point to clarify regarding Mike's reply:
If your images are in the images folder then you need to include that in the name. ie
'images/active.gif'
Nick's approach also works.
Cheers
Bruce