Noobee Posted August 26, 2010 Posted August 26, 2010 I have a 3 tables: work orders vehicles parts I have a layout with two portals on it: one with work orders which matches a certain vehicle (Only shows work orders for the vehicle indicated) one with parts for the corresponding work order (or at least thats what I would like) right now I have 3 work orders showing for a certain vehicle). Can someone point me in the right direction as to when I click on a work order in one portal ONLY the parts used for that WO populate the other portal? Sorry if none of this makes sense. I'm sure there's an example on here somewhere that shows how to do this, but I can't find it! Thank you in advance!
bcooney Posted August 26, 2010 Posted August 26, 2010 You'll need a global field in the Vehicle table, let's call it gWO because it seems that the layout with the portals in based on a Vehicle table occurrence, right? When the user clicks the Work Order in the portal, you set the gWO global field to that WO_ID. The parts portal uses a new relationship: Vehicle:gWO = Parts::WOID I'll see if I can find an example.
comment Posted August 26, 2010 Posted August 26, 2010 Ahm, version 11? Filtered portals? Variables? http://fmforums.com/forum/showtopic.php?tid/214676/
bcooney Posted August 27, 2010 Posted August 27, 2010 I don't do filtered portals the FM11 way, call me old-fashioned. I work with too many FM10/FM11 mixed environments. Here's an FM10 version. ViewGrandchildren.fp7.zip
comment Posted August 27, 2010 Posted August 27, 2010 I don't do filtered portals I do - call me whatever you will. : ViewGrandchildren11.zip
adyf Posted February 9, 2012 Posted February 9, 2012 I do - call me whatever you will. <img src='http://fmforums.com/forum/public/style_emoticons/default/crazy.gif' class='bbc_emoticon' alt=':' /> Hi Comment, I've downloaded the attached files and tried to study it. For some reason I was expecting to see something in the filtered portal but they are blank for both parent records. Also I'm interested in your calculation in the filter portal dialogue box with $$ etc. Does this calculation differ from any other such as when defining a calculation field for example because it's for a portal?
comment Posted February 9, 2012 Posted February 9, 2012 I was expecting to see something in the filtered portal but they are blank for both parent records. They will be blank until you select a child by clicking on one in the leftmost portal.
adyf Posted February 9, 2012 Posted February 9, 2012 Thanks for the explanation. I like the use of a button and conditional formatting, gives it another dimension. I don't understand the script behind it, set variable etc but I hope to in time.
Recommended Posts
This topic is 4670 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 accountSign in
Already have an account? Sign in here.
Sign In Now