Jump 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.

Get ( TriggerTargetPanel ) and Get ( TriggerCurrentPanel ) not working

Featured Replies

Hi all,

I'm trying to use the above mentioned functions to hide/show my search bar when switching between certain panels, but the functions don't return what they are supposed to. I attached a script to OnPanelSwitch that flips a hide variable between 0 and 1, which works, but Get functions just show 0 in my Data Viewer. What could I be missing?

Thanks.

Without knowing exactly what you did, we can only guess. I don't like guessing. 

Take apart the attached demo file and see if you can spot what's missing in yours.

OnPanelSwitch.fmp12

  • Author

So the Get functions do work. I overlooked the fact that they don't retain the returned values after a panel has switched, which is why I saw no change in the Data Viewer.

@comment I modified your demo file to replicate what I was trying to achieve with the search field. It's supposed to hide when you're on some panels and show when on others. It works, but only if you refresh the object or the whole window. Interesting why Hide/Show needs a refresh to work in this case.

OnPanelSwitch_Modified.fmp12

1 hour ago, IlliaFM said:

Interesting why Hide/Show needs a refresh to work in this case.

Because Claris did not bother to add an "event listener" to monitor variables like they have with fields:

OnPanelSwitch_Modified_Again.fmp12

  • 1 month later...
2 minutes ago, Gopala Krishnam Raju Ambati said:

hide condition of searchbar is Objects::gHideSearchBar how this is working???

Please ask a more specific question. 

 

2 hours ago, comment said:

Please ask a more specific question. 

 

GetValue ( Get ( TriggerTargetPanel ) ; 2) = "three"

how is this working - when script is RUN" gHideSearchBar GETTING VALUE 1 how its happening ???? 🥵

The result of any expression that compares two values, such as:

GetValue ( Get ( TriggerTargetPanel ) ; 2 ) = "Three"

is a Boolean - either True (1) of False (0).

 

12 hours ago, comment said:

The result of any expression that compares two values, such as:

GetValue ( Get ( TriggerTargetPanel ) ; 2 ) = "Three"

is a Boolean - either True (1) of False (0).

 

some of ur scripts are onliners but ******* still i am not at all understanding my medical brain getting heated up even in dreams im seeing ur script thinking how how how :( :(  :( 

Create an account or sign in to comment

Important Information

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

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.