AnsweredAssumed Answered

Scroll to Last Portal Row Upon Entering Layout

Question asked by shawnmberkeley on Aug 17, 2018
Latest reply on Aug 18, 2018 by dale_allyn

FMS 15 and FMPA 15

 

I have a job notes portal on a few different layouts and I would like the last row of the portal to be visible automatically when navigating to each of those layouts.  I do not want to re-sort the portal to have the newest record on top, so I was trying other ways I found in this forum to make it work.

 

The following script works when I test it from the Script Workspace, but not when I add it as a layout script trigger (OnLayoutEnter).  "Allow vertical scrolling" is selected for the portal, and "Reset scroll bar when exiting record" is not.

 

Go to Object [ Object Name: "TrackingNotesPortal" ]

Go to Portal Row [ Select: On ; Last ]

Commit Records/Requests [ With dialog: Off ]

 

It also will not work when I add it to the navigation button script below either as a Perform Script step or just by adding the steps above.

 

Enter Browse Mode [ Pause: Off ]

Go to Layout [ "Production Schedule" (Job) ; Animation: None ]

Adjust Window [ Resize to Fit ]

Print Setup [ Restore ; With dialog: Off ]

 

Does anyone have an idea of why this is not working?

Outcomes