are you using the Set Window Title - Rename window to :Get ( LayoutName ) script step?
Once set with this script step the window title will remain with that title until changed or the window is closed.
Yes. That’s the script step I am using. Script trigger is from Layout Setup “On Layout Enter”
post your On Layout Enter script.
Please explain what you mean by persist.
Once you set the title the window stays at what you specified until it encounters another script step to change it.
Not much to it but here it is.
If screenshot doesn’t make it, here it is:
Set Window Title
what behavior do you expect?
In a solution with three layouts named ONE , TWO and THREE with the script Set Window Title = Current window = Get ( Layout Name ) & Refresh Window set as on layout enter trigger on all three layouts... navigating between the layouts changes the window title to ONE, TWO and THREE appropriately.
When I switch from one layout to another, I would like the Window to be renamed to the name of the layout.
In my file, that’s not happening. When I switch to a different layout, the window name is not updating.
the on layout enter script has to be specified for every layout you want to re title.
if you navigate to a layout without this trigger script then no window title change will happen.
The trigger is tied to the layout not the window.
In the previous example say you only put the trigges on layouts ONE and THREE but not TWO then you would only see window titles ONE when on layout ONE, THREE on layout THREE and when you were on layout TWO the window will have whatever name it was last.
Correction. It happens sometimes but not others.
I just tried it several times. Simply switching from one layout to another, (not Window > New Window - the window name was updated sometimes but not others.
I’ll just keep an eye on it and see if I can see a pattern.
Thanks for your help.
Yup. I got that.
what version of Fm you on?
Try posting the file and describe exactly how to reproduce the errant title.
To post the file relply and use the advanced editor and attach the file in bottom left corner
I’m going to watch it more closely for a while to see if I can figure out how to reproduce the problem.
In the Layout Setup...Script trigger tab, for each trigger, you can set different modes (Find, Browse, Preview). Are all of those checked?