Protour Travel Posted April 18, 2013 Posted April 18, 2013 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.
David Jondreau Posted April 19, 2013 Posted April 19, 2013 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.
Recommended Posts
This topic is 4236 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