Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 2823 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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 ?

 

Posted

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.

Posted

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]

 

Posted (edited)

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
Posted

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.

Posted

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.

 

This topic is 2823 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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