Creating the Data Control Class
This section describes how to create the AddressBookDC.java class.
- In the Projects panel located on the left of the screen, right-click the Model project, select New, and then select From Gallery. 
- On the New Gallery form, select Java from the Categories panel, and then select Class in the Items panel. 
- On the Create Java Class form, enter the following information: - Name: AddressBookRecord 
- Package: com.oracle.e1.E01012.formservicetypes 
 
- Click the OK button to create the Java class. 
- Add the following fields to AddressBookRecord.java: - private String addressNumber; private String alphaName; private String mailingName; private String address; private String city; private String state; private String zipCode; private String taxId; private String businessUnit; private String searchType;
- Add the following method to AddressBookRecord.java: - public void clear() { addressNumber = ""; alphaName = ""; mailingName = ""; address = ""; city = ""; state = ""; zipCode = ""; taxId = ""; businessUnit = ""; searchType = ""; }
- Right-click within the cass and select Generate Accessors... from context menu. 
- Select all methods and click OK button. 
- Save changes to AddressBookRecord.java. 
- In the Projects panel located on the left of the screen, right-click the Model project, select New, and then select Java Class. 
- On the Create Java Class form, enter the following information: - Name: AddressBookDC - Package: com.oracle.e1.E01012.model 
- Click the OK button to create the Java class. 
- Add the following fields to AddressBookDC.java: - private P01012_W01012B_FormParent addressBook = new P01012_W01012B_FormParent(); private P01012_W01012B_GridRow selectedAddressBook = new P01012_W01012B_GridRow(); private AddressBookRecord addressBookDetail = new AddressBookRecord(); private String selectedAddressNumber = ""; // Processing Options private String p01012Version = ""; private String hideTax = ""; private String displaySupplierMaster = ""; private String displayCustomerMaster = ""; private String searchTypeDefault = ""; private String displayCSMS = ""; private String p0100041Version = ""; private String selfServiceMode = ""; private String typeCode = ""; private String postalCodeValidate = ""; private String postalAddressRetrieval = ""; private String p03013Version = ""; private String p04012Version = "";
- Right-click within the class and select Generate Accessors... from context menu. 
- Select all methods and click OK button 
- Save changes to AddressBookDC.java.