IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Configuring Electronic Journal Viewer GUI

About this task

BTT Electronic Journal Viewer (EJV) provides a SWT Composite that contains the query GUI and result presentation GUI. Those two parts are encapsulated in the Composite, but you can configure them in the XML file. Perform the following procedure to configure the EJV GUI:

Procedure

  1. Add the class mappings into the XML configuration file. It binds the XML tag name with the implementing class. For example, QueryConditionFieldDescriptor corresponds to the com.ibm.btt.bc.ej.viewer.config.QueryConditionFieldDescriptor java class. Use the following codes:
    <props id="classTable">
    	<entry key="QueryConditionLayout" value="com.ibm.btt.bc.ej.viewer.config.QueryConditionLayout" />
    	<entry key="QueryResultLayout" value="com.ibm.btt.bc.ej.viewer.config.QueryResultLayout" />
    	<entry key="QueryConditionFieldDescriptor" 
    		value="com.ibm.btt.bc.ej.viewer.config.QueryConditionFieldDescriptor" />
    	<entry key="QueryResultFieldDescriptor"  value="com.ibm.btt.bc.ej.viewer.config.QueryResultFieldDescriptor" />
    	<entry key="EJViewerConfigurationObject" value="com.ibm.btt.bc.ej.viewer.config.EJViewerConfigurationObject"/>
    </props>
  2. Configure the query fields in BTT Element Factory XML configuration file. For example,
    <QueryConditionLayout  id="conditionUIlayout"  colum="3" >
    	<java.util.ArrayList   Injection="fieldsList">
    		<QueryConditionFieldDescriptor  fieldName="TxnID" />
    		<QueryConditionFieldDescriptor  fieldName="ACCOUNT" />
    		<QueryConditionFieldDescriptor  fieldName="ACCOUNT2" />
    		<QueryConditionFieldDescriptor  fieldName="Status" />
    		<QueryConditionFieldDescriptor  fieldName="AMOUNT" />
    		<QueryConditionFieldDescriptor  fieldName="BankID" />
    	</java.util.ArrayList>
    </QueryConditionLayout>
    The following query condition GUI is generated by the above configuration code. User ID, Sequence Number, and Date are added by the BTT EJ automatically.
    The generated query condition GUI
  3. Configure the result fields in BTT Element Factory XML configuration file. For example,
    <QueryResultLayout  id="resultUIlayout" >
    	<java.util.ArrayList   Injection="fieldsList">
    		<QueryResultFieldDescriptor  fieldName="TxnID" width="100"/>
    		<QueryResultFieldDescriptor  fieldName="ACCOUNT"  width="200"/>
    		<QueryResultFieldDescriptor  fieldName="AMOUNT"   width="100"/>
    		<QueryResultFieldDescriptor  fieldName="Status"   width="100" />
    		<QueryResultFieldDescriptor  fieldName="ACCOUNT2" width="200"/>
    		<QueryResultFieldDescriptor  fieldName="BankID" />
    	</java.util.ArrayList>
    </QueryResultLayout>
    The configuration code above will generate the following query result GUI. User ID, Date and Sequence Number are added by the BTT EJ automatically.
    The generated query result GUI
  4. Configure the BTT EJV with the items you have defined.
    <EJViewerConfigurationObject  id="ejvconfig">
    			<ref Injection="queryConditionLayout" refId="conditionUIlayout" />
    			<ref Injection="queryResultLayout" refId="resultUIlayout" />
    			<ref Injection="ejInstance" refId="ejJdbcT2" />
    </EJViewerConfigurationObject>
    The conditionUIlayout and resultUIlayout are defined in step 2 and step 3. The ejJdbcT2 is defined in the section concerning EJ.


Feedback