I am new to Skuid. I have added this Javascript Snippet to create a custom button. The onclick function of the button should call the drawloop ddp. I want to add this custom component in a tab. I cannot see the custom button… What might be the problem? Here is the Javascript snippet that I created. Thanks for your help.
skuid.componentType.register(‘GetContract’,function(element){
var btn = jQuery(‘ Create Contract’).button()
.on(‘click’, function(){
//instantiate a model using “Applications model”
var appModel = skuid.model.getModel(‘applicationYod’);
//Get the first record from our model
var appRow = appModel.dataa0];
//Call Drawloop
var url = "/apex/loop__looplus?eid={{Id}}&sessionId={{$Api.Session_Id}}&autorun=true";
var merges = skuid.$('<div>').append(appModel.mergeRow(appRow,url));
window.open(merges.text());
});
element.append(btn);
});