Different lookup display field for List page

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
eppa
User
Posts: 11

Different lookup display field for List page

Post by eppa »

Hi,

I am wondering if there is a way to select a different "Display Field" in the List page when using a table lookup. For example, in the lookup table we have a field Fullname which we want displayed in all other pages but in the List page we want to display the field Abbreviation. Hope this makes sense.

Thanks,
Greg


vincenthung
User
Posts: 88

Post by vincenthung »

You may consider to setup the view value in the "Row_Rendered" Server Event.

  1. Setup both the "Fullname" and "Abbreviation" as the display field.
  2. Determine the view value by different page id.

Example:
Dim arDisplay
arDisplay = Split(<Table>.<Field>.ViewValue, ",") ' The view value of multiple display field is comma seperated
If CurrentPageID = "list" Then
<Table>.<Field>.ViewValue = arDisplay(0)
Else
<Table>.<Field>.ViewValue = arDisplay(1)
End If


eppa
User
Posts: 11

Post by eppa »

Thanks, great option for list page - worked well.

Now trying to work out how to separate in the Add/Edit pages where the combined values are in a drop-down select box.

Cheers.


Post Reply