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

Post-Sync Hub Actions

Featured Replies

I understand that MirrorSync 2.305 is probably no longer supported but we won't update before a few weeks and I have a problem that may be simple.

I have added a script in the  POST-SYNC HUB ACTIONS section of the MirrorSync customization script but it does not seem to be executed.

I am attempting to update a field for a few records on the server.

The script is simple and looks like

Go To Layout MyTable

Replace Field Contents [No dialog;myfield;newcontent]

 

I sync and the MyField values are never modified.

Am I missing something ?

 

Try doing some other type of action, such as creating a new record, and see if that section of the script is being triggered at all.

  • Author

I tried it and no record was added.

It really seems like it's not triggered .

In the post-sync hub section

Perform Script ["UpdateData"]

Simple UpdateData test script

Go To Layout ["LayoutOfTestTable"]
New Record/Request
Set Field [TestTable::afield;"abcd"]
Go to Layout [original layout]

 

  • Author

What I'm trying to do is to update some field with the result of a calculation.

This update must be the last action since the calculation depends on related records that may have been updated, deleted or added inside the same sync.

Of course I could achieve what I want by launching 2 consecutive syncs like this

1.Sync

2.Update records  on the device (any field just to force an update on the hub) that I want to get new calculated results from the server

3.Sync again (in the A RECORD WAS UPDATED ON THE HUB section..I would add the calculated update)

I guess that would work but it would be pretty inefficient.

Edited by sfpx

We are not doing any troubleshooting in MirrorSync 2 anymore, so I would recommend either go with your workaround, or upgrade to MirrorSync 3. If the problem occurs in MirrorSync 3 we can definitely fix it.

  • Author

Thanks. We will update in the next few weeks.

Meanwhile I will work on an alternative way to get what I want by adding a new synced table.

 

Create an account or sign in to comment

Important Information

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

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.