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

Guys,

 

The old guy trying to learn new tricks.. I am trying to devise a little help for a friend. The problem :

 

A layout with a map pasted on it. On this map I need to set buttons with names, and want to see related record windows popup when I click the button.

The layout is in the same database the record I am looking to visualize.

I tried several way, but I only get the first record in the list..!!! I may not be smart enough for the task..! New to FMP 12, and not really familiar with triggers capabilities...!!

 

However I am wondering how could I do to have the button name taken into consideration by FM and popup the window the correct record. 

 

Thanks in advance

 

 

 

For some reason, buttons don't pass information about themselves when clicked, e.g. you can't pass a script parameter of "Self" and get the button's object name.

 

What you can do is assign each button a script parameter, which could be the search criteria, which I'm guessing might be a city name.

 

Your script could then go to the appropriate layout, enter Find mode, and Set Field[ Get(ScriptParameter) ]. Etc.

  • Author

Thanks,

Interesting approach, I´ll work on it and keep you posted.

On other hand, someone should convince those guys to have that capability added in the next upgrade; it would be a great advance in FMP.

Remember that an object in a portal knows what record it is attached to.

  • Author

Thanks,

 

Of course, but the case is that the background is a map, and on the map are objects (buttons). In that case how can I define button through the relationship ???. Using fields instead of buttons..??

Another lead to follow, I like this..

As I said, someone need to convince FMP fellows to add the "self" parameter (or similar) to a button, which certainly would expand FMP capabilities.

rgds

You put a portal on the layout and put the button inside the portal.

 

Portals do not have to be large; and they do not have to be multi-row.

See attached. 

 

All the buttons are inside single row portals and all the button scripts are the same. They just pass the contents of the field as a parameter.

 

The only difference is that each portal has a simple filter to limit its contents.

 

For purposes of the example, the SE portal has been made transparent by setting line to none and fill to none.

PortalMapButton.fmp12.zip

  • Author

Whoaa,

Effectively, that is a good "turn around" of the problem, Thanks a lot guys, very much appreciated

UPDATE: two approaches demonstrated.

 

On the NE/SE portals, the field contents are passed as parameters as in the first example.

 

On the NW/SW portals, no parameter is passed. The script captures the contents of the field directly.

PortalMapButton.fmp12.zip

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.