ERROS Application Creation Example
Video Shop
2 Creating your ERROS Application
Having created the additions to your Business Model, you now need to create an application to allow access to that business model. Unlike traditional applications which may be loosely described as a set of files, programs, procedures and reports that provide a particular function, ERROS applications are simply filters to the business model, providing security and access to the revelant parts of the Business model.
The three main steps in this part of the ERROS application creation process are -
2.1 Name the application.
2.2 Define the ERROS and user defined entity types to be available in the application, and, for each one, create their first, second and lower level menus, and also create any fast path synonyms for each entity type. In this simple application, there are no lower level menus to be created.
2.3 Create the initial menus for the application.
When these have been completed, the application must be authorised and then tested.
ERROS displays the list of applications to which you are authorised. Select ERROS Application Creator by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
Type the name of your new application
Video Shop
and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
As the application is a new one, ERROS does not find it and prompts you to press F9 to create it.
Press F9 as prompted.
ERROS will display the following screen -
AS/400 Workstation Gateway
Accept the default values and press ENTER (as prompted at the bottom of the screen) to add the record to the list of User Applications.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS confirms that it has added the new User Application Video Shop. At this stage, the application consists of a name only, since details of the entity types and their attributes to be made available in the application have yet to be defined.
Press ENTER as prompted so that you may add these details.
ERROS will display the following screen -
AS/400 Workstation Gateway
The next stage is to define the entity types to be made available in the new application.
Select entity type(s) in application by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
This shows that, as yet, there are no entity types defined in the application.
Press F9, as prompted.
ERROS will display the following screen -
AS/400 Workstation Gateway
This allows you to choose either an existing ERROS defined entity type or a user entity type.
Since the first entity type to be added, User Personal and Business Name, is an existing ERROS entity type, select Entity type (ERROS defined) by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS gives you access to ERROS defined entity types, so that you can request the one that you require and relate it to your new application.
Type
user per*
and press ENTER.
b
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has retrieved the record for the ERROS entity type User Personal and Business Name. Press ENTER to accept this.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS is about to add the ERROS defined entity type as the first entity type to be defined as being available in the application.
Press ENTER to accept the default value of "P".
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has related the ERROS entity type User Personal and Business Name to your application. In ERROS applications, you can generally, where your security permits, access entity types in your application by using the ERROS fastpath, as well as through menus. After you confirmed that you wished ERROS to allow access to the ERROS entity type User Personal and Business Name in your application, ERROS automatically added that entity type to the fast path for the application. ERROS now allows you, if you wish, to enter fast path synonyms that allow you to use multiple names to access to entity types via the fast path.
Type
Customers
and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
Press F9 as prompted to add the fast path synonym record.
ERROS will display the following screen -
AS/400 Workstation Gateway
Press ENTER to confirm that you want ERROS to add the fast path synonym.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS shows that it has added the record, so that, at any point in your application, except when you are in Update mode (i.e. adding/updating/deleting or removing records), you can access your contact records in User Personal and Business Name by typing .customers. However, do not do that here. You can add other fastpath synonyms for User Personal and Business Name here if you wish. You might wish to add the single letter "C" as an additional fast path.
You must now create the menus for the entity type User Personal and Business Name. Press F12.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS is now prompting you to put the identifying attribute for User Personal and Business Name in the first level menu for that entity type.
Select attribute(s) includeャERROS defined by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS displays the first few ERROS defined attributes for the entity type User Personal and Business Name. The identifying attribute for this is name and/or number, so type
name
and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
This shows that ERROS has retrieved the attribute that you require.
Press ENTER, as prompted, to accept this.
ERROS will display the following screen -
AS/400 Workstation Gateway
This shows that ERROS is about to put the attribute name and/or number into the first level menu for the entity type User Personal and Business Name.
Press ENTER as prompted to accept the values shown and to confirm that you wish the record to be put in the first level menu.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS shows that it has added the record to the menu.
You must now put the appropriate attributes in the second level menu. Press F12.
ERROS will display the following screen -
AS/400 Workstation Gateway
As you wish to put attributes in the second level menu, select Attribute already defined by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
The first attribute that you need to add to the second level menu for the entity type User personal and business name is video(s) currently rented which you have just created as a user attribute so select user defined attributes include by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS displays the list of user defined attributes for the ERROS defined entity type User personal and business name. At present, there is only one - video(s) currently rented. As this is the one you require, accept this by pressing ENTER (or typing the number to its left and pressing ENTER).
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS shows that it is about to add the attribute video(s) currently rented to the second level menu for the entity type.
Press ENTER to accept the field values and to confirm that you require the record to be added to the menu.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has returned to the list of user defined attributes for the ERROS entity type User personal and business name so that you can put further attributes into the menu. As there are no more user attributes defined for this entity type, ERROS displays the message "No further records found".
As you also wish to add an ERROS defined attribute to the menu, press F12.
ERROS will display the following screen -
AS/400 Workstation Gateway
Select attribute(s) includeャERROS defined by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS displays again the first few ERROS defined attributes for the ERROS defined entity type User personal and business name.
You now wish to add the ERROS defined attribute telephone number, speech to the second level menu for User personal and business name. Type
tel*
and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has retrieved three ERROS defined attributes for the entity type User personal and business name whose names begin with tel.
Select the one you require telephone number, speech by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS shows that it is about to add the attribute telephone number, speech to the second level menu for the entity type.
Press ENTER to accept the field values and to confirm that you require the record to be added to the menu.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has added the record to the menu and returned to the list of ERROS defined attributes, looking for further records whose name begins tel. As there are no more, ERROS issues a "No further records found" message. You could, if you wish, request other attributes for the entity type User personal and business name and add them to the menu.
As you do not wish to do this, press F3.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS now displays the second level menu for the entity type User personal and business name. If you wished to add other records, you could press F9 and continue as before.
As you do not wish to do this, press F12.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has returned to the list of entity types for your application.
You now need to add the user entity type Video tapes to your application.
Press F9.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS allows you to select either an ERROS defined or a user defined entity type.
Select User entity typeャ(USER defined) by typing the number to its left and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has now given you access to user defined entity types.
Type
vid*
and press ENTER.
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS has retrieved the user entity type that you require (currently the only user entity type).
Press ENTER to accept this (or type the number to its left and press ENTER).
ERROS will display the following screen -
AS/400 Workstation Gateway
ERROS is about to add Video tape to the list of entity types available in the application.
Press ENTER to accept the default value of "P".
ERROS will display the following screen -
AS/400 Workstation Gateway