Tree Control: hide Parent values

  • 15 January 2019
  • 1 reply
  • 2 views

Badge +5

Hi,

We are developing a solution in K2 to email different users based on their group they are assigned to.

 

We have a one to many relationship with 1 group can have many users in the database. We are trying to use the tree control to allow us to select either the entire group(s) or individuals from different groups. We have noticed when selecting all the users in one group (whether its 2 or 10) it will also append the group ID to the value.

 

So it will look like the following:

1,Email1,Email2

What we want is the value to look like:

 

Email1,Email2,Email3

This will allow us to transfer the value into an email field and use it to send emails.

 

Can anyone suggest anything that will remove the parent Group ID from the value or an alternitive solution for listing values based off what groups have been selected?

 

Thanks,
Martin


1 reply

Hi Martin,

I think we can make some expression from value of tree control and put to data label control, then you can use this data label send email. For the expression should be not complicate for this case, because it seems like unchanged pattern.

How to use Expressions as link below
https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#Create/Views/ControlExpressions.htm

Reply