Skip to main content

I've been searching, and have not found a way to do this.

 

The idea is that we want to change the value being display in a list view based on what is being returned by the SmartObject. For example the column Is Active is showing "Onboarded", and we want it to say "Yes".

 

11911i4E8CDFADE6346A1F.png

Hi jwstl98

 

You can do this using expressions. Add an unbound column to your list by dragging a datalabel onto the list. Then add an IF expression to the datalabel that checks the value of the "Is Active" SmartObject property and then returns "Yes" or "No" as required.

 

You can delete or hide the current "Is Active" column once you have done this.


This is definitely the efficient way to go when you are just translating a low-cardinality value like a yes/no/maybe. But in a more complex situation, say in the case that you want a "dynamic" display value, say a display value based on a foreign key in another SmartObject, you might try changing the control in the List View to a Drop-Down List. Details:

http://community.k2.com/t5/K2-blackpearl/List-view-not-showing-the-quot-Display-quot-value-of-a-dropdown/tac-p/91517/highlight/true


So Expressions can take If Statements... AWESOME....

 

This post got my attention and attempt to reproduce in a Simple Item View with Rules from a button On Click.

 

First I transfer the content of the Text Box to 2 different Data Labels s No problem ]

 

Later Have an expression with the IF Statement matching "Hello" and if is True, return "World" if not "Monkey"

 

I execute this as another transfer after the original Transfer.. I test with the Values and worked Great.

Noticed from the Data Label could not use in Expressions.. you might want to consider the input control or some params instead.

 

A second Rule execute and transfer the value from the Expression works AWESOME !!!.

 

 

12337iA769C2749C509BAA.jpg


Reply