rsrc Posted January 3, 2011 Posted January 3, 2011 Hi everyone, I am trying to figure out if there is a way to change the initial row of a portal through a script. I found the following post, which seems to indicate it is not possible: http://fmforums.com/forum/topic/31297-change-initial-row-via-script/ However, that post is from 2005 so I'm hoping maybe there is a solution now! If you have any suggestions I would appreciate it, Thanks rori
Raybaudi Posted January 3, 2011 Posted January 3, 2011 Why do you need it ? There are new workarounds using script triggers.
comment Posted January 3, 2011 Posted January 3, 2011 Perhaps one of these can help: http://fmforums.com/forum/showpost.php?post/201804/ http://fmforums.com/forum/showpost.php?post/356203/
rsrc Posted January 3, 2011 Author Posted January 3, 2011 Thanks for those suggestions - the second post looks like it might be helpful.. I'm basically trying to display the associated images for a record. Except that they are supposed to be displayed in a grid, say 4 x 4 so 16 images on a page, then when you click next, you see the next 16 images, etc. Each portal row is displayed separately in a different portal to allow me to have a grid. So the first portal has initial row=1, num rows=1, the second has initial row=2, num rows=1, etc So I'll see what I can do based on the second example you posted. although I would also be curious to know how I can change the initial row with a script trigger... Thanks rori
comment Posted January 3, 2011 Posted January 3, 2011 I would also be curious to know how I can change the initial row with a script trigger... The initial row of a portal cannot be changed. You can only change which records are related (my first example) or which related records are shown in the portal (my second example - version 11+ only).
Raybaudi Posted January 3, 2011 Posted January 3, 2011 The initial row of a portal cannot be changed. But you can perform a script that let you show a calculated row of a portal with unique row ( provided that that portal can scroll ).
David Jondreau Posted January 3, 2011 Posted January 3, 2011 Or you can use a global field with 16 repetitions. An OnRecordLoad script trigger can set their initial states, and then a script attached to a button can load the next 16 images.
Recommended Posts
This topic is 5072 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