Hey Robert- So, I'm trying to figure out where to apply your suggestion. The Task Manager on change events fires and then it calls `thisWidget.loadData()` like this:
dijit.byId('subprojectSelect').on('change', function (e) {
thisWidget.loadData(e, proj_type_obj);
});
At this point I expect it to to the Task Manager "loadData()" function but it instead goes to the Manage Folder "loadData" function. Here is the start of the Task Manager:
loadDataTM: function (e, proj_typ) {
var p_type = proj_typ;
var proj = e;
console.log('loadData Task Manager');
var dyfields = [{ type: "control", width: 40 },
{ name: widgetConfig.taskTrackingTable.taskName, title: "Task Name", type: "text", width: 120, validate: "required" },
...
];
var def = new Deferred();
this.getTempPortal();
...
}
And here is the Manage Folders loadData function, which is also called with "thisWidget.loadData();":
onOpen: function () {
console.log('onOpen');
this.loadData();
},
loadData: function () {
var def = new Deferred();
this.getTempPortal();
....
var projectNames = [];
var strProjectNames = "";
....
}
Note: Task Manager doesn't call "thisWidget.loadData();" in the onOpen() function while Manage Folders does. So how could I apply your suggestions here. Would I use something unique to Task Manager widget like
this.dijit.byId("subprojectSelect")
? Would I use this unique identifier in the on change event or inside the loadData function?