Hello Juan,
you want to get the status of a row?
Well, I guess you want to read a single row? The MDK gives you a great overview about the MI Persistence API - there you fiond exactly what you are looking for.
In general: you have a SyncBO. If you for example want to print the status of the top rows of the sync BO, the coding would be pretty much like:
try {
SyncBoDescriptor sb_Descriptor = SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade().GetSyncBoDescriptor(<<Name_Of_SyncBO>>);
SyncBoDataFacade sb_DataFacade = SmartSyncRuntime,getInstance().getSyncBODataFacade(VisibilityType.SEPARATED);
SyncBoCollection sb_List = sb_DataFacade.getSyncBOs(sb_Descriptor);
MeIterator iter = sb_List.iterator();
while (iter.hasNext()) {
SyncBo syncBO = (SyncBo)iter.next();
System.out.println("Status :"+syncBo.getStatus().toString());
} //end while
} catch (PersistenceException ex) {
//whatever you will do here
}
Well, I hope this gives you an idea how to access separate values in the code.
If you need access to a single item of a row, you can easily access it with its RowDescriptor method for example. But as I said in the beginning of my answer, it makes sence to have a deep look into the MDK here, this will give you a great overview.
Regards,
Oliver
Add a comment