Jump to content

Post-Sync Hub Actions


sfpx

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

Recommended Posts

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 ?

 

Link to comment
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]

 

Link to comment
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
Link to comment
Share on other sites

This topic is 2585 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.