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.

Using empty web-viewer to capture button press out of fields

Featured Replies

Hi all

I have used a technique that Mr.Vodka documents to capture mouse button presses outside of field boxes. I have used an empty web viewer to do this. The idea is to stop filemaker from auto-saving the field contents that have been modified. All works well to an extent.

I have anchored the web viewer so that it auto resizes when the window is resized. The problem I am having is that when a click is performed at the bottom of the screen when the window has been resized vertically larger than its default setting, the click is not captured by the web viewer and field contents are auto-saved. However this is not the case horizontally??

I have checked that the web-viewer is auto-resizing correctly by using a fill colour that differs from the background colour and everything seems to resize acordingly.

Does anyone have any ideas as to why this is happening?

Thanks in advance

Lee

Could you post a file showing the problem?

  • Author

Thanks

I should mention that this problem only occurs on the MAC. Windows does not allow me to stretch the window larger than the size it was developed.

Could I PM the file?

Lee

Edited by Guest

I cannot reproduce the problem (on a Mac). If you can do so in a new file, please attach it here.

  • Author

Ok I have took the bulk out of the database as the file is extremely large.

I have left functionality in adding, editing and viewing Artwork Types.

The web viewer has only been applied to add and edit.

One web viewer is filled red to make it visible.

The issue is that everything is scripted and adding or editing records needs to be submitted by pressing a submit button. One of the validation checks is to test for uniqueness using a count on a self-join. If the web viewer does not capture a mouse button press outside of fields or buttons, the record is auto-saved, hence, the uniqueness test fails.

When the window is stretched, the bottom of the web viewer does not capture the mouse click even though it is visibly auto-resizing. This only seems to be the case on the mac.

Thanks for your time

Lee

MayaGalleryFMForum.zip

I see two web viewers - I believe you need to ungroup them.

  • Author

I'll try that now and get it tested on a mac.

Thanks

To clarify: grouping the two web viewers places the entire grouped object in the header. "Hanging" objects from the header into other parts is an old trick, but it is not a supported feature and it has its quirks.

  • Author

That's done the trick.

A little of topic but which key do I hold down to resize objects with the mouse one pixel at a time?

And how do I set header size in pixels without dragging the part tab.

Thanks again

Lee

On a Mac, it's the Command key. To set a part size, select it (by clicking on its tab), then enter some numbers into the Position tab of the Inspector.

Not sure why you need a header in a form layout, though.

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.