Jump to content

Contractor / Project DB


Tumbao

This topic is 5420 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I'm a beginner with FM, so please bear with me.

I am trying to set up a seemingly simple DB that tracks contractors and projects. What I would like to do is being able to assign Contractor A to multiple projects. But on a second layout, I want to be able to select a project from a dropdown list and then automatically see all the contractors that have been assigned to this project.

For some reason I am not able to structure this correctly. I always end up with some circular reference.

Could someone please point me into the right direction?

Thank you!

Link to comment
Share on other sites

Not necessarily, just if it already exists, may be more effective not to have to reinvent the wheel.

you may also check this out...

http://www.excelisys.com/web/exfiles/ex-biz-tracker.php

Allows you to look under the hood as it is fully unlocked.

Link to comment
Share on other sites

  • Newbies

I think I figured it out.

I set up three tables. One for contractors, one for projects and one for contractor_project_relationship.

I set up a portal in each of the first two tables and get the results as expected.

Now I have to figure out how to avoid empty entries in a portal when quitting out of a dropdown list...

Link to comment
Share on other sites

You are correct, (I had a post but i lost it when my browser crashed) - glad you figured it out.

Also, I would make the portal so that it doesn't create records, then setup a button and Script the creation of records into the join table.

Click the button grabs the ID of Contractor into a variable goes to the join table creates a new record sets the Contractor ID, returns to the original table. Then you can select the row to assign it a project to it.

You could get a bit more, creative, have a global field that is a drop down list of projects then using triggers perform the script taking with you the Contractor ID and the Project ID setting data in the join table then returning and clearing out your global project drop down menu.

Stephen

Link to comment
Share on other sites

This topic is 5420 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.