8000 create-the-domain-model · Issue #9365 · mendix/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

create-the-domain-model #9365

New issue

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

Open
rmdrha opened this issue Apr 14, 2025 · 1 comment
Open

create-the-domain-model #9365

rmdrha opened this issue Apr 14, 2025 · 1 comment
Assignees

Comments

@rmdrha
Copy link
rmdrha commented Apr 14, 2025

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
Image

const generalization = domainmodels.Generalization.createIn(customer);
const systemUser = workingCopy.model().findEntityByQualifiedName(Administration.Account);
generalization.generalization = systemUser;

but It was not work.

I suggest this:
Image

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.

@MarkvanMents MarkvanMents self-assigned this Apr 14, 2025
@rmdrha
Copy link
Author
rmdrha commented Apr 15, 2025

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0