I want to use Mendix SDK to create entities and loading it inside Mendix app, i think the SDK not able to see and catch domain model , i got TypeError of type "undefined load function". I follow the mendix SDK Doc, unfortunately, not well updated with the latest version of Mendix Model/SDK 4.6.0/4.0.0. The Error Successfully opened new online working copy xxxxx-xxxxx-xxxxx-xxxx-xxx- for project xxxxx- xxxxx-xxxx-xxxx-xxxxx : ProjectName error: TypeError: Cannot read property 'load' of undefined Test Code const dm = workingCopy.model().allDomainModels() .filter(dm => dm.structureTypeName === 'MyFirstModule')[0]; return loadAsPromise(dm).then((q) => { // console.log(dm.isLoaded); // console.log(utils.serializeToJs(q)); //print out the generated JavaScript // return workingCopy; }); // console.log(dm); Thanks in advanced
↧