Jump to content




How to select contents of second instance of field?



  • Please log in to reply
No replies to this topic

#1 ONLINE   K1200  old hand

K1200
  • Members
  • 551 posts
  • FM Client:11 Advance
  • Platform:Windows XP
  • Skill Level:Intermediate
  • Time Online: 17d 5h 51m 44s

Posted 05 January 2012 - 09:10 AM

I have a field that is used on two different tab panels of a layout.  My script needs to select the second occurrence and then do a Select All so the user can just type over the contents.  I use Go To Object to display the correct panel, but how can I select the contents?  A Select All doesn't work because a Go To Field hasn't been performed.  But a Go To Field causes the first occurrence of the field to be selected.  A Catch 22?

From the FMP help:

Quote

If, however, the same field appears elsewhere on the layout and the script finds that field first, the tab panel with that same field will not come forward. Instead, assign an object name to the field and use the Go To Object script step to move to that instance of the field.

Thanks in advance for any help.

UPDATE:  I've solved my own problem.  Select All does work.  I had too many disabled elements in my test script and didn't notice an extra Go To Field [ ].  Sorry for the false alarm.  Hopefully, this post will assist others.


Back to Tab Panel Control


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

FMForum Advertisers