Skip to main content

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, a'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(), t'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!


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


Roman,

This is cool!

Thanks!

Bill


Very very cool!


Cool! Thanks


nice touch! 


Thank you. Thank you. Thank you very much.


All,

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

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

Thanks again Roman!

Bill


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.


I love this post.


Agreed. Very cool find. 


Reply