Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Access from two separate fp7 files

Featured Replies

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

To Copy, the field must be on the layout.

  • Author

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

Thanks,

Rob

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

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?

  • Author

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

  • Author

How does that work? I am not familiar with that ability.

Rob

  • Author

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

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.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.