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.

test x = y if y is in a carriage-return list ?

Featured Replies

I am starting to open my eyes to building preferences for my system... wow are the possibilities cool...

I have a field in an accounts table called "group"

I want to be able to assign each user to various groups:

data entry

manager

director

each with different privileges.

Can I have the "group" field be a simple text field, and then if I want to assign someone to more

than one group, just enter both group names delimited by a carriage return ??

I guess what I want to know is, can I easily test for Does a field = (or maybe contain) "y"

when that field might contain something like this:

g

p

x

y

z

Yes you can do a pattern count for the group:

case(patterncount(group;"data entry")>0; result)

Note that it is often better to put the Assigned Groups in a join table instead of a multi-key. This allows more flexibility in changing groups and reporting. This patterncount() then requires a dynamic value list of Assigned Groups. The test would then be:

case( patterncount( ValueListItems( get( filename ); "Assigned Groups") "data entry") > 0 ; result )

Why not use a checkbox field for this?

If the value list is large, Position may be faster than PatternCount.

Case( Position(

  • Author

Ender -- thanks! and I think I understand the reason to go with a join table.. perhaps I'll try that though at first glance I don't understand how to create the value list of assignments.. (or.. i might not understand how it fits in relationally).. but if I have a sec.. I'll give it a try!!

Transpower-- do you mean, instead of patterncount ??

thanks everyone

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.