cancel
Showing results for 
Search instead for 
Did you mean: 

Pagination in SyncBO

Former Member
0 Kudos

Hi,

Is there anyway to do pagination in a syncBO?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

can you please clarify your question?

Rgds Thomas

Former Member
0 Kudos

Hi Thomas,

I have a table where the number of data is very big and i need to do a pagination of this data.

I would like if there is a way in syncBO to work with the pagination of data.

Thanks.

Former Member
0 Kudos

hello fab,

you can make use of query or jquery. when creating the

query instance, you can specify the startindex and maxcount.

the number of pages can be retrieved using

<a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/me/com/sap/ip/me/api/smartsync/SyncBoDataFacade.html#size(com.sap.ip.me.api.persist.query.Query)">SyncBoDataFacade.size(Query)</a>

divided by the record/page you desire. you can then specify

the startindex by the currentPage * record/page.

see also

<a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/me/com/sap/ip/me/api/smartsync/SmartSyncQueryFactory.html">SmartSyncQueryFactory.createQuery</a>.

hope this help.

regards

jo

Former Member
0 Kudos

Hi Jo,

Your help solved my problem.

Thanks.

Former Member
0 Kudos

Hi Fabricio !

Very nice !

Regards.

Answers (0)