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.

displaying in portal based on a value

Featured Replies

  • Newbies

hello

i have 2 databases, one which has user,level,mid and another database (say db2) has only user.So i setup portal relation between those 2 db's using user.

The field 'level' takes only 3 values say "1,2,3". i have three portals in db2.What i want is all which has level=1 should go to portal1 and level=2 goes to portal2 and so on.

how to do that?

Hope this makes sense

bye

geethanandh

To do what you want you will need to create three new calculating fields (result type = text) in your db2 file, with the formulae:

user & "1"

user & "2"

user & "3"


respectively.

Then create a stored calculating field in db1 (result type = text) which has the formula:

user & level

Finally, create three separate relationships to db1 from within db2, one linking each of the new calculating fields in db2 to the calculating field in db1. Now assign one of these new relationships to each of your three portals.

That's it. Now all the entries for the same user in db1 which have a level of 1 will show in the first protal, level=2 in the second and level=3 in the third. Records for the current user in the db1 for which a level has not been specified (ie level=null) will not appear in any of the three portals.

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.