Is there an instruction on how to attach a tabbed form to a window?
I’ve tried creating a tabbar first and then attaching a form to the tabbar, but it won’t attach to the window.
I can attach a form without tabs to a window using following code - how can this be altered to attach a form with tabs?
var app = app || {}; //namespace for the application
app.attach_add_dashboard_form = function (){
app.add_dashboard_window = app.main_window.createWindow("adf", 10, 10, 400, 325);
app.add_dashboard_window.setText("New Dashboard *");
app['add_dashboard_form'] = app.add_dashboard_window.attachForm(
[ //define form controls
{type: "block", list:[
{type: "input", name:"dashboard_name", label: "Dashboard Name", position:"label-left", labelWidth: 100, inputWidth: 220},
{type: "combo", name:"use_viewport", label: "Use Viewport", position:"label-left", labelWidth: 100, inputWidth: 226,
options:[
{text:"Yes", value:"Y"},
{text:"No", value:"N"}
]
},
{type: "input", name:"dashboard_width", label: "Width", position:"label-left", labelWidth: 100, inputWidth: 220},
{type: "input", name:"dashboard_height", label: "Height", position:"label-left", labelWidth: 100, inputWidth: 220},
{type: "input", name:"dashboard_border_style", label: "Border Style", position:"label-left", labelWidth: 100, inputWidth: 220},
{type: "input", name:"dashboard_margin", label: "Margin (px)", position:"label-left", labelWidth: 100, inputWidth: 220, hidden: true},
{type: "input", name:"dashboard_position", label: "Position", position:"label-left", labelWidth: 100, inputWidth: 220, hidden: true},
{type: "btn2state", name:"active", label: "Active", position:"label-left", labelWidth: 100, inputWidth:42, inputHeight: 20, checked: true},
{type: "button", name:"save_dashboard", offsetTop:10,offsetLeft:100, value:"Submit"}
]}
]
);
};
Many thanks,
Paul