John,

I think you are on the right track using scripts on the Notes and FM servers. If you stagger the run times and set a relatively frequent cycle you should be ok, say something every 10 minutes or so.

I had a similer issue with data in an FM database that had to do calculations based on date. What I did was add a couple of fields that automaticly set things up for this. A similer approach may help you. It has been a while since I worked in notes, but you should be able to do something similar on the notes side.

In the FM data base set up a table called G_export_last with a timestamp field export_time. It should be linked back to your primary data table with an X relationship to any field that will always have data.

The timestamp field should be updated by your export script everytime the script runs. You may have to enter the initial value for this manually. Once it has data and the scripts are running you shouldn't have to touch it.

In your data table create a timestamp field called updated_last that is filled with the current time stamp when the record is created and updated everytime the record is changed. You can do this as an autoenter field. There are check boxes on the options window for a timestamp field for both of these functions. Check both.

Next create calculation field called export_me. The calculation will be used as a boolean value to determine if the record should be exported. the calculation will look like this.

if (updated_last ≥ G_export_last::export_time;1;"")

For your export script do a find base on export_me = 1.
Export your data
update the G_export_last::export_time with the current timestamp.

The last step will set all of the export_me fields to "" so you are ready for the next round.

Make sure that the "Do not evaluate if all referenced fields are empty" check box has been cleared for all of these fields. If not they won't update for you.

I hope this helps. If I can be of additional help send me an e-mail and I'll see what I can come up with.

Best of luck
Bruce





Hi all,

I'm a bit in dispair - trying to find a way of getting Domino 8.x (Lotus
Notes) and FMP (6.x) to work together.

In the perfect world the user could edit data in either system and lock the
data while doing it. I don't believe that's possible. Instead I would try to
do this (just for the experiment): Export a record immediately after it has
been changed - kind of pseudo-live-data

I would have an import/export machine only for this purpose - the
import/export would not be on the users machine. But how do I mark the
record changed in a way that is fast to find on the export/import machine?

I see some options myself:

1.) via calculations. Field export flag is "1" if the record has been
changed since it was last exported. Only problem is that the field won't be
indexed, so I can't get it immediately via a relation and a find request
will be too slow because of the amout of records.

2.) Set the field export flag to "1" via scripts. That way I can make the
field indexed and create a relation. So every time a record would be changed
it would appear in my "export-portal". How do I snatch the record in the
export-portal? I can make an ever looping script, but to be honest I would
be happy to avoid that. Plugins?

And that's about it. At the moment I can't see any other options. Can you?
Any, and I mean any, idea is more than welcome.


And that's just the export part. Say that a record is changed in Notes and
exported to a folder, then it would have to be imported immediately. How de
I make filemaker watch a folder and delete files after import?


Thanks
John

Reply via email to