Jump to content

This topic is 1865 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have placed a sliding panel on my users dashboard screen and I'm trying to get FM to remember what panel the user was on whenever they leave the dashboard layout. When the user returns to the dashboard they are presented with the panel they were originally viewing.

Is there a way to get FileMaker to remember the active panel or must the panels be labeled as objects?

Link to post
Share on other sites
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Posts

Yes, you can ask FM for what the frontmost tab(s) are and then use "goto object" to reselect them.     Here's a custom function that will return the list of active tabs (can be multiple if you tabs

Yes, you can ask FM for what the frontmost tab(s) are and then use "goto object" to reselect them.  

 

Here's a custom function that will return the list of active tabs (can be multiple if you tabs within tabs)

 

/*

_UI_frontTabs( layoutObjects; parent)

example:

_UI_frontTabs ( LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ) ) ; "" )

*/  

 

Let( [

 

thisValue = GetValue ( layoutObjects; 1 );

 

isFront = GetLayoutObjectAttribute ( thisValue ; "isFrontTabPanel" );

 

isTop =  IsEmpty( GetLayoutObjectAttribute ( thisValue ; "EnclosingObject"));

 

myParent = GetLayoutObjectAttribute ( thisValue ; "EnclosingObject");

 

myobjects = GetLayoutObjectAttribute ( thisValue ; "ContainedObjects");

 

parent = Case( isFront and isTop; thisValue; GetValue(parent; 1))

 

 

];

 

Case ( ValueCount ( layoutObjects ) > 0;

 

Case (

isFront and isTop ;   thisValue & "¶" ;

isFront and (myParent = parent ) ;   thisValue & "¶" & _UI_frontTabs ( myobjects ; thisvalue) 

) & 

 

_UI_frontTabs ( RightValues ( layoutObjects; ValueCount ( layoutObjects ) - 1) ; parent)

 

)

)

  • Like 1
Link to post
Share on other sites

This topic is 1865 days old. Please don't post here. Open a new topic instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.