Jump to content
Sign in to follow this  
RobK68

Access from two separate fp7 files

Recommended Posts

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

Share this post


Link to post
Share on other sites

Ok, So how can I pass some info from one fp7 file to another? Is there some mechanism built into FM7?

Thanks,

Rob

Share this post


Link to post
Share on other sites

You could set a global in the main file using a relationship based on a cartesian join (the X option).

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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....

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.