Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Change Initial Row via Script?

Featured Replies

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

Why do you need it ?

There are new workarounds using script triggers.

Perhaps one of these can help:

http://fmforums.com/forum/showpost.php?post/201804/

http://fmforums.com/forum/showpost.php?post/356203/

  • Author

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

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).

  • Author

Ok, thanks for those suggestions.

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 ).

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.