Problem in calling Snippet from HTML template

Hi Sumeet,

You are getting this error because you want to read the item property of args which is undefined. When you call a Skuid Snippet with a row action, Skuid provides you with the argument params (which contain the context model, row and other useful stuff).
But you are calling the snippet without any params supplied (and not Skuid managed).
You need to figure out what exactly you need to supply as params, or (worst case) rewrite your snippet.

Your call from the template should then look something like this:


<a  href="javascript:skuid&#46;snippet&#46;getSnippet('ReadActionSnippetPA')(<b>'asd'</b>);">asd</a>

But of course instead of the string ‘asd’ you probably want to supply an ID of a row or some other context you need in your snippet (this can also be an object, you just have to assemble it in the template using a standard HTML script tag and write some js code there as well).

Cheers