Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

Collapsible Will No Longer Expand

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

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

Collapsible Will No Longer Expand

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Collapsible Will No Longer Expand

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?

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

Collapsible Will No Longer Expand

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

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

Collapsible Will No Longer Expand

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Collapsible Will No Longer Expand

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

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

Collapsible Will No Longer Expand

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Collapsible Will No Longer Expand

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

Louis Adekoya
Posts: 0
Joined: Sun Nov 17, 2013 10:51 pm

Collapsible Will No Longer Expand

Hi Sergiy, all done. Thanks.

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

Collapsible Will No Longer Expand

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

Return to “Issues”