0
Terminé

In for each loop there should Index and that should be supported in Recordset or Array

Shruti Soni il y a 2 ans dans Studio mis à jour par Ashley Lewis il y a 1 an 5

Dear Team,

For Instance,


[[@productDetails.products([[Index]]).MainPageImage]] 

--> now this Index will be dynamic and will be evaluated in for each loop.

[[Recordset([[Index]]).Name]] --> now this Index will be dynamic and will be evaluated in for each loop.

Solution

+1
Solution

Use Select and Apply Tool

Image 1087

À l'étude

Please explain what you mean. Are you wanting [[index]] set to the value that is being used at the time so you can use it else where?

yes.

For example , If I am using for each loop with range from 1 to 6.

and steps are as below:

Image 1086


[[@Detai.pro([[Index]]).na]] --> this index will be 1 to 6 

that means 

[[@Detai.pro(1).na]] = ABC

[[@Detai.pro(2).na]] = ABC

[[@Detai.pro(3).na]] = ABC

[[@Detai.pro(4).na]] = ABC

[[@Detai.pro(5).na]] = ABC

[[@Detai.pro(6).na]] = ABC

Here @Detai is Object ,under that there is one array called pro and na is variable name.

Now dont have any such functionality in WW, if we have then please guide for the steps. 

+1
Solution

Use Select and Apply Tool

Image 1087

Okay , Let me try with this , I will get back here.

Thank you so much for the help.