Pass arguments to snippet from action framework.

  • 10
  • Idea
  • Updated 7 months ago
  • Implemented
This would be super handy.

Not my idea, but I figured it should be its own 'idea' thread: https://community.skuidify.com/skuid/topics/call-snippet-from-snippet
Photo of Matt Sones

Matt Sones, Champion

  • 32,036 Points 20k badge 2x thumb

Posted 4 years ago

  • 10
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,798 Points 20k badge 2x thumb
Consider the idea registered.  Thanks for providing the advice!
Photo of David Giger

David Giger

  • 1,758 Points 1k badge 2x thumb
I would really appreciate this feature.
Photo of Thimo

Thimo

  • 1,280 Points 1k badge 2x thumb
Yes please! We need this! :)
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,780 Points 5k badge 2x thumb
Official Response
Matt~

Thank you for your patience! Skuid has implemented this new feature regarding the ability to pass arguments to snippets from the action framework in the new Millau 11.0 release which is now available on the Skuid Releases page.

As a reminder, Salesforce does NOT allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade. Please let us know if you continue to encounter any problems with this issue after upgrading.
 
Thanks again for bringing us this idea and helping make Skuid a better product! 
Karen
Photo of and thorough

and thorough

  • 788 Points 500 badge 2x thumb
I am not finding the documentation for this and do not see a place to pass custom arguments to a snippet (on version 11.1.6).  How can we now pass arguments/parameters to snippets from the action framework?  Or can you point me to the right place if I missed it in the documentation?  Thanks!
Photo of James Paden

James Paden

  • 170 Points 100 badge 2x thumb
Yes, can you add to the documentation? I can't find it anywhere.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 43,914 Points 20k badge 2x thumb
Karen! Liar liar pants on fire. I don't see this option that you speak of.

Action sequences work with inputs but snippets from action framework that I can see.
Photo of Arne-Per Heurberg

Arne-Per Heurberg

  • 2,566 Points 2k badge 2x thumb
i can't find it either
Photo of John Dahlberg

John Dahlberg, Champion

  • 4,076 Points 4k badge 2x thumb
You can call a snippet via a URL in the meantime.  Here's the syntax:

javascript:skuid.snippet.getSnippet('SnippetName')('Parameter1','Parameter2');


We're using this technique extensively and it works very well.  Conceivably you could set this up as a reusable action and manage the parameters via the page composer.  That may be an extra step however.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,054 Points 10k badge 2x thumb
Official Response
Hi everyone! It has been a long time coming, but I've written up an explanation for how this can be accomplished. You can read that (and more) here:
https://community.skuid.com/skuid/topics/inputs-and-action-sequences-or-how-you-can-pass-an-argument...