Self explanatory I hope...
Nice use of sample dialogs. Self-explanatory? Perhaps. But just in case let me add tuppence worth—I think this is an excellent suggestion:
1. It would be REALLY nice if, when a layout's context is changed to a different Table Occurrence which has the same underlying table as the original, if there was the option to also automatically change all fields to the new context.
2. Of course this would not apply if the layout was assigned to a different underlying table, or to fields on the original layout that were from TOs other than the layout's base table.
3. The same principle could apply when a portal is reassigned to a different relationship but having the same underlying table.
4. Both of these changes would save a huge amount of time we developers presently have to spend manually reassigning every field when employing a very common technique of duplicating a layout or portal—because it has all the design and formatting we need to apply in a new context.
Thank you Cécile for setting this ball rolling.
I would settle for selecting the fields in the layout object window and specifying a TO change in bulk if all are from the same table. This is one of the most annoying tasks to accomplish in FM.
I must say I would be very happy just with the select and reassign as well.
My father always told me aim high ;-)
Yep. That would also suit the purpose.
While waiting to have all this natively, here is a tool that can help (hopefully): https://community.filemaker.com/ideas/2883#comment-30014
bigtom wrote: …This is one of the most annoying tasks to accomplish in FM.
…This is one of the most annoying tasks to accomplish in FM.
If you use the (completely free) fmWorkMate toolbox it's peanuts!
...and if you need to do it again, for step 4 just press ALT+SHIFT+CMD+C.
For Example ... in the FM17 Assets starter file I duplicated the Assets table and renamed it "Estimate Data":
Then I copied the contents of the Asset Detail layout and converted using fmCheckMate:
In the new Estimate Data Layout I adjusted the theme and layout parts and pasted the objects back in:
Et voilá ! All the fields have been recontextualized.
At least all of the main table fields ... The portal fields are still hanging on the Assignments TO.
So ... I correct the TO Graph
And now I'd like to recontextualize layout content (and scripts, etc.) ... converting ALL TO references to the new context...
For multiple replcements it is easier to use fmTextConverter:
Your conversion function is ready, now you need just apply it:
This should convert your Layout objects great!
Now the best bit is ...
...repeat the above for any scripts too! (maybe do this first in fact, if the scripts are called by buttons)
And to TEST your conversion use fmCheckMate's Layout Analysis to analyse the layout for breakages during pasting.
Always happy to help
Looks like a nifty plugin. I downloaded MBS the other day because I had a lot of search and replace to do. The problem, as for every software, is the initial learning curve! I was quickly overwhelmed with having to learn the helpful tool while pressed for time to do the actual task. Ended up doing manually. Hopefully I find time to get familiar with those plugins that seem to really make a difference once you are comfortable with them.
I sorta understand now, however, why many decry having to get and learn so many non native tools to do a whole set of actions while many of these, sometimes basic, functionalities seem to come natively in other platforms.
Don't give up on pursuing your initial proposal though. There have been plenty of developments in FM over the years that started out as a nifty workaround or plugin devised by a FM developer.
Thanks for trying our MBS Plugin.
Let me know if you have problems.
Retrieving data ...