cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript accessing InfoTable: Use 'rows' or not?

SOLVED
Highlighted
Regular Member

Javascript accessing InfoTable: Use 'rows' or not?

Say I have an InfoTable called searchResults.  I just realized that searchResults.length returns the same as searchResults.rows.length and I can access the row data in a loop using searchResults.rows[i].fieldname or just searchResults[i].fieldname.  What is the difference, if any, and has it always worked this way?  I'm using 8.5.1, not sure it works like this in other releases.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Javascript accessing InfoTable: Use 'rows' or not?

Hi,

 

As far as I know, it is ok to call values from infotables in both ways. The difference is in notation.

 

Best regards,

Raluca Edu

View solution in original post

3 REPLIES 3
Highlighted

Re: Javascript accessing InfoTable: Use 'rows' or not?

Hi,

 

As far as I know, it is ok to call values from infotables in both ways. The difference is in notation.

 

Best regards,

Raluca Edu

View solution in original post

Highlighted

Re: Javascript accessing InfoTable: Use 'rows' or not?

Thanks!

Highlighted

Re: Javascript accessing InfoTable: Use 'rows' or not?

 

Hi,

 

In addition, below is a table that demonstrates InfoTable helper functions versus manipulating the .rows array directly:

 

raluca_edu_0-1581439716138.png

 

Best regards,

Raluca Edu

 

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!