I want to apply on the script that whenever my script goes to some layout. The object A should get focused?
I want to apply on the script that whenever my script goes to some layout. The object A should get focused?
Focus means, I need blinking of the object.
The case is, on a record load trigger, I have attached some script. Now, whenever the user clicks on the new record button of the FileMaker Pro, the OnRecordLoad trigger trips and my script execute. That script is moving to some other layout for some purpose and then returns back to the original layout. What I want is that whenever the layout is coming back then the field ID also having tab order 1 should be getting focused and blink.
'blink' as in: the cursor should be in the field and the cursor should be blinking?
Then the "go to field' is your best bet. If you don't want to specify the field by name or use 'go to object' and name the object then you can use:
Go To Field[] ==> note: not specifying a field
Go To Next Field ==> will put the cursor in the first field in the tab order
You mean that,
Go to object name['ABC']
and after that, I should go for
Go to field or Go to next field
Case:
I have two layouts
Layout A
Layout B
Layout A having field
Field 1
Whenever a user clicks on New Record
Script trip which is associated with layout A OnRecordLoard trigger
Some of my script steps are
Go to layout B
Perform Find
Set Variable: $$xyz = 1
Go to Layout 'Original Layout'
Now where should I put
Go to Object
Go to next field
Please suggest and help
Go to field ignores tab order. It’s not go to NEXT field—a different script step. If you have two copies of the same field on your layout, go to field could return you to the wrong copy, but then you’d use go to object and then you don’t need go to field as Go To object also ignores tab order.
No no harm in using both. It works. It’s just an extra step.
"Focused" in what way? Is your object "named"? You might check Go to Object:
https://fmhelp.filemaker.com/help/17/fmp/en/#page/FMP_Help%2Fgo-to-object.html
Beverly
Sent from miPhone