Skip to main content
Nintex Community Menu Bar
Question

table component search field creates temp condition with subcondition property incorrectly

  • July 9, 2024
  • 3 replies
  • 11 views

Forum|alt.badge.img+20

3 replies

Forum|alt.badge.img+6
  • Nintex Employee
  • July 9, 2024

Pat,

Is the error you are getting “Cannot read property ‘length’ of null” per chance? Try this:

if (<b>condition.subConditions</b> &amp;&amp; condition.subConditions.length...


Forum|alt.badge.img+20

That is the error. Is the condition built correctly in the first place?


Forum|alt.badge.img+6
  • Nintex Employee
  • July 9, 2024

Per our documentation, it should be an Array when defined. Search Conditions are a little different in that we add the programmatically though. I’ll look into it some more to see if it’s something we should treat as a bug (kind of low level, so we have to be careful when making changes), but in the meantime, does that change get your snippet working?