on 11-28-2007 11:53 AM
Hi,
I'm doing an application and I whant obtain the status of a row in the client on run time. how can do it?
thanks
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.