sfpx

Post-Sync Hub Actions

6 posts in this topic

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 ?

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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]

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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