0
Ukończony

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

Shruti Soni 2 lat temu w Studio Ostatnio zmodyfikowane przez Ashley Lewis 1 rok temu 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.

Odpowiedź

+1
Odpowiedź

Use Select and Apply Tool

Image 1087

W trakcie analizy

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
Odpowiedź

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.