Mendix Documentation
Mendix Documentation
DOCUMENTATION
STARTING WITH MENDIX
Creating a Team
Image 1
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
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.
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
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
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
Image 35
Add the page to the navigation and run the app
1. Double click on the navigation on the left side
Image 36
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
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