We currently have detected an issue with saveOnEnter and the submit method in the DynamicForm.
We want that the user can press enter in any FormItem and the DynamicForm should then be submitted. This has properly worked with SmartClient 9.0 but with the update to 9.1 there seems to be something wrong, because the event isn't even fired.
With this code in a html file the submit function is not working:
What makes me wonder is, that if you take the snippet below and paste it to http://www.smartclient.com/docs/9.1/a/system/reference/SmartClient_Explorer.html?skin=Enterprise#formLayo utFilling the example is working.
In our product the submit method is not called, we simplified the example, so only one field is left. The submit isn't called in any other field either.
We have tried it with the latest nighlty build (SmartClient_v91p_2014-05-07_Pro) and it happens in all browsers.
Is this a known issue/bug?
Best Regards
We want that the user can press enter in any FormItem and the DynamicForm should then be submitted. This has properly worked with SmartClient 9.0 but with the update to 9.1 there seems to be something wrong, because the event isn't even fired.
With this code in a html file the submit function is not working:
Code:
<!DOCTYPE html><HTML><HEAD><TITLE>working title</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<SCRIPT SRC="/isomorphic/system/modules/ISC_Core.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Foundation.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Containers.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Grids.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Forms.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_DataBinding.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Drawing.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Charts.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/system/modules/ISC_Calendar.js"></SCRIPT>
<SCRIPT SRC="/isomorphic/skins/Enterprise/load_skin.js"></SCRIPT>
</HEAD>
<BODY>
<SCRIPT>
isc.setAutoDraw(true);
isc.VLayout.create({
"ID" : "vLayoutID",
"width" : "100%",
"height" : "100%",
"members" :
[
isc.DynamicForm.create({
"ID" : "formId",
"submit" : function () {
alert("test")
},
"autoFocus" : true,
"selectOnFocus" : true,
"saveOnEnter" : true,
"fields" :
[{
"ID" : "theItem",
"title" : "theItem",
"type" : "text"
}
]
})
]
})
</script>
</body>
</html>Code:
isc.VLayout.create({
"ID" : "vLayoutID",
"width" : "100%",
"height" : "100%",
"members" :
[
isc.DynamicForm.create({
"ID" : "formId",
"submit" : function () {
alert("test")
},
"autoFocus" : true,
"selectOnFocus" : true,
"saveOnEnter" : true,
"fields" :
[{
"ID" : "theItem",
"title" : "theItem",
"type" : "text"
}
]
})
]
})We have tried it with the latest nighlty build (SmartClient_v91p_2014-05-07_Pro) and it happens in all browsers.
Is this a known issue/bug?
Best Regards