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

edited June 25 in Praise
Many of us are familiar with using console commands such as 
skuid.$M('ModelName');
image

I recently discovered that we can use console.table()... Enjoy! :)
console.table(skuid.$M('ModelName').data);
Returns the data in a model
image
console.table(skuid.$M('ModelName').data, ['Id', 'Name', 'Status__c']);
Returns the data for specific fields in a model
image
console.table(skuid.$M('ModelName').fields);
Returns the properties of all the fields in a model
image
console.table(skuid.$M('ModelName').conditions);
Returns the properties of all the conditions in a model
image
console.table(skuid.model.getModelsList());
Returns a list of all Models
image
console.table(skuid.model.getModelsList(), ['id', 'objectName', 'recordsLimit', 'canRetrieveMoreRows', 'orderByClause']);
Returns a list of all Models with specific Model properties selected
image

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

image

Comments

Sign In or Register to comment.