cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Predifined columns + optional columns = How to do it?

cstuehmer
MEGA Partner
MEGA Partner

We have a requirement of our customer and we don't know if it‘s feasable.

 

We are supposed to define a list that has certain predefined columns. However, all other possible attributes should still be able to be shown (meaning the user should be able to select them as columns).

 

Currently, we only manage to define the columns and the other attributes are not visible or the other attributes (columns) are displayed additionally.

 

The goal is to predefine certain attributes (columns) and to be able to show all others (but only optionally) if the user wants.

 

 

 

Here is my current implementation:

 

 

 

Object1     =Map(~4OoauUPKXrHB[related objects])

 

Attr8             =Item(~ivZpyeP1iE[attribute 8]),From(Object1)

 

Attr9             =Item(~vC7MJfrvvQ[attribute 9]),From(Object1)

 

Attr10            =Item(~Q(wV20QD)M[attribute 10]),From(Object1)

 

Attr11            =Item(~ITCAISTrvK[attribute 11]),From(Object1)

 

Attr12            =Item(~mj7pExTHLU[attribute 12]),From(Object1)

 

 

ObjectList      =Item(~4OoauUXrHB[related objects]),Contains(Object1),Control(ListView),Title(No),Param(NoDefaultColumn,ToolBar[+Create,+Link,+Unlink,+Properties,+Reorder,-Explore,+Destroy],RefreshOnChange,RefreshOnCommand,MultiSelection,ReOrder)

 

How can we implement this? Do you have a sample code for me, so that I only have to adapt it?

 

Thanks in advance!

1 Reply

hsoegaard
MEGA Partner
MEGA Partner
Hi,

One Way is to add all the columns you need to the property page. Those that you would like to be hidden initially add: Size(0)
That attribute, or columns will not be shown, but the user can add them.