So I have a read-only grid displayed on a site through an interface. The summary is also displayed through an interface, and the summary of a record is pictured below.
What I want to do is add a button, going to the next or previous record so that the user doesn't have to click the home button in the top-left.
I found this thread but wasn't sure how to apply it to my situation (not completely sure how to apply a!query):
Discussion posts and replies are publicly visible
Depending on what "next" and "previous" actually means, in terms of sorting your records, you would just need to add the buttons and an a!save() which loads that next/previous record into a local variable. Then your interface will display the just fetched data.
Did you already try something?
So I would add the buttons and put the a!save into where the button's codes are as well? And would the a!localvariable just be wrapped around the a!save/the buttons? It's just hard to visualize that without any examples
Yes. Like here: docs.appian.com/.../recipe-refresh-data-using-a-refresh-button.html
Regarding local variables, I try to use only one global scope of local variables on top of my code. Nesting multiple a!localVariables() can be done but is rarely needed.
I tried creating an entity but it needs a data store which I don't have. This seems pretty complicated, I might just search the discussion board to hopefully find a different way
What do you mean with "creating an entity"? For what purpose? The recipe I shared is just an inspiration which you will need to adapt to your needs.
© 2023 Appian. All rights reserved.