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.

Featured Replies

Hi,

I'm working on a solution for a medical office. I have a calendar system in it and a line-item DB holds the userfiles (doctors, nurses etc). The main DB holds all appointments, and a selfrelated portal is setup. A calc field calculates the date selected + the ID of the user (01-01-2003 G1, where G1 is the ID). When clicked on a date it will set the selected date in the calcfield but until a user is selected (providing the ID) the portal will stay empty. However, I would like to see the portal showing all appointments for that dat for all users. Only after selecting a user it should filter.

Is there a way to enter a wildcard or something that the relationship understands? I've tried the '?' and '*', but those don't hold up. I could create a 'masteruser' and set it's ID to the standard ID everytime a date is clicked but that would mean it would show up in the portal aswell...

TIA

JP

You need to use two separate calculated fields for your self-join relationship.

Use this for the left side key field:

DateToText(DateSelected)&UserID

and this calculation for the right side key field:

DateToText(DateSelected)&UserID&"

  • Author

Hi,

I've tried the above calcs and I think they would work but I can't index the calculation, making them useless for the self-join.

The 'DateSelected' is a global that contains a date set by the calendar, the 'UserID' is a global with the userID set by a script (from the line item DB).

Both calculations did what they should do (thanks for pointing that out) but I could not make then work for a selfjoin frown.gif

Any thoughts

JP

Is there anyway you could use date and text field for that purpose. You could cal a update script when the entry is processed to clear the values entered.

If you need these globals in your script, keep them and call a subscript to set d_date andt_ID using these globals.

The correct calculations should be:

Use this for the left side key field:

DateToText(DateSelected)&UserID

and this calculation for the right side key field:

DateToText(Date)&UserID&"

Correct !!!

Hmm...Left....Right. Where's my left ? Oh yeah. laugh.gif

Sorry for the stupid answer Balooka...

  • Author

hehe thank you both!

Ugo, thats ok - I was wondering why you gave me that solution to my problem. Haha, I actually tried to get that working but its a mess when you update ALL the regular fields in ALL the recourds that are found. This would require a find and a loop for setting the correct fields etc... smile.gif Thanks anyway smile.gif

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.