Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    12.1p RestDataSource docs are missing some examples

    Hi Isomorphic,

    could you extend the examples in the RestDataSource docs with information on how to do Set-queries with AdvancedCriteria and Or-queries in simple notation?

    Is this correct?
    Code:
    <request>
        <dataSource>myDS</dataSource>
        <operationType>fetch</operationType>
        <operationId>fetchUpdatedData</operationId>
        <data>
            <_constructor>AdvancedCriteria</_constructor>
            <fieldName>ID</fieldName>
            <operator>inSet</operator>
            <value>16</value>
            <value>17</value>
            <value>18</value>
        </data>
    </request>
    Is this OK as well (resulting in an OR(?))?
    Code:
    <request>
        <dataSource>myDS</dataSource>
        <operationType>fetch</operationType>
        <operationId>fetchUpdatedData</operationId>
        <data>
            <ID>16</ID>
            <ID>17</ID>
            <ID>18</ID>
        </data>
    </request>
    Both requests work in 12.0p, but as the format is not defined in the docs I do not want to run into potential problems on update.

    Thank you & Best regards
    Blama

    #2
    Hi Isomorphic,

    could you answer this question?

    Best regards
    Blama

    Comment


      #3
      The AdvancedCriteria docs cover the representation of AdvancedCriteria in XML, which is the same format whether you are considering Component XML of RestDataSource queries.

      The latter is a simple Criteria (not AdvancedCriteria) and works and is supported because you can just repeat elements in Component XML to create Arrays, in general, and an Array passed as a simple Criteria value is treated as an OR by default.

      Comment

      Working...
      X