Run Eclipse

To change Perspective to Graymound select Window-> Open Perspective-> Other

Select Graymound from list.

Create new Project from File-> New-> Other

Select Graymound-> Graymound Project from list

Give a name to Project-> Tutorial1 and then click to Finish

You will see your project on Project Explorer view.

Expand Content folder then right-click on guimls. Select New-> Other from menu.

Select Graymound UIML Page from list then click to Next

Type tutorial1.guiml on File Name dialog then click to Finish

Blank GUIML page opens on GUIML Editor

Start to build User Interface. Select ComboBox from palette then drop to page.

Give a name to ComboBox. Click once to ComboBox then open Properties view under the page. Change name to cmbLanguage

Select Services tab. Click right on the left side then clicks New

Blank Service created. Change Service Name and Alias to GM_ADM_MODULE_LIST

Switch Output tab. Click right on this tab then select New

Blank Method created.

Change Name to LIST\. Click right on right side, select\ New -> Method Call

This action opens Method Editor\. Now we could select bind Output data to our cmbLanguage easily. Expand Page, select cmbLanguage then select\ setModelData(ArrayList data) from under the method list.

| Useful Information When page loaded we have to fill ComboBox. For that we have to define an action named INITIALIZE |
Switch to Actions tab. Right click on left side. Select New

Change action name to INITIALIZE\. Then right click on right side, select\ New-> Service Call

Select GM_ADM_MODULE_LIST service from Service Selection Editor

Now start to build Business Logic. Switch to Design tab. Select TextField from Palette drop to page. Change Name to txtLanguage.

Select Button from Palette, drop to page. Change Name to btnCheck

Switch to Actions tab. Right click on left side, select New. Change name to CheckLanguageInfo. Then right click on right side, select New -> IfThenElse Call

Click right on Condition tab. Select New -> Method Call. Then select Compare from Method List. Select equals(Object o1, Object o2) bottom of Method List.

Click right on right side of Method Editor. Select New -> Method Call. Expand Page, select cmbLanguage. Select getSelection() bottom of Method List. Click to OK.

Click right on right side of Method Editor again. Now Select New -> Static Text, write Administration on Editor. Click OK.

Click OK again. You completed condition.

If condition is true, we will show MessageBox contains True. If condition is not true, we will show MessageBox contains False
Select True tab. Click right on this tab, select New -> Method Call. Select MessageBox from Method List then select info(String message) from bottom of list. Then right click on right side of Method Editor. Select New -> Static Text. Write True on editor. Click OK.

You completed True.

Now complete the False. Select False tab. Click right on this tab, select New -> Method Call. Select MessageBox from Method List then select warn(String key) from bottom of list. Then right click on right side of Method Editor. Select New -> Static Text. Write False on editor. Click OK.

You completed False.

Click OK to return Actions tab. Now you completed IfThenElse block to check cmbLanguage info.

Now we have to bind this action to Button. Switch to Design tab. Select and right click on Button. Select Events.

Event Editor launched. Expand btnCheck tree, select actionPerformed from left and then select CheckLanguageInfo from right. Right click on actionPerformed then select Bind.

You will see the action on left side like actionPerformed(CheckLanguageInfo)

Select cmbLanguage. Change Selection Key from OID to NAME on Properties tab.

Save the page with CTRL+S or select File -> Save.
Now Run this page GUIML page. Select tutorial1.guiml from Project Explorer. Right click on it, then select Run As -> GUIML Page.

Select Administration from combo, then click button. Condition is true, and you will see MessageBox contains True

