ever needed to query model on source page from page include page?

  • 2
  • Idea
  • Updated 3 years ago
// used to be to refresh model from page that called a page include
// before page include action
skuid.snippet.registerSnippet('setSourceModelName',function(args) {
    var params = arguments[0],
        $ = skuid.$;

        sourceModelName = params.model.id;
});

// used in conjunction with snippet 'setSourceModelName'
skuid.snippet.registerSnippet('querySourceModel',function(args) {
    var params = arguments[0],
        $ = skuid.$;

        skuid.$M(window.sourceModelName).updateData();
});
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 3 years ago

  • 2
Photo of Eric Tuggle

Eric Tuggle

  • 342 Points 250 badge 2x thumb
Found this post and it is very helpful, thanks.  it did leave me wondering if it is possible to have an action taken in one page include refresh models on other page includes.
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,240 Points 5k badge 2x thumb
Eric~

That's an interesting idea but it is not currently possible.

Thanks!
Karen