locked
StartsWith for integer field RRS feed

  • Question

  • Hi,

    I need to query data service filtering resultset by StartsWith on integer field.

    I have tried

    ?&filter=startswith(cast(ID, System.String), 'a') but it doesn't works

    Is it possible to do such things?

    Thanks,

    Dima

    Friday, May 14, 2010 12:15 PM

Answers

  • Hi,

    This is not supported right now, the cast operator is only supported on entity types. In any case, what would you expect from such a query. Integer is a number, a number can't start with a character 'a'.

    Thanks,


    Vitek Karas [MSFT]
    • Marked as answer by Mike Flasko 2 Monday, June 14, 2010 9:44 PM
    Monday, May 17, 2010 8:12 AM
    Moderator