Error CE1568 When Adding Data Container for Current User Info on Project Page

0
Hi everyone, I'm working on a Mendix web application using the Administration module for user management and a custom domain model in MyFirstModule. Domain Model Overview: In the Administration module, I have the standard Account entity with attributes like FullName, Email, etc.In MyFirstModule, I have a Project entity with attributes like NameProject and SemesterProject.The Project entity is associated with two other entities: Student and Supervisor.Both Student and Supervisor are linked to the Account entity from the Administration module.What I'm Trying to Do: On one of my pages, I want to: Display the project information (from the Project entity).Display the currently logged-in user's information (likely from the Account entity).To do this, I: Created a page via the Navigation tab, using a template with Project as the data source. This part works fine.Then, I tried to add a data container to retrieve and display the current user's information.The Problem: As soon as I add the data container for the current user, I get the error CE1568. From what I understand, this might be related to having two different data sources on the same page, or possibly due to how the associations are set up between modules. My Questions: What is the correct way to retrieve and display the current user's information on a page that already uses Project as the main data source?Is there a recommended pattern for combining data from the Account entity (Administration module) and a custom entity like Project on the same page?How can I avoid or resolve the CE1568 error in this context?Any insights or examples would be greatly appreciated! Thanks in advance for your help!
asked
1 answers
1

Hi Eric,

 

The best way to get current user and show it on a page would be to use  a DS microflow like DS_GetUser and to use this microflow as a data source of DATAVIEW on that page. This way it won't affect the page parameters, it will be non- dependant to whatever you do on the page. 

 

afbeelding.png

afbeelding.png

 

You can retrieve current user via session and show it on the page.

P.S.: If you by mistake added user or account as a parameter to the page, just delete that parameter. Then it will be ok.

Success,

Ferhat

answered