Skip to Content
1
Former Member
Jun 28, 2007 at 01:20 AM

Create Order Error

31 Views

Hi,

I been trying to recreate an order that was send to the backend with an error in the mobile device. My basic idea is that from the error log on the device the user will be able to click on the event log and review the order details. I enter an order with both equipment and material to force a backend error. On the device I have enhanced the error list with the following code:

ErrorConflictInbox errorConflictInbox= SmartSyncRuntime.getInstance().getInboxNotifier().getErrorConflictInbox();

MeIterator iter;

syncBoResponse resp;

try {

iter= errorConflictInbox.getAllSyncBoResponses();

while(iter.hasNext()){

resp= (SyncBoResponse)iter.next();

resp.getSyncBoDescriptor().getSyncBoName();//SyncBo Name

resp.getSyncBoResponseState().toString();

resp.getResponseType().toString();//Get the SyncBo response type (conflict or ERROR)

resp.getText();// This will return the exact message from the server

}

The problem is that the code never executes the code inside the while loop. Please advise me on how to proceed to recreate the order on the mobile device.

Thanks,

Miguel