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.

IWP button in portal selects wrong record

Featured Replies

Hi there,

I'm building a database which I want to publish using IWP.

One thing I cannot get functioning are buttons in portal rows which should set a field with the value of that portal row field.

In filemaker itself it functions like it should, in the webbrowser it always uses the value of the first row.

Even tests with Get ( PortalRowNumber ) results always in 0

I found that every button in de generated webpage gets an unique value so I guess there should be a way to do it.

Any idea's ?

Thanks

Marcel

maybe you need to leave a little more room to ensure the button is completely within the portal row. Positioning is always a little bit off between FMP and IWP, so you need to leave room for error.

  • Author

tried to give it more space like you suggested but it still doesn't work....

can you post the file to see if others can reproduce the problem?

I wonder what you do with the output for the function, if you wish to store it into a field, should you remember to "Commit" the result?? If you instead uses it as a scriptparameter, will it only survive as long as the script runs, unless it's passed on as a new parameter to yet another script.

--sd

  • 3 weeks later...

Does the table with the portal in it have any records? I found this to be the problem in exactly the case you are describing - the portal button worked fine when accessing Filemaker directly, but via IWP it would always return data from the first portal row.

Then I realised that the table with the portal was made up entirely of global fields, and had no records. I added a record and 'voila!', the button works. (Only wasted about 2 hours before I figured it out!)

Hope this helps

  • 4 weeks later...
  • Author

I haven't been able to react for a while.

I solved it by just recreating the layout again.

After that, it functioned normally.

Thanks for all your input and suggestions.

Marcel

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.