Widget filter through code not working



1 comment

  • Avatar
    Lidor Rosencovich


    If using your code, after each change like that, you will need to call 


    This will save your changes into the mongoDB and it should be reflected in the embedded page.

    However, I would suggest instead of changing the metadata object which changing the widget itself (for permanent), to use 'beforequery' event (on the widget).

    In that event, you can change the query sent to the server before it is sent. In that way, you still do your changes and the widget stay in his original state - of course, depends on what you are trying to achieve.

    Let me know if you any other question.

    Comment actions Permalink

Please sign in to leave a comment.