AnsweredAssumed Answered

Iterating over portal rows without resetting the portal scrollbar

Question asked by BatMan on Jun 4, 2010
Latest reply on Jun 7, 2010 by S W

Title

Iterating over portal rows without resetting the portal scrollbar

Post

Hi

 

here's another problem with FM Pro 11 Advanced on MAC OS X: I have a layout with a portal showing related records of a different table. Each portal row has a checkbox, which takes values 1 or nothing (i.e. checked or unchecked). Also, there is a button on this layout (outside the portal) for checking/unchecking all portal rows at once. This button is attached to a script that iterates over all portal rows, checking/unchecking the checkboxes. The problem is that the current position of the scroll bar of the portal is lost when iterating over the portal rows. How can I prevent this? Jumping back to Get ( ActivePortalRowNumber ) can still move the view a little. I also tried to iterate over the related records in a different layout, but when I switch back to the original layout the scrollbar is reset to the top row. The "reset scrollbar when exiting record" option in the portal setup is unchecked.

 

As always, I appreciate your illuminating hints and ideas!

Outcomes