Skip to Content
0
Former Member
Sep 23, 2014 at 09:16 AM

odata approach for simple business case

63 Views

Table with measurements

  1. 1) Client reads dataset “ValueToMeasureSet” :

ID

ValueToMeasure

MeasuredValue

AreValuesInRangeStatus

Id1

ValueToMeasure1

Id2

ValueToMeasure2

  1. 2) Client updates data set to serwer:

ID

ValueToMeasure

MeasuredValue

AreValuesInRangeStatus

Id1

ValueToMeasure1

1300

Id2

ValueToMeasure2

1800

  1. 3) Client wants to know AreValuesInRangeStatus, client reads dataset one more time

ID

ValueToMeasure

MeasuredValue

AreValuesInRangeStatus

Id1

ValueToMeasure1

1300

Ok

Id2

ValueToMeasure2

1800

Not ok

Am I right that there should be Odata CRUDQ operations like below?:

  1. 1) Query
  2. 2) Update
  3. 3) Query

Please comment this approach with pointing good practices. Maybe i should change approach ?

I thought about Function import operation (it could be one call instead of 2) and 3)), but Function import support only simple type as input.



BR

Lucas