Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Add a way to get the index of the current element inside @Transform

Having access to the index of the current element inside @Transform would be very useful for certain applications, e.g. separate transforms for even and odd elements or referencing other lists. Something like @ThisIndex (compare @ThisName and @ThisValue) would be great.

  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      Sep 16, 2020

      I'd use a counter for that (if I ever had the need).

      Transforms may be nested. Which Transform would @ThisIndex reference?

      I'd rather like the following to be valid:

      myList[index] := someValue;

      We could process lists with @for then

    • Guest
      Reply
      |
      Sep 8, 2020

      Another example where this would be useful is if you need to do something special for only the first and last elements of a list (where post-processing them would be tricky).

    • Guest
      Reply
      |
      Sep 6, 2020

      FWIW, JavaScript's Array.prototype.map() (or rather its callback) also has an index parameter, which is occasionally very useful.

    • Admin
      Thomas Hampel
      Reply
      |
      Sep 6, 2020

      Hm, this seems to be a very very special case, lets see how many people will need it and vote for it. For reference here is the documentation of this @Transform : https://help.hcltechsw.com/dom_designer/11.0.1/basic/H_TRANSFORM.html