Search this site

Showing posts with label module pool. Show all posts
Showing posts with label module pool. Show all posts

Wednesday, April 24, 2013

Modify screen in module programming






In this example we will write a module program with dynamic screen:
Business requirement:
The screen as below :

After user press the change button,the text field Depart.city,Arrival city,Flight time,Departure,Arrival Time will editable as below:


Here the code of the module pool program:



Notice that,to set read only these text fields,first make them in the group MOD

After pressing change button the code as below will execute:

Saturday, December 15, 2012

Module pool programming: Create GUI Status example

Create the Guide status for program.

Enter the status name STATUS_1000

 Add item CAL to menu bar.Enter the name of menu

 Double click to CAL item.The screen will show as below:

 Create the action for the item on the Standard tool bar.In this example ,We create the action for the button BACK on the standard toolbar:


 Use the code as below to call the status bar STATUS_1000 which created on the first  step:

 Create the item CAL for the application toolbar :

 Run the progarm:You coud use function Calculate via menu item Calculate on Menu bar or button Calculate standard tool bar.The screen will show as below:

The end!