April 20, 200916 yr I'm going to be kicking myself when I read the answer to this question but I can't for the life of me figure it out on my own. I'd like to be able to press a button in my main window to pop up a new window with a layout for data entry. In this window, I'd like to only see the one record I wanted to create the entry for. The scenario: Each patient has a number of notes associated with them. The way I've got it set up right now, is that I can flip through patient info in my "main" window. From there, there are various buttons that I'd like to trigger a script to open a new window with only the current patient as the found set. If the button triggers a script to go to the layout, it does go to the proper record, but I don't need other records to be accessible from that window. Does that make any sense? I'm going attach a file with the database so you can see what I'm referring to. Under the layout called "Dates and Links" there's a button that says "BPSA". I'd like clicking on that to do the same thing as opening a new window with the layout "BPSA" and finding records based on "patientID_pk" in that window. New_CH.fp7.zip
April 20, 200916 yr Use Go to Related Record, not just go to layout. Also I am unsure what you are trying to do with this globals table in your file. The field is not even set as global. Second. The one script that you have in the file doesnt really make sense. The first step alone is setting the supposed global field to either a value of 1 or 0. globals::patientID_fk=New CH::patientID_pk If it is supposed to be capturing the customer ID, then just set the global field to: New CH::patientID_pk Also your perform find step shouldnt have that restore criteria because it isnt set to anything.
April 20, 200916 yr Author Yeah. That script was in mid revision when I threw my hands up and decided to post here.
Create an account or sign in to comment