Customer Portal

Multikey sort with different sort criteria

Comments 3

  • Avatar
    dalonso
    0
    Comment actions Permalink
    Ok, I answer myself:

    It seems the online documentation is not updated. For the EXT_SORT component we found the following:

      Attribute Mandatory Description
      sortKey yes field names separated by :;| {colon, semicolon, pipe}
      sortOrder no one of “Ascending|Descending” {the fist letter is sufficient}


    So it's impossible to deduct that the component supports another different syntax, as I was able to find in the examples:

    <Node enabled="enabled" guiHeight="0" guiName="Sort" guiWidth="0" guiX="174" guiY="34" id="EXT_SORT0" passThroughInputPort="0" sortKey="Code(a);Country(a);Currency(a);Amount(a)" type="EXT_SORT"/>


    Great!!!
  • Avatar
    twaller
    0
    Comment actions Permalink
    We suggest you better read our user`s manual:

    http://www.cloveretl.com/_upload/clover ... index.html

    This possibility is described in this documentation.

    You can find there, for example:

    In its ExtSort section:

    The resulting Sort key is a sequence of field names and an a or a d letter in parentheses separated by semicolon. It can look like this: FieldM(a);...FieldN(d).
    In older versions of CloverEngine, the order was the same for all key fields and was specified using the Sort order attribute. Its default value was Ascending.

    And in its Reference Part:

    Sort key: Key according to which the records are sorted. Expressed as the sequence of individual expressions consisting of field name followed by the a or d letter in parentheses. Example: fieldName(a). These individual expressions are separated from each other by semicolon. Even the last individual expression can be followed by semicolon, however, this terminal semicolon is optional and can be omitted. Example of Sort key: first_name(a);last_name(a);salary(d). The sorting priority descends as the fields follow each other in the sequence.

    However, we will update this issue on our wiki pages.
  • Avatar
    dalonso
    0
    Comment actions Permalink
    Hi twaller,

    thanks for your info. I really appreciate.

    Keep the good work, I'm really astonished at what can be done with Clover.

    Best regards.

Please sign in to leave a comment.