Retrieving and updating data

About this task

XUI engine links BTT Client Operation to do transactions. XUI engine offers pre-built Action (com.ibm.btt.rcp.xui.action.OperationAction) to launch client operations. For example, if XUI panel links with “OpenAccoutClientOp”, it can define this action like this:
<Button bounds="340, 400, 78, 26" text="Submit" disableInError="true" >
        	<list Injection="actions">
        		< com.ibm.btt.rcp.xui.action.OperationAction  operationName=” OpenAccoutClientOp”/>
        	</list>
        </Button>
The steps when user submits the transaction panel:
  1. User clicks Submit button.
  2. Trigger operation action, and this action will instance OpenAccountClientOp, transfer the data (Context) from transaction panel into this client operation and execute this client operation.
  3. This client operation will use CSClientService to connect to BTT server side to submit the request and data.
  4. After server side logic, the response data will send back to client side. If the reply data need to refresh current transaction panel, OpenAccountClientOp should fire a operation replied event.
  5. OperationAction has registered as a listener of operation replied event. If it accepts this event, it will refresh current transaction panel.

For more information about client operation, you can refer to client operation document.

For more information about CSClientService, you can refer to CSClientService document.

If you use XUI files in XUI processor, you also can use executeOperationAct to launch client operations and refresh data. For more information about using XUI in processor, please refer to XUI processor document.