Subtracting property values when querying OData RRS feed

  • Question

  • I am trying to subtract a couple of properties in an OData feed - but I cannot get it to work.

    I an using the OData demo service and made the query


    I thought I could expand it to this:

    http://services.odata.org/V3/OData/OData.svc/Products()?$select=ID,Rating, ID-Rating

    To subtract ID and Rating

    But it doesn't work and throws a "Syntax error at position 13" (the minus-sign).

    Is there a way to do what I want?


    Copenhagen, Denmark

    /Jesper www.idippedut.dk

    Tuesday, October 1, 2013 9:10 AM