8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please use the form below, leaving the prefilled data to help us. Thank you.
Page link: create-the-domain-model
Document link: creating-the-domain-model.md
Hi I found some error at -> 4. Configuring a Generalization
I used this codes
const generalization = domainmodels.Generalization.createIn(customer); const systemUser = workingCopy.model().findEntityByQualifiedName(Administration.Account); generalization.generalization = systemUser;
Administration.Account
but It was not work.
I suggest this:
const generalization = domainmodels.Generalization.createIn(customer); const systemUser = model.findEntityByQualifiedName(Administration.Account); if (systemUser) { generalization.generalization = systemUser; } else { console.log('error: systemUser not found'); }
Thank you.
The text was updated successfully, but these errors were encountered:
Now I study https://docs.mendix.com/apidocs-mxsdk/mxsdk/finding-things-in-the-model/ page, and I can't use workingCopy.model() also here. Please tell me what I did wrong 😭Thank you!
Sorry, something went wrong.
MarkvanMents
No branches or pull requests
Please use the form below, leaving the prefilled data to help us. Thank you.
Page link: create-the-domain-model
Document link: creating-the-domain-model.md
My Issue/Suggestion
Hi I found some error at -> 4. Configuring a Generalization
I used this codes

const generalization = domainmodels.Generalization.createIn(customer);
const systemUser = workingCopy.model().findEntityByQualifiedName(
Administration.Account
);generalization.generalization = systemUser;
but It was not work.
I suggest this:

const generalization = domainmodels.Generalization.createIn(customer);
const systemUser = model.findEntityByQualifiedName(
Administration.Account
);if (systemUser) {
generalization.generalization = systemUser;
} else {
console.log('error: systemUser not found');
}
Thank you.
The text was updated successfully, but these errors were encountered: