Enabling full_update for javascript models.

M Mohammed Aamir K 3 years 5 months ago
0 1 0

I want to enable full_update for my javascript models.

Below is the link to do the same in Ruby . http://docs.rhomobile.com/en/5.1.1/rhodes/rhom

Since my models are in javascript i am trying to achieve it as below .

model.enable('full_update'); 

Adding the attribute inside the model.

Rho.ORM.addModel(function(model) {
      model.modelName('Operator');
      model.property('employeeName', 'string');
      model.property('employeeID', 'string');
      model.enable("sync");
      model.enable('full_update');    
  });

But it doesn't seem to work. In spite of adding the above attribute to the model it sends only the changed attributes. I am using Rho mobile version 5.1.1 if that helps.

I have seen a workaround which appends characters () , this workaround doesn't seem viable in my case since i have a huge JSON , and doing this doesn't seem practical.  If anybody could point me in the right direction regarding this it would be highly appreciated.

- Mohammed Aamir K

Please Register or Login to post a reply

1 Replies

M Mohammed Aamir K

Hi ,

Is there anyone who can help me on this ? Right now this is critical to my project and I need full_update functionality to work as it is without any modifications to the JSON structure.

Any help would be greatly appreciated.

CONTACT
Can’t find what you’re looking for?