Announcement

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

    DataTools.setProperties

    Hello,

    How can we get rid of the message
    setProperties: couldn't set:
    {_selection_6:"No such property"}

    We get this when we try to update our object with newValues DataTools.setProperties(newValues, user). We have no idea where is this {_selection_6} coming from ?
    Or at least how can we hide this message, because half of our server log are these messages.

    Please let us know if you need more info.

    Thanks,
    Stonebranch

    #2
    If extra data has been tacked onto record objects, it will be sent to the server and eliminated when it is applied to a bean by setProperties (or reaches the SQL layer, or in other cases).

    You can eliminate this DataSource-wide with sendExtraFields:false, but this will eliminate common uses like sending criteria to the server that are not declared DataSource fields.

    You can also eliminate this by adding logic early in the processing chain (say, a servlet that instantiates RPCManager in lieu of the built-in IDACall servlet) by removing anything prefixed "_selection" from input data.

    That all said - this particular log statement was using System.out.println() for reasons that no longer apply, and we have just now switched it over to use Log4j instead so that it can be squelched like other Log4j logs.

    Comment

    Working...
    X