![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, gang - I have a script that's giving me trouble and I thought I'd get your input. The script controls new record creation in a database that has custom menus and a button bar for common functions. It's designed to put users in the right place (field and layout) depending on active field and window mode. For example, if they're in Find mode and in the City field, it leaves them in the City field when entering find, but if they're not in any field, it will take them to the first field they're likely to search in rather than the first field in the tab order. Similarly, if they're in list layout in Browse mode, it will take them to a new blank record in form layout. I use a similar script in all my databases and haven't had a problem before. However, although the script runs correctly on my computer (Mac OS X, FM Adv 10), it's giving me problems on my client's computers (Windows, FM Pro 8.02). Both sessions are currently single- user. The relevant section of the script is as follows: # form layout / browse mode If [ PatternCount ( Get ( LayoutName ) ; "Form" ) and Get ( WindowMode ) = 0 ] New Record/Request Go to Field [ Table::Person ] Exit Script [ ] # form layout / find mode / no active field Else If [ PatternCount ( Get ( LayoutName ) ; "Form" ) and Get ( WindowMode ) = 1 and IsEmpty ( Get ( ActiveFieldName ) ) ] New Record/Request Go to Field [ Table::Number ] Exit Script [ ] # form layout / find mode / active field Else If [ PatternCount ( Get ( LayoutName ) ; "Form" ) and Get ( WindowMode ) = 1 ] New Record/Request Exit Script [ ] etc. What's happening is that when the user is in form layout in Browse mode (first step above), the script goes to the field "Person," but it skips the step "New Record." However, as I mention above, it performs correctly on my machine. I've reviewed the feature history for FM and don't see any problem between versions 8 and 10. Could there be a difference between Mac and Windows I'm not catching? Or perhaps something else? Thanks in advance for your thoughts. -J. |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |