Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

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

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.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

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

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...

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

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

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Terry,

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

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

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.

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

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

Thanks,

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

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

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

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!!

Return to “Issues”