The best way would be to get FMP Advanced as it has a built in data viewer. Another option could be to set a global field.
Are you sure that you named all your objects on the layout? You can name them in the new Inspector.
I can see how Advanced would be indispensible for this sort of stuff.
Indeed, I had not previously named the tab panels, I rashly thought the objects would already have some sort of default name and those were what I was trying to find out.
Once I named the tabs in the tab control, I could GetLayoutObjectAttribute("tab2"; "objectType") and display the results of that ("tab panel") in the custom dialog. Still having trouble with displaying LayoutOblectNames from my $list variable tho. Before naming, I guess $list was empty, no wonder it did not show anything.
Not sure. The script should be working.
What happens if you just shorten it up to:
Show Custom Dialog [ LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ) ) ]
No, that doesn't show anything either.
You have to be missing something small. If indeed you DID name your objects, then that direct calc in the custom menu should show it.
Try creating a calculation field with teh same formula.
Show Custom Dialog [ Title: "test tab2"; Message: LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ) );
Buttons: “OK”, “Cancel” ]
Set Variable [ $$thisFile; Value:Get(FileName) ]
Set Variable [ $$thisLayout; Value:Get(LayoutName) ]
And I could show both of them in the dialog.
Set Variable [ $$list; Value:LayoutObjectNames ( $$thisFile ; $$thisLayout) ]
and could not display anything from $$list in the dialog.
My named tab control panels are working in the following type If statements for the different tab panes:
If [ GetLayoutObjectAttribute ( "tab1" ; "isFrontTabPanel" ) ]
So I know my tab panes are named.
I've even tried naming some other oblects.
I've tried putting 'LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName )' and also $$list
into various fields and calculations in various ways and also the dialog. Nothing I have done shows anything from LayoutObjectNames
I'm thinkingLayoutObjectNames does not produce anything for some reason.
HAve you tried this on a new file. That function should work as is.
You should be getting a result such as
(if there aren't any named objects within your tabs.)