Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trying to capture slide/tab object name as

Featured Replies

  • Newbies

I am trying to capture the object name of a slide using the OnPanelSwitch script trigger  so that I can return to the slide after going to another layout.

The problem is that because the script trigger is pre (processed) it captures the name of the slide that it is leaving not the current slide it arrives at.

This is the script that it triggers:

Set Variable [ $panellnfo ; Value: Get ( TriggerCurrentPanel ) ]
Set Variable [ $$objectName ; Value: GetValue ( $panellnfo ; 2 ) ]

Any ideas...?

I am not sure I fully understand the scenario you describe. In any case:

  • the Get ( TriggerCurrentPanel ) function returns the index and object name of the panel to switch from when the OnPanelSwitch script trigger is activated; 
  • the Get ( TriggerTargetPanel ) function returns the index and the object name of the panel to switch to when the OnPanelSwitch script trigger is activated.

Note that unless your script exits with a false result, the triggering event will be processed immediately after the script has run out -  so it's not clear why you need this.

 

Edited by comment

  • Author
  • Newbies

Thank you, I didn't know about Get(TriggerTargetPanel) for some reason.  That works wonderfully. 

Just a quick follow up question.  Get(TriggerCurrentPanel)and Get(TriggerCurrentPanel) return a list that contain the "slide number" and the slide object name.  Can the slide number be used in any useful way to navigate to a slide.  That would be handy as I wouldn't have name all the slides and could move them around in order with out renaming them into the right sequence order.  

Thank you again for your reply

7 hours ago, Phil66 said:

Can the slide number be used in any useful way to navigate to a slide.

Not that I know of.

 

I fell into this vortex when I redid my business solution with FM16 a few years ago. I think I know what you are going for.  
The problem for me was it got so complicated (for me) with all the script triggers, and global variables, and calculations, that adding/editing layouts became such a headache.  It wouldn't always refresh, or if on panel had a portal, that would cause a hit/delay.  Sometimes refresh object/refresh portal, refresh layout wouldn't work consistently.
I ended up abandoning that and continuing with simpler layouts.

  • Author
  • Newbies
On 12/8/2020 at 5:49 PM, comment said:

Not that I know of.

 

Yes it seems unnecessary.  Thanks again

9 hours ago, Steve Martino said:

I fell into this vortex when I redid my business solution with FM16 a few years ago. I think I know what you are going for.  
The problem for me was it got so complicated (for me) with all the script triggers, and global variables, and calculations, that adding/editing layouts became such a headache.  It wouldn't always refresh, or if on panel had a portal, that would cause a hit/delay.  Sometimes refresh object/refresh portal, refresh layout wouldn't work consistently.
I ended up abandoning that and continuing with simpler layouts.

 

9 hours ago, Steve Martino said:

I fell into this vortex when I redid my business solution with FM16 a few years ago. I think I know what you are going for.  
The problem for me was it got so complicated (for me) with all the script triggers, and global variables, and calculations, that adding/editing layouts became such a headache.  It wouldn't always refresh, or if on panel had a portal, that would cause a hit/delay.  Sometimes refresh object/refresh portal, refresh layout wouldn't work consistently.
I ended up abandoning that and continuing with simpler layouts.

agreed things get out of hand pretty quickly but my problem in this case was simply not knowing the right script trigger

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.