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.

Going to Current Date in portal...

Featured Replies

Hi everyone,

 

I am writing an opening script which will go to a certain tab control which contains a portal. This portal contains dates from 2+ years ago and also dates until the end of this year.

 

What I want to do is upon opening, go to the portal row that contains the current date as the first portal row. I have played around with calculations to no avail.

 

I have tried setting a $CurrentDate variable upon starting the script and then setting that field in the portal but i get a dialog box that says "go to record [734976] out of 10.

When I press enter I get an error that the number is too high. When I change that number to 10 or less, it carries me to a different portal in a different tab in the same layout.

 

I am using Object Names for the tabs and portals.

One way would be to use a custom function, like Bruce Robertson's PositionValue() to find the portal row number to navigate to. Something like:

 

Set Variable [ $portal.row ; PositionValue ( List ( relatedTable::Dates ) ; Get ( CurrentDate ) ) ]

Go to Portal Row[ $portal.row ]

 

Assuming you're sorting on the relationship level and not the portal level.

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.