NetTalk Central

Author Topic: icon or picture in browse  (Read 2326 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 274
    • View Profile
    • Email
icon or picture in browse
« on: March 28, 2009, 01:48:52 PM »
Hi,
I have a True/False field in my browse .  If it is True, I want to display a checkmark.ico.  If it is false, I want to display a cancel type icon.
How does one get these into the browse templates?
TIA,
Ron Jolda

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: icon or picture in browse
« Reply #1 on: March 28, 2009, 10:34:35 PM »
Hi Ron,

Add a String field to your browse, give it any old equate that makes sense, but nothing else. Then go to the "conditional" section. Add a condition for true and place the true picture in the image field. You can either add another condition for false or just set the default "image" section to your false picture.

Don't forget to make the fields you are using for the condition to be hot fields.

Regards
Bill Shields

rjolda

  • Sr. Member
  • ****
  • Posts: 274
    • View Profile
    • Email
Re: icon or picture in browse
« Reply #2 on: March 29, 2009, 02:59:10 PM »
Hi,
It looks like we have to use a variable to hold the name of the image file - is that correct?
Do the sizes have to be set here?
Thanks,
R Jolda

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: icon or picture in browse
« Reply #3 on: March 29, 2009, 04:23:47 PM »
Hi Ron,

You can use a variable or literal ('images/mypic.png'). Just remember it all starts at the web folder within your programs folder. You can either set the width and height or ignore it and the browser will decide. Just depends upon what you want.

Oh, but you can't use .ICO files. Browsers don't like them. I convert the ones i use in my web apps to PNGs.

Regards
Bill Shields