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.

object name from button click

Featured Replies

Is there any way that a click on a button can pass the object name of that button to the script that the button runs?

It would be OK if this is done as a script param, or some other way. As long as I don't have to enter the object name again as a hard-coded script param.

Thanks!

M.

Yes, there is a "not common" way !

Each button have to be a rep of a repeating field, than you can pass the Get ( CalculationRepetitionNumber ) as the parameter to a $$ variable by using ToolTips.

  • Author

Hmm, clever, but in this case that won't work. The buttons can't be repeating fields.

Anyone else know of a different way to do this?

Hmm, clever, but in this case that won't work. The buttons can't be repeating fields.

Why ?

If they are pictures, the repeating field can be a container field.

Even $ variable can be used !

  • Author

Even $ variable can be used !

What do you mean?

Are you still talking about repeating fields, or some other method?

Thanks!

Still repeating field !

But w/o $$, only $.

BTW: why don't you want to use a repeating field for all your buttons ?

This is an example of what I said

Buttons.zip

  • Author

OK, I give up. How does that work?

How does $button end up = the # of the repetition clicked? I don't see where the variable is being set.. there's no script setting it, no calc.

Do tell.

It's done in the tooltips setup. That's also the main disadvantage of this method: you must position the cursor above the button and wait until the tooltip updates, before clicking.

  • Author

Hmm, actually on my machine that isn't true, which is why I didn't suspect a tooltip. The variable updates as soon as the cursor moves over the object, long before the tooltip fires. I've verified this w/ the Data Viewer.

Good trick, although it still won't work for me because I can't make my buttons repeating fields. (And you're just going to have to trust me on that one, Daniele. It's not worth it to discuss the reasons.)

It's done in the tooltips setup. That's also the main disadvantage of this method: you must position the cursor above the button and wait until the tooltip updates, before clicking.

This isn't true on windows machines: the $variable updates instantly, even before the ToolTip shows itself

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.