![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I asked this years ago, and someone named Henry gave me a nice answer, but I can't get his solution to work. Does anyone have any suggestions for me? Here is the scenario: I have a tree, a car, and a building asset. I have 10 shots. I would like to create a relational link between them. When I am on my shot layout, I would like to see a list of all the assets that are to be included in the shot (the tree, car, building, or any cmbination therein). Now when I switch to my asset layout I want to see a list of all shots that use each individual asset. I have been able to make layouts that will only show one shot or one asset at a time. Its driving me bonkers. Can anyone help? I from my last google searching extravaganza, I think I might need to use portals, but I'm not sure. Any leads appreciated, thanks! |
)
#3
| |||
| |||
|
|
"dc" <damien... (AT) gmail (DOT) com> wrote in message news:83eb2f51-2427-4350-9773-a4cf3d08f140 (AT) o30g2000yqb (DOT) googlegroups.com... I asked this years ago, and someone named Henry gave me a nice answer, but I can't get his solution to work. *Does anyone have any suggestions for me? Here is the scenario: *I have a tree, a car, and a building asset. I have 10 shots. I would like to create a relational link between them. When I am on my shot layout, I would like to see a list of all the assets that are to be included in the shot (the tree, car, building, or any cmbination therein). *Now when I switch to my asset layout I want to see a list of all shots that *use each individual asset. I have been able to make layouts that will only show one shot or one asset at a time. Its driving me bonkers. Can anyone help? *I from my last google searching extravaganza, I think I might need to use portals, but I'm not sure. Any leads appreciated, thanks! Yes. A Portal will show data from each related record, so that sounds like exactly what you need. Youve already got the Relationship set-up so that each shot can be linkedto various assets, and vice-versa, so all you need to do is put a Portal on each Layout set to use the appropriate Relationship, and then put Fields into the first row of the Portal (making sure the Fields are via that Relationship using the pop-up menu at the top of the "pick a field" window) ... just make sure the fields are within that first row's boundaries. Back in Browse mode, the Portal should show all the appropriate related records. You may need to set the Portal to show a vertical scroll bar so you can see them all. If the Relationship is set to "allow creation of related records", then you can also use the bottom row of the Portal to enter new Related data. Helpful Harry * ) |
#4
| |||
| |||
|
|
Youve already got the Relationship set-up so that each shot can be linked to various assets, and vice-versa, so all you need to do is put a Portal on each Layout set to use the appropriate Relationship, and then put Fields into the first row of the Portal (making sure the Fields are via that Relationship using the pop-up menu at the top of the "pick a field" window) ... just make sure the fields are within that first row's boundaries. Back in Browse mode, the Portal should show all the appropriate related records. You may need to set the Portal to show a vertical scroll bar so you can see them all. If the Relationship is set to "allow creation of related records", then you can also use the bottom row of the Portal to enter new Related data. Helpful Harry ) |
#5
| |||
| |||
|
|
Thanks Harry. You were the one who helped me before. I have built the following .fp7 file using FMP 11. It is the closest I have come to getting this to work. I can see the list of shots to select from the drop down box when I am in assets, and vice versa. However, because it does not store a value, I can not seem to store any viable data in here. The file I have made is: http://files.me.com/damiencarr/lg1yts Harry, could you take a look at my relationships and tell me what you think I might be doing wrong? I've been trying to wrap my head around many-to-many relationships. I just don't think I have it nailed yet. Thanks for your help! dc |
)
#6
| |||
| |||
|
|
In article aa0e117f-7e98-4c6d-99dc-31341fb45f17...oglegroups.com>, dc damienvfx (AT) gmail (DOT) com> wrote: Thanks Harry. You were the one who helped me before. I have built the following .fp7 file using FMP 11. It is the closest I have come to getting this to work. I can see the list of shots to select from the drop down box when I am in assets, and vice versa. However, because it does not store a value, I can not seem to store any viable data in here. The file I have made is: http://files.me.com/damiencarr/lg1yts Harry, could you take a look at my relationships and tell me what you think I might be doing wrong? I've been trying to wrap my head around many-to-many relationships. I just don't think I have it nailed yet. Thanks for your help! dc Sorry, I don't have FileMaker 11. The newest I can use is FileMaker 9 (which might open the files), but that's only at one client's offices. It looks like Ursus has already had a look though. Helpful Harry )
|
#7
| |||
| |||
|
|
Youve already got the Relationship set-up so that each shot can be linked to various assets, and vice-versa, so all you need to do is put a Portal on each Layout set to use the appropriate Relationship, and then put Fields into the first row of the Portal (making sure the Fields are via that Relationship using the pop-up menu at the top of the "pick a field" window) ... just make sure the fields are within that first row's boundaries. Back in Browse mode, the Portal should show all the appropriate related records. You may need to set the Portal to show a vertical scroll bar so you can see them all. If the Relationship is set to "allow creation of related records", then you can also use the bottom row of the Portal to enter new Related data. Helpful Harry )Thanks Harry. *You were the one who helped me before. I have built the following .fp7 file using FMP 11. *It is the closest I have come to getting this to work. *I can see the list of shots to select from the drop down box when I am in assets, and vice versa. However, because it does not store a value, I can not seem to store any viable data in here. *The file I have made is: http://files.me.com/damiencarr/lg1yts Harry, could you take a look at my relationships and tell me what you think I might be doing wrong? *I've been trying to wrap my head around many-to-many relationships. *I just don't think I have it nailed yet. Thanks for your help! dc ---------------------------- Damien, I also had a look. You are getting there, but quite yet. Firstly, at this time there is no need to repeat the shot and asset fields within the join table. A portal will look through all levels of valid releationships at once. On the layout of Shots you should change the portal and field from link to asset. Secondly your naming-conventions need te be changed. You have to name your join fienlds in such a way that it is obvious if they are primary keys (automatically created) or secondary (entred from an existing primary keys). A common way to do this is naming them pk_MyId and sk_MyId. But anything that works for you is ok. If your solution grows a tablename like Link will be confusing. What doesit link? I use a system where I call the table ShotsAssets. Then you need a script to create the join. I have done all this, and some more, and made an example for you. Download it at:https://www.wetransfer.com/dl.php?co...25bfcfa6615cab... Send this also to your gmail adress. PLEASE ALL OTHER READERS DO NOT DOWNLOAD THIS. It has a download once-only status. Be aware: there is much more to discover on many2many. There is no error checking in my script. Is has a nasty layout. -- Keep well / Hou je goed Ursus |
![]() |
| Thread Tools | |
| Display Modes | |
| |