Adding Multiple Relationship Records w/one form
Posted: Sun Oct 09, 2011 1:49 pm
First, Xataface is saving me so much time putting my network documentation site together! I'm just missing one part.
Currently, I have three tables NetworkDevices, Ports, and Connections. I have the relationships setup to "connect" DevA(PortX) to DevB(PortX) in the connections table but I need a way to reverse that so when DevA(Port 1) is connected to DevB (Port2) another record is added that the same time connecting DevB(Port2) to DevA(Port1). This there a built-in function to synchronously add records like that? If not I could use the " after_action_existing_related_record" trigger but I don't know how to pull all of the relationship information out though the API yet (I'm still learning). Any tips to point me in the right direction would be very helpfull
Thanks,
Currently, I have three tables NetworkDevices, Ports, and Connections. I have the relationships setup to "connect" DevA(PortX) to DevB(PortX) in the connections table but I need a way to reverse that so when DevA(Port 1) is connected to DevB (Port2) another record is added that the same time connecting DevB(Port2) to DevA(Port1). This there a built-in function to synchronously add records like that? If not I could use the " after_action_existing_related_record" trigger but I don't know how to pull all of the relationship information out though the API yet (I'm still learning). Any tips to point me in the right direction would be very helpfull
Thanks,