Manstone Posted November 10, 2004 Posted November 10, 2004 Hello there, I have a portal with 6 rows and I would like to have two buttons (previous/next)to jump six rows by six... like an internet page. I really appreciate if somebody could help. I'll be happy to receive all your suggestions. Sorry for my bad English. Thanks. French version: J'ai un portail avec six lignes et j'aimerai ajouter deux boutons (pr
transpower Posted November 10, 2004 Posted November 10, 2004 You can attach a script to a Prev. button and a Next button. The scripts would contain Go to Portal Row by calculation, which would include a Get (PortalRowNumber) function. Something like Go to Portal Row | Get (PortalRowNumber) + 6 Go to Portal Row | Get (PortalRowNumber) - 6
Manstone Posted November 10, 2004 Author Posted November 10, 2004 Thanks for your tip... the script jumps from 6 to 6 and it's perfect. But in my case, if I have for exemple 12 rows, when I perform the script, it doesn't work because the message in the dialog box says it's impossible to go to the 12th you display 6 rows! Could you explain to me a little bit more? Thanks
-Queue- Posted November 10, 2004 Posted November 10, 2004 Try using Go to Portal Row [ Min( Get(PortalRowNumber) + 6; Sum(portalrelationship::serial) ) ] and Go to Portal Row [ Max( Get(PortalRowNumber) - 6; 1 ) ]
Manstone Posted November 12, 2004 Author Posted November 12, 2004 Thanks. Good solution.... but I'm so sorry, it doesn't work 'til the last page. In fact, it works perfectly if the number of rows is a multiple of 6. For example, with 7 rows, you can't go to the seventh. Many thanks one more time for your help.
Recommended Posts
This topic is 7311 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now