importData

import data from a different datastore

void importData(object source);
sourceobjectview from which data need to be taken

Example

$$("listB").data.importData($$("listA"));

Details

Similar to the sync command, but makes one time import only.

The method does not copy the data, so item updates in both widgets will be shared. To fully copy the data from one widget into another one, you need to apply:

$$("listB").parse($$("listA").serialize());
See also
Back to top