NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike McLoughlin on December 29, 2009, 02:33:42 PM

Title: How to expand a browse field to a full description?
Post by: Mike McLoughlin 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
Title: Re: How to expand a browse field to a full description?
Post by: Mike Grigsby 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.
Title: Re: How to expand a browse field to a full description?
Post by: Bruce 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
Title: Re: How to expand a browse field to a full description?
Post by: Mike McLoughlin 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
Title: Re: How to expand a browse field to a full description?
Post by: Bruce on December 31, 2009, 04:39:42 AM
The condition shouldn't be in quotes, as it is an expression....

Cheers
Bruce
Title: Re: How to expand a browse field to a full description?
Post by: Mike McLoughlin on December 31, 2009, 09:14:50 AM
Thanks - I was thinking it was like a filter regarding quotes.

Mike