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

LSIBLINGS in Groovy

edited Apr 21, 2021 7:18AM in Planning 2 comments

Content

Hi All,

I'm trying to write a piece of code which could mimic the behavior of @LSIBLINGS in calcscript. I have a parent with a flat list of children under it and I want to pick up all members that precede the current member e.g.

Parent:

  1. Child 1
  2. Child 2
  3. Child 3
  4. Child 4
  5. Child 5

If I select child 5, then I want all members above it to be copied into an array.

Any help would be greatly appreciated.

Thanks!

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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