Providing 'page of page' selection navigation on web

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

Subject: providing ‘page of page’ selection navigation on web

Read this article. http://www.codestore.net/store.nsf/unid/EPSD-66GGUM?OpenDocumentIf you have a flat view there should be no problem.

Subject: RE: providing ‘page of page’ selection navigation on web

Thank you - helpful article - I actually just ended up needing my brain to be jogged by something written in the comments section for this particular problem.

To get my dropdown selection functionality - I just used the formula -

list := “1” : “2” : “3” : “4” : “5” : “6” : “7” : “8” : “9” : “10”;

trimlist := @Subset(list; noPages);

allValues := trimlist + " of " + @Text(noPages);

“<option value="” + allValues + “">” + allValues +“”

in my field - surrounded with passthru html to execute a js to go jump to the proper page in the onchange event.

Thank you.