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.

Restricting access to records when using XSLT in Custom Web Publishing

Featured Replies

I have recently needed to start making part of a solution available to the web via XSLT. I have used IWP for ages but it has limitations for this application that meant it cannot be used. So I used the Site Assistant and got a simple record list XSL template (displaying an HTML table of data), edited it a bit and got everything working very nicely (God bless Filemaker).

Anyway, after some basic use I needed to start displaying more data, some of which is commercially sensitive so I needed to start using more record-level access privileges so I did a simple limited access rule that said that if get(username) equals a creator field in the record, then the user has privileges to see the record.

However, CWP and the XML/XSLT have a strange way of enforcing this. In FMP client, if you find all records, it actually just finds those that you have record level access to, i.e. those that you don't have access to do not come up in the found set. Slightly annoyingly, invoking the &-findall argument at the end of the XSLT URL shows a row for every record regardless of access - it just does not show any data for those that you don't have record level access to.

This is a bit of a problem as it could be disclosing too much info to, for example, show, "we have taken 20 orders today and 12 of them are from you!".

Could anyone suggest how this behaviour can be prevented or worked around?

Many thanks in advance for all assistance.

Michael

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.