Posted: 5 Jan 2018 10:17 EST Last activity: 16 Jan 2018 7:34 EST
Data page is reloaded without parameters on sort/refresh of column in a table
I have a table layout in a section. The source of this table is a data page with parameters and source of the data page is report definition with parameters. The table is displayed on click of a button and this click also sets the parameters for the data page and in turn for the report definition. The results are displayed just fine. But when I try to filter/sort any of the column instead of just doing this operation on already loaded data page the data page is being reloaded again and this time without any parameters. I want this operation to be performed on the data page that is already loaded on click of button and reload the data page only click of the button. How can I achieve this?
PS- I am passing current parameter page from table layout to data page to report definition.
I have tried implementing your use-case in-house. Could you provide me screen-shot of action sets configured at your button?
I have created a parameterized data page and report definition. Also, a data transform on click event of the above-said button. I was just trying to figure out, how you have configured table loading? Or what action you're performing to load the table? Are you calling an activity to invoke data page?
Thank you for your reply. On click of the above said button I am refreshing section and calling a data transform which sets the parameters for the data page. In this data transform I am also setting a property(flag) which is used to control the visibility of the table layout.
I am not calling activity to load data page. As soon as the table layout is displayed it loads the data page. Let me know if you still need screenshots.
What I did to fix this behaviour is I changed the source of the table layout to a page list property instead of the data page. And on click of the above said button I am copying the results from the data page to the page list property by looping over the data page. Not sure whether this is the best approach.