Page 1 of 1

Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 8:36 pm
by chris6348748

I'm new to this site and app making, so don't make too much fun if this is a dumb mistake on my end!

I have a single collapsible set mapped to a database output which adds multiple headers and cell info from the database. When the app is tested, the cells show up, however when the "+" is clicked, they will open (with the correct data inside) then close almost immediately. Also should note that if I un-check the "Collapsed" tick box for the master collapsible set, they will remain collapsed during test and act the same way as before.

Thanks!
Chris


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 8:57 pm
by Kateryna Grynko

Hi Chris,

Where do you reproduce it? Do you use any event handlers for Collapsible set?


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 9:11 pm
by chris6348748

The problem is reproduced in the 'test' function on the app builder website. Also the only event that is used on the page i'm working with is: list_service success invoke service list_service This is loosely based on the todo list app tutorial and the list service name was slightly changed to have it make more sense while coding everything.


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 9:29 pm
by chris6348748

Also, not sure if this helps, while in the 'test' window, the number of database requests is constantly going up, while no actions are being clicked or should be taking place. I started at 3355 requests and within seconds and a page refresh the number was at 3537? There is nothing on the page that even comes close to calling the database that many times?


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 9:50 pm
by Igor

Hi,

Please make your app link public and send us that link.


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 9:54 pm
by chris6348748

Here is the link: http://appery.io/app/mobile-frame?src...

The start page will come up, then click Appliances, then that page is the one in question. Hopefully you aren't on there long, as I think my database use will go through the roof and I will get cutoff haha! I have 2 database entries that are just for testing purposes, which are the 2 that will be listed. I believe "washer" and "dryer".


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 10:16 pm
by Igor

On "appliances" screen- "managemyhome_appliances_list_service" service parameters - remove service call on success event. It should help.


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 10:25 pm
by chris6348748

Worked very well! Thank you!! Can I add a refresh button and pin that event to it instead of an 'on load success' event? The idea was to have current information each time the page was loaded, but I apparently put it into and endless loop!


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 10:37 pm
by Igor

Yes you can do this.


Collapsible set will open, then close within 1 sec.

Posted: Tue Oct 22, 2013 10:37 pm
by chris6348748

Thank you!