olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tuo, Erming" <erming....@sap.com>
Subject How to get $count and pagination on the navigational property
Date Wed, 10 Jan 2018 18:26:06 GMT
Hi,

Quick question, take the following example

GET /odatav4/school-service/vi1/Teachers(‘jsmith’)/students?$count=true

Students is a navigational property of Teachers. The above link obviously won’t work because
$count only applies to the root entity, which is just one because of the PK. So, here are
the questions –


  1.  How to get total count for the list based navigational property Students?
  2.  Is it possible to paginate on Students with above URL?

Help will be greatly appreciated.

thx

Erming Tuo
LMS software Development Archi
SAP SuccessFactors | 2000 Edmund Halley, Reston, VA
US +1 703-678-0615

[id:E0BBB916-1B85-490F-B852-EA52F290EC0D]

This e-mail may contain trade secrets or privileged, undisclosed, or otherwise confidential
information. If you have received this e-mail in error, you are hereby notified that any review,
copying, or distribution of it is strictly prohibited. Please inform us immediately and destroy
the original transmittal. Thank you for your cooperation.


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message