Hi,
I have a $$viewtemplate form that displays an embedded view which shows x number of documents at a time.
I need to provide the ability to show what page number a user is currently on and how many total pages are available. This needs to be a selectable dropdown - where the options would resemble this…
1 of 6
2 of 6
3 of 6 …
Then if the user selects “3 of 6”, we change the window location so that if there were 56 documents in the view - and we were displaying 10 at a time, we would display Count=10&start=30.
I’m struggling with something that seems like it should be easy - how to populate the option list if I know the total number of pages and the number of lines to display.
I have been using computed for display fields surrounded by html to provide drop down functionlity on this viewtemplate form. I’ve been trying to figure out how to get a list (1, 2, 3, 4, 5, 6) if I know a totalpage value of 6, but i’m banging my head. A formula language solution - or javascript/html solution would be ok …
TIA
Kristin