I’m trying to use skuid.$M(‘YourModelName’) on the dev console at runtime on a v2 page and it gets an error “skuid.$M is not a function”. It’s short for skuid.model.getModel but that’s not a function either. Any ideas for how to pull up my model?
I’ve got forms and text components that don’t seem to be rendering once per row in a model, and I’m trying to see if my model doesn’t actually have all the rows I think it has
https://docs.skuid.com/latest/v2/en/skuid/api/#sandboxing
-
skuid.runtime.getPage(‘YourPageName’)
- right click the out "store as global variable"
- temp1.$M('YourModelName')
Another option here is to use skuid.debug
skuid.debug — Skuid v13.0.4 Documentation
It’s a bit faster I find, you can do skuid.debug.model(‘YourModelName’) and it will get you the model. You can also do skuid.debug.models(‘Partofamodelname’) and it will give you all models with names that contain whatever value you put in quotes. Pretty fun
Jack, the Debug API is awesome! Glad you found it.
Emily