Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy Scripting combining 2 Lists using .Unique

edited Jun 10, 2021 10:52PM in Planning 7 comments

Content

We have a groovy script that identifies the Entity members that changes in a form when saved.   We will then loop through this list of changed Entities and come up with a corresponding Entity member that contains a particular attribute.  We can come up with the two lists and can combine them.  However we cannot come up with a desirable unique list.  Here are the basics areas of the code in question.

List 1  (Entity Members that have changed on a Form Save)

def LChangedEntity=[]
dataGrid.each{
 LChangedEntity << it.getMemberName("Entity")
}

List 2  (Entity Members looked up from an attribute)

def LPrimaryEntity=[]

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!