0% found this document useful (0 votes)
327 views27 pages

Mendix Documentation

The document provides steps to create a simple Mendix application with a domain model, page, microflow and validation. It includes instructions on creating an entity, page, committing objects to the database, and adding navigation. The microflow performs validation and commits valid objects to the database.

Uploaded by

Jegan Elango
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
327 views27 pages

Mendix Documentation

The document provides steps to create a simple Mendix application with a domain model, page, microflow and validation. It includes instructions on creating an entity, page, committing objects to the database, and adding navigation. The microflow performs validation and commits valid objects to the database.

Uploaded by

Jegan Elango
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

MENDIX

DOCUMENTATION
STARTING WITH MENDIX

 Open sprintr.home.mendix.com and sign in with Mendix


username and password.

Method I: Creating an APP in the Developer Portal


 Click Create App and name your App
[Note: If you want to Edit the name of your App, go to General
Settings and Click on Edit App Info]

Method II: Creating an APP from the Studio Pro


 Open the Mendix studio pro File—New App—Choose the
template (for now it is blank web app)—click use this starting
point—Enter the app name –repository (svn)—default language
(English United States)—select the appropriate app directory.

Creating a Team

 Go to the Developer Portal sprintr.home.mendix.com


 Select your App
 Go to Section Team under Collaboration
 Click on Invite Member
 Add Email IDs of the member to be invited and send invitations.
 Add as Business Engineer/Scrum Master
ADD USER STORIES

 Select Stories-More- Select Import/Export


 Select Update stories from Excel
 Browse and select user stories
 Click Import and click Next
 Then Delete the Get Started sprint

ADDING STORY POINTS

 Select each user story


 Add Description
 Add Tasks
 Add Points based on the complexity of work
Illustration
Let us see how to create this simple page shown below and make it functional to input data and save the
data to the database along with validations.

Image 1

Creating the domain model


1. Open the app which you have created.
2. Go to the myfirstmodule folder , you can see a domain model folder below that , double click on
it and open the domain model
3. The domain models page looks the same as the image given below when you open it.
4. Click on the entity icon(highlighted in blue near the cursor icon figure 3 ) and drag and place it
on the blank space
5. Double click on the entity , it opens up the properties page (figure 2),specify the name of the
enity(in this case employeedetails) and the attributes along with the datatypes(for this click on
new which is in the attributes tab and proceed).
6. Thus the domain model is created.
Image 2

Image 3
Creating the page
1. Go to myfirstmodule right click on the folder – and click on add page

Figure 4

2. Enter the page name (in this case Employee_Details) select the template as blank and
navigation layout as atlas default
Figure 5

3. Click ok.
4. You can see the page you just created on the left hand side

Figure 6

5. Double click on the page to open the page


6. Drag and drop a data view from the toolbox(on the right hand side refer image 7) to the page

Image 7
7. Double click on the data view(where it is written unknown)to select the entity source .

Image 8

8. Select the entity source from the list of the entities (in this case employee details) select and
click ok.

Image 9
9. A pop up message will come up asking if autofill has to be done click ok. By clicking on, the
attributes of the entity are automatically filled in the page with appropriate widgets.
10. You can also not autofill the contents instead select different widgets from the toolbox and
specify the attributes individually.

Image 10

11. Thus you have created a page with a data view and its attributes.
Creating the object EmployeeDetail, committing
the object to the Database and performing
validations for the fields using microflow.

Creating the EmployeeDetail Objects

1. Double click on the save button which is below the gender radio button
2. Go to the events section(refer image 11) select the call a microflow option from the drop dow

Image 11
Image 12

3. Click on the new button and name the microflow as ACT_EMPLOYEEDETAIL_COMMIT.


4. You can select the microflow from the left and double click on it this will open the
microflow(refer image 13)

Image 13
5. Go to the toolbox search for the create object activity.

Image 14

6. Drag and drop the create object activity from the toolbox on the line.
Image 15

7. Double click on the activity to open its properties as shown in the image below.

Image 16
8. Select the entity as employee details and add all the members(attributes) that has to be created
by clicking on new and adding each members separately.

Image 17
Image 18

Image 19
Image 20

9. Thus you have created all the objects .

PERFORM VALIDATION
1. Drag and drop a create variable activity from the toolbox on the line after the create object
activity you just created.
2. Set the datatype to Boolean and the value to true,change the variable name to commit.

Image 21

3. Drag and drop a decision box(yellow diamond shaped) as shown in the image below

Im
age 22
4. Double click on it to open its properties fill in the caption and give the following expression
as given in the figure below .
Image 23

5. Draw a sequence flow line from below the condition and add another activity which is the
change variable activity by dragging and dropping in on the sequence flow line .Double click
on it and set the properties commit variable and the value to false.

Image 24

Image 25
Image 26

6. Right click on the red line and set the condition value to true as shown in the image below.

Image 27
7. Below the change variable activity add another activity the validation feedback activity and
double click to open its properties and click ok.
8. Assign the values to the properties as shown in the image below.

Image 27
9. Place a merger after the true value and draw a sequence line from the decision to the
merger as shown in the image below .

Image 28

10. Similarly perform the validation until the last filed (ie gender in this case).
Image 29
11. The microflow will look like the image shown below after you complete all the validation.

Image 30
12. After the final merger add another decision to check the decision as shown in the image
below.

Image 31
Commit the objects to the database
1. Drag and drop another activity which is the commit object activity after the decision
box and double click the activity to open its property. Set the value of the object or list
as shown in the image below.

Image 32
2. After that add a show message activity. Double click on it to open its properties

Image 33
3. Select the type information and specify the template message as shown in the image
below.

Image 34

4. Add a close page activity after that.

Image 35
Add the page to the navigation and run the app
1. Double click on the navigation on the left side

Image 36

2. It opens up this page click on new item

Image 37
3. Give the caption as Employee Details , choose any icon, on click –create object—select the
entity as employee details and onclick click page – employee_details and click ok.

Image 38

4. Click on the green play button on the top bar click on save and continue.

Image 38

5. Click on the View App to view your app in the browser.


Image 39

6. Click on the icon from the navigation menu to go to the page you just created.

Image 40
Image 41

7. Check for the validations and see if the microflow we created is working also fill in the details
and check if the objects created are committed to the database.

Image 42

You might also like