Run code when tab loads

Hi Peter, for your situation, you need to wrap your code in an event handler that gets fired when the Skuid popup finishes loading:

(function(skuid){<br>var $ = skuid.$;<br>$(function(){<br>&nbsp; &nbsp;$(document.body).one('pageload',function(){<br>&nbsp; &nbsp; &nbsp; var models = skuid.model.map();<br>&nbsp; &nbsp;});<br>});<br>})(skuid);