Get index of List Repeat!

Hello all,

I have list object with company attributes. I don’t know why i can’t get index of list. Please tell me solution. Thanks all.

Hi @huy.tran,

I believe I can understand what your concern is here. You must be wanting to get the exact index of respective object/element in your list (or array).

In List Repeat control, the index of the elements start from 1, not 0 (zero). So, using {{list.THIS.JSON[list.THIS.INDEX - 1].company}} should solve your concern in place of using {{list.THIS.JSON[list.THIS.INDEX].company}}.

Also, you can use {{}} straight away to get the company attribute in the UI component. You don’t need to use the one that I can see in the screenshot.

I hope this helps you.