upload In Group
Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#uploadGroup RequestOptions.uploadGroup} and return this options object.
- Example using proxy classes:
open fun uploadGroupExample(patient: Patient): kotlin.Unit { val service = this.healthService; val appointment1 = Appointment(); appointment1.patient = patient; appointment1.purpose = "Fix Broken Leg"; service.createEntity(appointment1, null, RequestOptions() .uploadInGroup("Urgent")); val appointment2 = Appointment(); appointment2.patient = patient; appointment2.purpose = "Check Sore Arm"; service.createEntity(appointment2, null, RequestOptions() .uploadInGroup("Non-Urgent")); // Some time later... Upload only the urgent appointments. service.upload(StringList.of("Urgent")); }
Return
This options object.
Parameters
group
Upload group.