how to print (console log) the current filter value for the table in page ?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
  • (Edited)
Photo of KVin

KVin

  • 1,158 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Easiest way is to dig into the model object in your browser console. 

skuid.$M('ModelName').conditions

This will show all the conditions on the model.  Including the filterable ones.  Each condition has a value or values node that shows what the current value of the condition is. 

You could make a snippet where that is retrieved as a variable,  and then printed in a console.log statement.  And then change the renderer on your field to be "custom" (with the name of the snippet you just created). 

Enjoy. 
Photo of KVin

KVin

  • 1,158 Points 1k badge 2x thumb
Thanks Rob!

For me, I just wanted to see on console while debugging.
thanks for the field renderer idea - might be a good use for future .