Solved

How to restrict syncing of task in OPEN task_status

  • 26 July 2021
  • 1 reply
  • 117 views

Userlevel 3
Badge +6

I tried to change the initial and related query not to sync the OPEN task_status type task. 

I put the where conditions in sync like 

Task.task_id Not equals to OPEN . Once I update the task_status to Open and put any owner its getting synced to mobile. I don't want this data to sync

icon

Best answer by Isuranga Ediriweera 27 July 2021, 05:16

View original

This topic has been closed for comments

1 reply

Userlevel 4
Badge +7

Dear @TatRajatM ,

 

For this requirement there is app param that you can use to define additional constraints for the syncing task to the mobile. You don't need to change the sync rule for this.

The application parameter name is “ADDITIONAL_JOB_LIST_CONSTRAINTS”.

You must need to define your constraints in SQLLite standard format and will be treated as an "AND" constraint to any of the other constraints being used.

In your example as you want to restrict only OPEN task_status task for all users. Then you need to define the param value as following  →   task <> 'OPEN'

 

This solution will do your requirement. :)

 

Kind Regards,

Isuranga