Skip to main content
Nintex Community Menu Bar
Question

When in Javascript how do I reference the model within the context of the button activating the scri

  • July 10, 2024
  • 2 replies
  • 6 views

Forum|alt.badge.img+6

Within a title block referencing a specific model I have a button that calls an inline javascript snippet. I would like to reference the Model that is within the context of the Title block that the button call is coming from. For example if the Title Block is referencing a Model called MyAccounts then what javascript would I use to get the Model MyAccounts dynamically? If I were calling a snippet from within a Row I could use something like arguments[0].item. But I am not sure what the syntax should be for what I am attempting.

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+20

Second line.

var params = arguments[0], model = params.model, $ = skuid.$;<br>

 



Forum|alt.badge.img+6

Thank you. It was exactly what I needed.