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.

Problem assigning multiple tasks to a joinfile

Featured Replies

I am looking for a real elegent way (in ver 7) to assign multiple tasks in a third table to a second table (the join file) so the people in the first table could be assign the same task. As each ask is added it will dissapear from the third table portal. The sample I made breaks when a person is selected and does not have any tasks assign to them (phil in the sample) , the selection portal relation ship breaks and goes blank.

I'm sure there is a cool rearangement I could do but am not seeing it. The funny thing is that is this was some one elses post the answer would be clear.

Note this is different than cobolt sky's example of a list manager in that items need to be assign to more then one person.

Thanks in advance for your thoughts.

Charles

relation tester.zip

I don't see an elegant way - but here's a brute force version using valuelists.

It creates a multi-key for all unassigned tasks in the people table, and relates using equality directly to another TO of the Tasks table.

  • Author

hmm ... I have to be able to pick the selections from a portal as there is other information that must also be displayedon each portal row.

Any other takers?

Charles

My mod has a portal for selection, it is just based on the new "Unselected Tasks" TO that is joined directly to People TO via the new multi-key I created.

A much *better* complaint, IMO, would be that this will probably be too slow if the number of tasks were increased to a realistic number. wink.gif

Alternatively, you could just ensure a record always exists in the assigns table for each person, and use an invalid task id (like 0) to indicate they have no tasks yet. That will allow your original relationship structure to work directly.

I've attached a revised version of your database, with a solution that may work for you. Basically, there's a new field in the people table called TasksKey, which is a multi-line key for the tasks relationship. It auto-enters all of the task IDs. Then, as you assign and unassign tasks, it removes and adds the respective task ID from the multi-line key.

The one caveat is that it could get cumbersome to add task IDs to existing people's TasksKey fields, but I'll leave that up to you. I'm thinking loops and inserts would do the trick. You could also start by adding task IDs up to 100 or so, and then you'd be covered if you never created more tasks than that.

relation tester.zip

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.