Hi Peter,
Thank you for your reply.
I have already tried implementing this scenario in modeler. It didn't work.
Here is the scenario: For each year, and for each country in that year, I need to get the top 5 Material categories in them. I found cursor to be the only way to do this. I am aware i need to assign o1 in the code but I am not sure where to assign it with for loop.