Skip to main content
Nintex Community Menu Bar

Console.table() - A Better Way to Debug using your Browser Console

  • July 8, 2024
  • 10 replies
  • 26 views

Forum|alt.badge.img+8

Many of us are familiar with using console commands such as

**skuid.$M('ModelName');**

I recently discovered that we can use console.table()… Enjoy! 🙂

**console.table(skuid.$M('ModelName').data);**

Returns the data in a model

**console.table(skuid.$M('ModelName').data, ['Id', 'Name', 'Status\_\_c']);**

Returns the data for specific fields in a model

**console.table(skuid.$M('ModelName').fields);**

Returns the properties of all the fields in a model

**console.table(skuid.$M('ModelName').conditions);**

Returns the properties of all the conditions in a model

**console.table(skuid.model.getModelsList());**

Returns a list of all Models

**console.table(skuid.model.getModelsList(), ['id', 'objectName', 'recordsLimit', 'canRetrieveMoreRows', 'orderByClause']);**

Returns a list of all Models with specific Model properties selected


And the best part is, any of these tables can be dynamically ordered!

10 replies

Forum|alt.badge.img+8

Shout out to Stephen Sells for inspiring this post. Some more useful Console Commands can be found at his post here.


Forum|alt.badge.img+10

Roman,

This is cool!

Thanks!

Bill


Forum|alt.badge.img+20

Very very cool!


Forum|alt.badge.img+10

Cool! Thanks


Forum|alt.badge.img+3
  • July 8, 2024

nice touch! 


Forum|alt.badge.img+10

Thank you. Thank you. Thank you very much.


Forum|alt.badge.img+10

All,

A link to Mozilla’s document page about ‘console’:

https://developer.mozilla.org/en-US/docs/Web/API/Console

Thanks again Roman!

Bill


Forum|alt.badge.img+8

Thanks Bill! Upon discovery, I knew this would become an invaluable tool for many of us here.

Personally, I never enjoyed calling skuid.$M(‘ModelName’); and then needing to drill down manually to 2 or 3 more levels to get the info I was actually looking for.

console.table() makes it so much easier to visually grasp.


Forum|alt.badge.img+3

I love this post.


Forum|alt.badge.img+5

Agreed. Very cool find.