on 10-07-2014 5:35 PM
Hello All,
I have a requirement in repeater action block.
I have put a repeater action on an XML return by SQL query action block. I am reading the data for each iteration.
But i have to read the data for next row when it's reading current row.
Suppose below is the data. When repeater is reading 2nd row data(DEF) i want to read 3rd row data (GHI) in the same iteration .
1 | ABC |
2 | DEF |
3 | GHI |
4 | XYZ |
Regards.
Anshul
You can try using a dynamic link. Something like this:
sqlQuery.Results{/Rowsets/Rowset/Row[#Repeater.CurrentItem#+1]/VALUE}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anshul,
You can use the dynamic path as suggested by Christian to achieve your desired result.
Just you have to restrict the number of iterations of your repeater, else it will give you a blank value for its last iteration. e.g. you have n rows in your xml, then (n+1)th value will not exist. and hence it gives a blank value.
Warm Regards,
Anuj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.