locked
General Method PreprocessQuery RRS feed

  • Question

  • Can I dynamically add records to a query using the General Method PreprocessQuery?

    Thursday, May 16, 2013 1:43 PM

Answers

  • The preprocessquery method on queries is intended for applying additional filtering (by means of where classes) on an entity. You can't change the shape of the entity (=projecting) nor adding records.

    Records are added:

    • by means of dedicated add screens manipulated by the user,
    • by means of code running in the silverlight client
    • by means of code running  server side, as kind of side-effect processing,
    • by means of commands via the command table pattern or via a web-api call.

    paul van bladel

    • Proposed as answer by Angie Xu Tuesday, June 4, 2013 2:23 AM
    • Marked as answer by Angie Xu Wednesday, June 5, 2013 11:57 PM
    Thursday, May 16, 2013 5:41 PM