Skip to main content
Nintex Community Menu Bar
Question

Arguments for Page Title button - row is undefined

  • July 9, 2024
  • 5 replies
  • 55 views

Forum|alt.badge.img+18

Having a problem with the arguments passed to my snippet from a Page Title component.

var model = arguments[0].model, row = arguments[0].row;



I’m getting model, but row comes back undefined, even though there is a row of data in the model (model.data[0] exists). Any idea why this might be happening?

Is model.data[0] equivalent to a row object? In that case, I could just use

var model = arguments[0].model, row = model.data[0];

5 replies

Forum|alt.badge.img+18
  • Author
  • July 9, 2024

Update: using row = model.data[0] works, so this is now less of a problem and more of a matter for curiosity.


Forum|alt.badge.img+20

I believe that row = arguments[0].row is only available when the snippet has a row in context. ie. a row action, model action “Row in Model updated”, etc


Forum|alt.badge.img+18
  • Author
  • July 9, 2024

That’s that I would have expected, too, Pat. But I’ve been successfully using arguments[0].row on page title components. Suddenly, when I throw a copy of the pagetitle into a popup, row is undefined (with or without context conditions on the pagetitle component). Seems strange.

Maybe the bug is that it shouldn’t work in general. 😉


Forum|alt.badge.img+13

I’m assuming that arguments[0].row is only undefined when the Page Title is in a Popup? Is that true?


Forum|alt.badge.img+18
  • Author
  • July 9, 2024

That seems to be the case.