NetTalk Central

Author Topic: how to display icon in browse column  (Read 1573 times)

cwtart

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • CommPay Software
    • Email
how to display icon in browse column
« on: October 08, 2013, 11:26:58 PM »
I could not find and example for this.

I want to display a conditional icon in a browse list - either one icon or another, depending on a condition.

Chuck

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: how to display icon in browse column
« Reply #1 on: October 09, 2013, 12:07:55 AM »
Hi Chuck
I am assuming you want to do this on a line by line basis
So create a localdata variable say testimage as byte
add the variable to your browse use the variable name as the equate
set the picture to '@p p'
On the conditional tab
Assume you have a value in the table record called REC:Amount
Insert a display option REC:Amount > 100
in the image field 'images/smalltik.png'
OK
Insert another display option REC:Amount <= 100
in the image field 'images/change.png'
OK

This should display the icon based on the value on REC:Amount in each row

I just used 2 images that I found in the images folder but obviously you use your own
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

cwtart

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • CommPay Software
    • Email
Re: how to display icon in browse column
« Reply #2 on: October 09, 2013, 03:38:00 AM »
Terry,

That worked great - thanks for the help.

Chuck