Page 1 of 1

Collapsible Will No Longer Expand

Posted: Fri Oct 16, 2015 11:21 pm
by Louis Adekoya

The code below used to work. Now it doesn't. I'm not certain when it stopped working but recent changes have been Appery upgraded the platform; I changed the theme; I changed the target Android version (but this has stopped working even in the tester).

codevar d = new Date();
var weekday = new Array(7);
weekday[0] = "Sun&quot
weekday[1] = "Mon&quot
weekday[2] = "Tue&quot
weekday[3] = "Wed&quot
weekday[4] = "Thu&quot
weekday[5] = "Fri&quot
weekday[6] = "Sat&quot
var currDoW = weekday[d.getDay()];
Apperyio("collSetGrpMembers").children().each(function() {
var collHdr = $(this).closest('[data-role="collapsible"]').find('[name="collBlockHdrGrpMembers"]');
var collHdrText = collHdr.text();
var DoW = collHdrText.substring(0, 3);
if (DoW == currDoW) {
collHdr.trigger('expand');
//collHdr.collapsible('expand');
}
}
);/code

The code is meant to expand the block with a header text that matches the day of the week. It took me ages to get it working before and now it no longer works. Very frustrating. Please help


Collapsible Will No Longer Expand

Posted: Fri Oct 16, 2015 11:31 pm
by Louis Adekoya

It seems there's a bug because even I simply choose (in the design tab) to not collapse the whole set, they still display in a collapsed state when the page loads.


Collapsible Will No Longer Expand

Posted: Sat Oct 17, 2015 8:00 am
by Serhii Kulibaba

Hello Louis,

Could you check are there any errors in console? This (http://devcenter.appery.io/documentat...) should help.

What versions and themes do you use?


Collapsible Will No Longer Expand

Posted: Sat Oct 17, 2015 8:47 am
by Louis Adekoya

Hi Sergiy,

I already used the console to step through the code, to ensure the expand command was being called at the appropriate time. It is and there are no errors, at least not that I can see.

I'm using the latest library version 2.3, if that's what you mean. The theme is ios7 but I tried reverting to my previous theme and that didn't help either.

Louis


Collapsible Will No Longer Expand

Posted: Sat Oct 17, 2015 12:46 pm
by Louis Adekoya

Hi Sergiy,

I already used the console to step through the code, to ensure the expand command was being called at the appropriate time. It is and there are no errors, at least not that I can see.

I'm using the latest library version 2.3, if that's what you mean. The theme is ios7 but I tried reverting to my previous theme and that didn't help either.

Louis


Collapsible Will No Longer Expand

Posted: Sun Oct 18, 2015 8:54 am
by Serhii Kulibaba

Could you clarify have you changed anything on Source tab? This (http://devcenter.appery.io/tutorials/...) doc should help.


Collapsible Will No Longer Expand

Posted: Sun Oct 18, 2015 8:58 am
by Louis Adekoya

Yes, I changed the icons for Android push notifications as per the instructions here - https://c.getsatisfaction.com/apperyi...


Collapsible Will No Longer Expand

Posted: Wed Oct 21, 2015 4:46 pm
by Serhii Kulibaba

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue


Collapsible Will No Longer Expand

Posted: Thu Oct 22, 2015 4:39 am
by Louis Adekoya

Hi Sergiy, all done. Thanks.


Collapsible Will No Longer Expand

Posted: Thu Oct 22, 2015 5:17 am
by Alena Prykhodko

Louis,

Please tell us the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue