Kevin Cheesman Posted June 3, 2009 Posted June 3, 2009 I have a customer table and a bookings table linked on Cust ID I have a portal on the customer table that show bookings for that customer. If I click the booking number - using to go related record - I go to a booking for for that customer but not the correct booking as clicked, I just get a record set of all the booking for that customer Any ideas?
Mif Posted June 3, 2009 Posted June 3, 2009 If I understand you correctly, you want to be able to go to an individual booking record related to the selected booking from the portal list you place on your customers layout. Assuming this, here is an approach: 1. create a field in your customer table called "bookingID_temp" and make it a global number field. 2. create a relationship from that field in the customer table to the bookingID field in the bookings table. (I am assuming you have a bookingID field that is automatically serialized and unique) 3. create a script with two steps. a/ Set Field - set the "bookingID_temp" field with bookingID number from the portal. b/ Go to Related Record - go to the related booking record (based on that new relationship) and make sure that you go to a layout that is based on the bookings table. Also click the checkbox tell it to match only the current record an not all the records in the found set. 4. place a button in the bookings portal row on your original customer layout and assign the new script to it. When you click the button, the script will assign that bookingID to the tempglobal field and then go to the related booking record on a the booking layout you specified.
Kevin Cheesman Posted June 3, 2009 Author Posted June 3, 2009 If I add another relationship the bookings disappear from the portal on my customer form. I have Cust_ID_pk in my main form and Cust_ID_fk linked in the bookings table.
Newbies Cora Posted June 8, 2009 Newbies Posted June 8, 2009 Hi, I would like to know how you made those "view" buttons. That is exactly what I need and haven't been able to figure out how to do. Thanks.
bcooney Posted June 8, 2009 Posted June 8, 2009 Welcome, Cora. Select a button and choose Format>Button Setup. You'll see I'm using gtrr from Parent to Child.
Newbies Cora Posted June 24, 2009 Newbies Posted June 24, 2009 I don't seem to be able to access any information about formats. Every time I try, I get a message that says I do not have access to that information (or some such). Maybe I am not doing it right...
Recommended Posts
This topic is 5726 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