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.

Featured Replies

Hi folks,

Is there any way that a developer can get the associated action of a button without physically checking the buttons in layout mode?

To see whether or not the button has an action. If it has, then is it single script step or a script (what is the script name)? 

 

Warm regards,

 

Regards.

  • Author

Thanks Ocean West,

 

I am aware of DDR and FM Perception  or similar products. My goal is to use this in conditional formatting to disable or enable buttons.

  • Author

Not actually, I wanna gray out (Or apply any other actions) those buttons that has no action associated to them on layout load.

2 hours ago, siroos12 said:

Not actually, I wanna gray out (Or apply any other actions) those buttons that has no action associated to them on layout load.

Could you give a real-world example of how this would be used?

Would this work for you:

1. add a Hide condition to each button that references a $$variable

2. add a triggered layout or record-load script that sets the $$variable

Buttons don't have much "self-awareness" so your options are limited I think.

Tom,

The link I posted is to a Friday Nite Challenge by Todd Geist that took place on Friday 13th 2018, on community.filemaker.com, having to do with hiding and showing segments when wanted.

Several members met the challenge and provided their idea of the answers.

Lee

  • Author
4 hours ago, Lee Smith said:

Hi Siroos,

See if this topic helps/

https://community.filemaker.com/thread/185397

Lee

Awesome methods. Thanks for that. This helps us a lot!

 

4 hours ago, Fitch said:

Could you give a real-world example of how this would be used?

Would this work for you:

1. add a Hide condition to each button that references a $$variable

2. add a triggered layout or record-load script that sets the $$variable

Buttons don't have much "self-awareness" so your options are limited I think.

Thanks Tom, 

 

I am aware of this technique and already being using it, but I just want to prevent the trigger script. The methods o that folks shared on Tod's challenge are pretty helpful.

 

Thanks for your input.

Many times  I will come up with an abstract index of "actions" - create a calculation on the table where that will result in a simple number 1, 2, 3, 4, 5 etc

then use that value to make your hide object when condition work - or other formatting conditions, or even branches in your scripts based on the value.

  • isAction = 1 then hide
  • isAction =2 format icon green etc. 

Remember you can set the hide object when calc to use a  "LET" notation to declare $$variables since "hide" feature needs to execute very quickly it's one of the first things that is evaluated - so by the time the window draws you can use that $$var to format or hide elements or even display a merge variable on the layout.

Hi Ocean West,

You just described this file you and I work on 3 years ago.

Is this what you mean?

Lee

GlyphsAlt-1.fmp12

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.