RobK68 Posted April 27, 2004 Posted April 27, 2004 I have two separate fp7 files. One is a popup calendar, the other is just a form w/ a date field on it. I have a button which calls the popup calendar, from the calendar I am copying the selected date. I then return to the other form and I attempt to paste the copied information. I am returning nothing from the copy. Any ideas? I cannot figure out how to pass the selection back to the other fp7 file. Any advice would be appreciated. Thanks, Rob Kantor
RobK68 Posted April 27, 2004 Author Posted April 27, 2004 Ok, So how can I pass some info from one fp7 file to another? Is there some mechanism built into FM7? Thanks, Rob
-Queue- Posted April 27, 2004 Posted April 27, 2004 You could set a global in the main file using a relationship based on a cartesian join (the X option).
Ender Posted April 28, 2004 Posted April 28, 2004 Depends on how your pop up calendar is built. Is it a layout with 35 related fields (for days) or are the days in some sort of formatted text field?
RobK68 Posted April 28, 2004 Author Posted April 28, 2004 The layout is 35 related fields. I have been able able to create a new layout that is hidden - in which I put the selected date on the layout. I able able to copy this to the clipboard, but I am still having problems pasting back to my other fp7. It is in the clipboard, but my script is not pasting. If I manually ctrl-v it put the value in the field. I am selecting current window and then pasting into the field, but it not working....
RobK68 Posted April 28, 2004 Author Posted April 28, 2004 How does that work? I am not familiar with that ability. Rob
RobK68 Posted April 28, 2004 Author Posted April 28, 2004 Ok -- I figured out what I was doing wrong. I had a perform script on a button to call the calendar. Which just called the calendar. I also had a script in the form which I thought was invoking the calendar. It turns out I was calling the calendar directly and not via my form's script. I ended up having my form call the calendar and then once a day is selected the calendar calls the script in the original form to do the paste into the form's field. Seems very convoluted. Is there a better way? Thanks, Rob
The Shadow Posted April 28, 2004 Posted April 28, 2004 It sounds pretty similar to yours, but you can take a look at my calendar pop-up sample at: http://www.spf-15.com/fmExamples/datePickWindow.fp7.sit It uses a table (of all globals) in the same file, but it wouldn't have to be as long as the datePick window table was added to the relationship graph of the file you wanted to use it from.
Recommended Posts
This topic is 7518 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