Help get this topic noticed by sharing it on Twitter, Facebook, or email.

BUG! 8.9.0/Unlimited/c#/.Net 4.5 $app.execute throws js exception in Classic mode. How to replicate error.

Dear CoT:

As there has not been any acknowledgement by your team, it is very possible that you where unable to replicate the issue or found the report not specific enough.

These are the steps to replicate the bug.

In 8.9.0/Unlimited/c#:

1.- Create a test northwind applicartion in classic mode with single page apps
2.- Add Customers to the model
3.- Go to the application designer/Pages/Home and edit, set template to Jumbotron
4.- Generate and run the application
5.- The jumbotron template must appear as the home page
6.- Edit /pages/Home.html
7.- Add the following script inside the body element



<script type="text/javascript">
$(document).ready(function () {
$app.execute({
"controller": "Customers",
"pageSize": 20,
"filter": [
{ "field": "City", "operator": "=", "value": "London" }
],
"done": function (response) {
if (response && response.Customers.length > 0)
alert('Customers in London found');
else
alert('London not found');
}
});
});
</script>



8.- Save and reload home page
9.- Enable Developer Tools in browser.
10.- Refresh page
11.- Go to Developers Tooles, select Console tab
12.- There will be an error message: SCRIPT5007: SCRIPT5007: Unable to get property 'invoke' of undefined or null reference

This works as expected in touch UI.

Hope this helps,

Best regards,

Roberto
1 person has
this problem
+1
Reply