How to Use Checkbox

Hi all, I am new to mendix and i do not know how to use checkbox within dataview.  Basic Details is I am Creating Travel Insurance application in that i need to create three Categories Like normal, Premium and Luxury.  I have created table like structure with 3 Columns as Normal, premium and Luxury. In that columns premium and Luxury I have to place checkbox for covering personal objects like Passport, Medical etc and the condition for checkbox is " If the user selected the checkbox certain percentage(say like 10%,20%) of main fee will be added to result ..  and Microflow procedure for Checkbox activity Please tell me or Advice me to do this in Step by step manner with an Example, so that i do Easily.. Thanks in Advance
1 answers

Hello Al,

  I believe I understand what you are trying to do.  I assume that you have a number of items to ensure, like Passport, Medical expenses, and so on.  Next to each on on the user interface, you want three checkboxes, one for each of the three coverage levels normal, premium, and luxury.  When a user selects one of these options, the total price is calculated using the selection.  The fastest way to accomplish this is to use the 'radio button' widget that is included in Mendix by default.  This will ensure that if a user selects 'basic' and then selects 'premium' then basic will be automatically un-selected.  I recommend the following:

1) Create a new enumeration with three possible values: basic, premium, and luxury

2) For each product (passport, medical, etc) create an attribute called 'coverage level' that is an enumeration value.  Reference the enumeration from step 1

3) on your page, have a list view for each of the products and in that list view, put the 'product name' and 'coverage level' on the page.  In the later versions of Mendix, putting an enumeration value on the page automatically adds a radio button widget.

4) on the radio button widget, set up an 'on change' microflow that will re-calculate the value of the insurance using the selected enumeration value.

For more information about enumerations, check this out

Hope this helps,