See GridSelector widget:
var schema = {
attributes: [this.leftDisplayAttr],
sort: [
[this.leftSortAttr, this.leftSortOrder]
],
offset: page * this.pageLimit,
limit: this.pageLimit,
references: {}
};
schema.references[this.assoc[0]] = {
attributes: [this.topDisplayAttr],
sort: [
[this.topSortAttr, this.topSortOrder]
]
};
mx.data.get({
xpath: "//" + this.leftEntity + this.leftConstraint,
count: true,
filter: schema,
callback: dojo.hitch(this, function (objs, count) {
this.leftObjs = objs;
this.setMaxPages(count);
callback && callback();
}),
error: function (err) {
console.error("Error getObjects //" + this.leftEntity + this.leftConstraint + " : ", err);
},
nocache: false
});
For simplicity, here is a code snippet, per my example:
,references : {
"Administration.Account_Seller" : { }
}