cancel
Showing results for 
Search instead for 
Did you mean: 

Status of a row in java

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)