Error CE0620: Select Page Should Contain Exactly One List View, Data Grid, or Template Grid

0
Hi Mendix Community, I am encountering an issue with my Mendix project and need some assistance. I am trying to use DataGrid 2 on a select page to display user roles, but I am getting the following error: CE0620: Select page should contain exactly one list view, data grid or template grid Here are the details of my setup: Mendix Studio Pro Version: 10.12.0 Page: Account_UserRole_Select Widget: DataGrid 2 I have ensured that there is only one DataGrid 2 on the page. Here is a screenshot of my page structure and the error message: What I've Tried: Verified that there is only one grid on the page. Checked the data source configuration for DataGrid 2. Inspected the page structure to ensure no other list views or grids are present. Ensured no hidden or conditional elements might be interpreted as additional grids. Despite these checks, the error persists. Additional Details: The DataGrid 2 is configured with a valid data source pointing to the UserRole entity. I have removed any extraneous containers or elements that might conflict with the DataGrid 2. Has anyone encountered a similar issue or have any suggestions on how to resolve this? Any help would be greatly appreciated! Thank you in advance for your assistance. Best regards, Reemali.
asked
3 answers
0

Hi Reemali,

did you find a solution of your problem inbetween?

I faced the same several times and unfortunatly the only way out was to use Datagrid. But Datagrid2 would bring a lot of advantages.

Thank you for your answer.

answered
0

See this solution, Reemali.  I ran into the same problem as you and found this answer while working through how to do this without the reference set tool.  Pretty intuitive...

 

https://community.mendix.com/link/space/user-experience/questions/111457

 

TL:DR

 

Create a (pop up) page with a data view of the object.

Within the data view set a List view of the selectable entity (You can add selection restrictions in the configuration of the list view).

Have the ‘On click’ action of the list view be a microflow.

Set up the microflow to with input parameters Object of the Dataview and Selected Object . You can configure the on click action to pass on these objects to the microflow.

Set up the microflow to change the association of the main object to the newly selected object and then close page.

 

 

answered
-1

Hi Reemail 

Have you tried using Datagrid instead of Datagrid 2

answered