#pickerFieldCustom Has anyone run into a problem executing a query rule as

Certified Associate Developer
#pickerFieldCustom
Has anyone run into a problem executing a query rule as part of the saveInto of a custom picker? I'm receiving an error (pasted below) whenever I try to query for an object as part as part of the saveInto of a picker even when the query rule is static (eg: rule!getSomeObjectByID(2). I have verified that the query works on the same form and that the ID passed from the picker is valid. Note: This error occurs in the interface editor and there are no bind variables in use - ie: there are no database writes taking place at the same time.

18:35:10,438 INFO [stdout] (ajp-/0.0.0.0:8009-12) 2016-03-07 18:35:10,435 [ajp-/0.0.0.0:8009-12] ERROR org.hibernate.transaction.JDBCTransaction - JDBC commit failed
18:35:10,438 INFO [stdout] (ajp-/0.0.0.0:8009-12) java.sql.SQLException: Commit can not be set while enrolled in a transaction

OriginalPostID-199360

OriginalPostID-199360

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer
    Hi Shailendras, Sorry I wasn't more clear above. The picker itself is working exactly as desired. What I'm trying to do though is that when a user picks an object from the picker I save not only the ID of that object but a copy of the CDT as well.
    The copy of the CDT would be saved to a variable that isn't used directly by the picker at all.
Reply
  • 0
    Certified Associate Developer
    Hi Shailendras, Sorry I wasn't more clear above. The picker itself is working exactly as desired. What I'm trying to do though is that when a user picks an object from the picker I save not only the ID of that object but a copy of the CDT as well.
    The copy of the CDT would be saved to a variable that isn't used directly by the picker at all.
Children
No Data