I am using the @DbCommand(“Domino”;“ViewNextPage”) and previous page in a $$ViewTemplateDefault, (the …Default because i am changing the view with code), I have a field that is fed from the navigation link with &PageTitle=Landscape. This works fine on the first page. If the page goes to 2 of 3 then there seems to be no way to get the PageTitle field filled again. I can’t feed it the & PageTitle=… because I’m using the @function for previous and next. AND the field does not seem to inherit on the pages that follow (2 of 3, 3 of 3). Is there some way to get the field filled on every page?
Thanks in advance!
Regards
Subject: problem keeping field values on pages when using @DBCommand(“Domino”;“ViewNextPage”)
I’m afraid that you’ll have to build your own next and Previous buttons if you want additional URL parametersIt’s not too hard
Get the current URL, check to see if it’s got a &start= parm already
If it has, split it by that and write your own new start (+30 is the default), if not assume it was 1 and write a new one with &start=30
Then check if it’s got your &pageTitle
If it has, fine, if not, add it
You can manipulate the &count parm as well if you want
If it’s a categorised (and therefore possibly semi-expanded) view you’ll need to strip out the &expand= parm from the URL first
As I say, it’s often easier to build your own from scratch
Chris
Subject: RE: problem keeping field values on pages when using @DBCommand(“Domino”;“ViewNextPage”)
Thanks,… I’ve had problems with some of the coded ways to do it too. Everything works great up to the last inch, but always something doesnt react properly.Surely theres some way to use the basic functions and some javascript to carry one fireld value thru all pages. I’m not fluent in javascipt so I am investigating this but if anyone has any pointers that would be usefull.
Regards & Thanks
Subject: RE: problem keeping field values on pages when using @DBCommand(“Domino”;“ViewNextPage”)
I figured out why the coded version was dorking up. I have 2 columns with the first column catagorizes for a couple of views and it throws off the count for the whole display. Used a different method to get total docs now it works…
Subject: FOLLOWUP problem keeping field values on pages when using @DBCommand(“Domino”;“ViewNextPage”)
It appears that process to do the Previous and Next dont like a view with twio columns and the first one catagorized. It doesnt display the views properly. It shows the correct amount of documents but wont go past the 1st or second page of the view list and display the list. It continues to go thru the numbers page by page but the view shows no documents found. I take the first (catagorized) column out and it works fine. I have found problems with every solution of Previous and Next functions. Kind of un-fun…