I have a custom list and I have to render filtered data dynamically.
The scenario is, I have some SPGroups
i.e. (Requester and Approver). If the current user is in Requester group then I have to show only records that are created by him only and if current user is in Approver group then I have to apply some other filter.
I have tried solution provided by Vadim Gremyachev on Stack exchange, this is working fine if we provide array of IDs static. If I am trying to get filtered data using caml query, as soon as I apply executeQyeryAsync
to get list data, page loads and rendering onPreRender
does not work.
Is there any way, I can achieve this functionality.