Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Disabling "saving form ...." prompt when submitting form

$
0
0
SmartClient Version: v9.0p_2013-11-03/PowerEdition
Browsers: All

We have a dynamic form with one select field and a button which upon clicking will call the saveData on the form. While waiting for the response the "Saving Form" popup is displayed.

We would like to find out if there is a way to disable the popup.

The following is a sample of our code.

isc.DynamicForm.create({
ID: "testForm",
width:"245", numCols:2,
dataSource:"testDS",
autoDraw:false,
fields: [
{title:"units",showTitle:false, type:"select", valueMap:"unitsValueMap", name: "units",defaultValue:"", width:60},
{name:"save", title:"Submit", editorType:"button", width:110, align:"right", endRow: false, startRow: false,
click: function(){
this.form.saveData(
function(dsResponse, data, dsRequest) {
if(dsResponse.status == 10){
isc.say(data);
}else{
isc.say("There was an error in submitting the form");
}
}
, {
params: {
param1 : val1,
param2 : val2
}
});
}
}
]
});

Viewing all articles
Browse latest Browse all 4756

Trending Articles