Page 3 of 3

how do i debug database services that fail to run correctly.

Posted: Fri Apr 25, 2014 12:10 pm
by Terry Gilliver

When I first debug the app in my browser, I click the register link which takes me to the register page.

An aero type 'busy' symbol is showing in the centre of the screen and stays there until I complete the registration details and click register.

My alert box in the javascript shown above tells me wether or not I have checked the checkbox, and that it has set the checkboxes value true for checked or false if unchecked.

If I then check the database, the details have been added, but no matter what the value in the checkbox, the database holds false. The aero stops spinning in the centre of the form.

If I then change the username in the form, so as not to clash with the previous data in the database, and re-click the register button, it now creates another entry in the database, this time correctly showing true or false depending on the checkbox status.

My back button in the title bar does not function, My cancel button does not function, this is just mapped to a navigate to page:

Page: LoginScreen, Transition effect: default, Reverse: false, Use full screen refresh: false.


how do i debug database services that fail to run correctly.

Posted: Fri Apr 25, 2014 1:26 pm
by Nikita

Hello Terry,

In this case you don't need arrow from "Value" to "Delivery" in the mapping. Just delete it. And you should use return statement in your JS section as it's stated here: http://docs.appery.io/documentation/r...


how do i debug database services that fail to run correctly.

Posted: Fri Apr 25, 2014 2:46 pm
by Terry Gilliver

Thanks Nikita, I have removed the mapping and changed my js to:

var checkbox = $('input', Appery('Delivery'));
if (checkbox.prop('checked')) {
return true;
} else {
return false;
}

The registration now completes successfully every time, great!

However, my other issues still apply, that is, my back button doesn't function and neither does the cancel button which is a navigate to page.


how do i debug database services that fail to run correctly.

Posted: Fri Apr 25, 2014 8:42 pm
by Kateryna Grynko

Hi Terry,

Are there any console errors? If yes, you app stops working and that is why Back button may not work.


how do i debug database services that fail to run correctly.

Posted: Fri Apr 25, 2014 10:50 pm
by Terry Gilliver

Hi Katya,

The following comes up on the Chrome console when the register page loads:

pre
Attr.specified is deprecated. Its value is always true. jquery-1.9.1.js:6209

Uncaught TypeError: Cannot read property 'msie' of undefined VM230:6

(anonymous function) VM230:6

(anonymous function) jquery-1.9.1.js:603

jQuery.extend.globalEval jquery-1.9.1.js:604

jQuery.ajaxSetup.converters.text script jquery-1.9.1.js:8271

ajaxConvert jquery-1.9.1.js:8243

done jquery-1.9.1.js:8050

callback jquery-1.9.1.js:8598

send jquery-1.9.1.js:8604

jQuery.extend.ajax jquery-1.9.1.js:7978

jQuery.fn.extend.domManip jquery-1.9.1.js:6178

jQuery.fn.extend.append jquery-1.9.1.js:5949

jQuery.fn.(anonymous function) jquery-1.9.1.js:6342

$.widget._include jquery.mobile-1.4.0.js:4628

(anonymous function) jquery.mobile-1.4.0.js:889

(anonymous function) jquery.mobile-1.4.0.js:4835

proxy jquery-1.9.1.js:818

fire jquery-1.9.1.js:1037

self.fireWith jquery-1.9.1.js:1148

done jquery-1.9.1.js:8074

callback jquery-1.9.1.js:8598

/pre

The following is output on a Firefox console:

pre
Use of getAttributeNode() is deprecated. Use getAttribute() instead. jquery-1.9.1.js:2514

Use of attributes' specified attribute is deprecated. It always returns true. jquery-1.9.1.js:6209

TypeError: jQuery.browser is undefined jquery-1.9.1.js:608
/pre


how do i debug database services that fail to run correctly.

Posted: Mon Apr 28, 2014 1:14 am
by Alena Prykhodko

We reported a bug with link component which is navigated to the page and have href to the site.

But there is a simple workaround for you:

1 Activate your "Registration" link.

2 Open properties for this link.

3 In properties side bar change "URL" value to "#".

Image

4 You should do these steps for all links in your app that used to navigate other pages.


how do i debug database services that fail to run correctly.

Posted: Mon Apr 28, 2014 2:25 pm
by Terry Gilliver

Thanks,

That fixed everything. My app is now working as I expected.


how do i debug database services that fail to run correctly.

Posted: Thu May 15, 2014 1:45 pm
by Asif

Hi
I am also having same problem.
I have saved a link in database. On page load i m mapping it the URL property of the link on a page. But i m getting this error:
Uncaught TypeError: Cannot read property 'msie' of undefined

pls help!!