Announcement

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

    using valueXPath subscript value in JPA2DataSource query

    Hi,
    We are testing new features in SmartGWTEE3.0/SC8.2 (7Nov2011 nightly). Can we use a datasource field with a valueXPath in an AdvancedCriteria?

    Example:

    Field:
    <field name="name" valueXPath="child[1]/childOfChild/name">

    AdvCrit:

    where "name" is not NULL

    Thanks.

    #2
    Hi,

    JPA data sources support only simple XPath expressions: property/subProperty/subSubProperty. It is specified in javadocs.

    Complex XPath expressions (in your case: child[1] - use second object from underlying list) are not supported.

    You can retrieve value for complex XPath but neither server side filtering nor updating will work.

    Regards,
    Alius

    Comment


      #3
      Thanks Alius and sorry for mispelling your name!

      Comment

      Working...
      X