Facing Problem while creating Login Page

0
The selected page 'login_Web' expects an object type 'LoginContext' and cannot be used as a homepage. Change the page or use a microflow to provide the page with object. {error - CE0529}   2nd - No nanoflow configured for the data source of this data view. select a nanoflow or change the data source.    I am stuck here and not able to solve I started learning mendix . please help me for solving this error.
asked
2 answers
1

Hi Umme sadaf,

 

Option 1: Change the homepage to a non-data view page (like a dashboard or navigation page).

 

Option 2: Use a microflow as the homepage. In the microflow, create or retrieve the LoginContext object, then open the login Web page with that object.

Go to Navigation → Default Home Page → Select Microflow.

In the microflow, add an activity: Create Object → LoginContext.

Then use Show Page → login_Web with that object

 

 

 

For Using Nanoflow:

Option 1: Assign a nanoflow that retrieves the required object.

Create a nanoflow that returns the entity you want (e.g., Login Context).

Set that nanoflow as the data source of the data view.

 

Option 2: Change the data source to Context or Database, depending on your use case.

If the page is opened with an object, use Context.

If you want to fetch from DB, use Database.

 

answered
0

Hey Umme, 

 

In Mendix the Homepage can't require an object, should be a navigation layout page or a page with a data source that doesn't need an object.

 

Either you change the homepage for a page that doesn't require the object or you use a microflow as the homepage, this microflow can create the required object and pass it to the page you are trying to use.

 

Let me know if this helps or share some screen shots if you are still having issues.

answered