“Sync” forms between databases

Viewing 5 reply threads
  • Author
    Posts
  • April 8, 2020 at 1:44 AM #40273

    Chris Ju
    Participant

    Hi Brendan,

    we are close to introducing TF to all employees in our office. The question now is whether it is possible to somehow synchronize changes to the forms. It is intended that only one database in each departments should be synchronized via CouchDB. However, should changes be made to the structure of the forms (in the “admin” database), we would have to change them in every department database. Is it enough if we “synchronize” the “DocumentProperties.plist” and adjust the TFDocID, etc. of the respective database in this file?

    I hope the case is understandable.

    Thanks in advance
    Chris

    April 8, 2020 at 9:38 AM #40279

    Sam Moffatt
    Participant

    I’m trying to wrap my head around this but it sounds like you have a unique document per department? And you want to be able to replicate structural changes to the form between the documents?

    April 8, 2020 at 10:06 AM #40280

    Chris Ju
    Participant

    ;-) … Yes, Sam, you’ve hit the nail on the head! Thanks!

    But is that possible? I tried it without luck…

    April 8, 2020 at 1:14 PM #40282

    Brendan
    Keymaster

    Hi Chris,

    I think what you can do is make changes to your admin document, then export the form as a .tff file, then import that into the other documents. That way you don’t have to make the same changes in each document. The import will do that for you. That’s assuming these other department databases were originally created from the one document, so they all have the same internal form and field IDs. Although still having different document IDs of course.

    April 8, 2020 at 9:48 PM #40284

    Chris Ju
    Participant

    Hi Brendan,

    that is really great. Didn’t think it was that easy. Above all, all linked fields are added in other forms.

    Many thanks!

    April 9, 2020 at 12:18 AM #40285

    Brendan
    Keymaster

    Please note that it won’t handle deletes though. Just updates and additions. So if you delete a field, you’ll have to delete it on all devices.

Viewing 5 reply threads

You must be logged in to reply to this topic.