NetTalk Central

Author Topic: How to expand a browse field to a full description?  (Read 4765 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
How to expand a browse field to a full description?
« on: December 29, 2009, 02:33:42 PM »
I have a field called vis:type which is 1 to 7 - on the browse I need to show this with its full text description (eg "Review").

Which is the best embed for this? 

regards

Mike
Mike McLoughlin

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: How to expand a browse field to a full description?
« Reply #1 on: December 29, 2009, 03:33:28 PM »
Mike, you can format the browse column as you like (fields and formatting if you care to) and put it into a local variable. Then use that variable in the column field. Do the formatting in the embed: 3 - Inside Browse Loop | 5 - Before Table Rows.
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to expand a browse field to a full description?
« Reply #2 on: December 29, 2009, 07:51:05 PM »
7 states is quite a lot for this approach, but you can also put conditional transforms of the field on the conditional tab.
along the lines of

Condition: cus:gender = 'M'
Display: 'Male'

and so on.

Cheers
Bruce

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: How to expand a browse field to a full description?
« Reply #3 on: December 30, 2009, 02:24:14 PM »
I put in 2 conditions as follows:

Condition:  'Vis:type=1'
Field:      'Review'

Condition:  'Vis:type=2'
Field:      'Assessment'

But every row shows as 'Review'.

What am I missing?    Apart from a brain  :)

Mike
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to expand a browse field to a full description?
« Reply #4 on: December 31, 2009, 04:39:42 AM »
The condition shouldn't be in quotes, as it is an expression....

Cheers
Bruce

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: How to expand a browse field to a full description?
« Reply #5 on: December 31, 2009, 09:14:50 AM »
Thanks - I was thinking it was like a filter regarding quotes.

Mike
Mike McLoughlin