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
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.
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
Attachments Open full size
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).
Attachments Open full size
FWIW, JavaScript's Array.prototype.map() (or rather its callback) also has an index parameter, which is occasionally very useful.
Attachments Open full size
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
Attachments Open full size