Page 2 of 6

Collapsible block with dynamic content

Posted: Sun Oct 20, 2013 12:44 pm
by Deon

Ok, thx.


Collapsible block with dynamic content

Posted: Mon Oct 21, 2013 8:48 am
by Maryna Brodina

Hello! This information is in header that's why it's included. You can avoid it using JS or add label to header and try to work with label (in services map from/to label).


Collapsible block with dynamic content

Posted: Mon Oct 21, 2013 9:43 am
by Deon

Hi,

I have already tried label but it does the same. Instead of returning....
"Category": text click to expand contents..........
It returns

"Label":..... and the values of all three collapseblockheaders.


Collapsible block with dynamic content

Posted: Mon Oct 21, 2013 11:48 am
by Maryna Brodina

Could you give us your public app link and steps to reproduce?


Collapsible block with dynamic content

Posted: Mon Oct 21, 2013 1:00 pm
by Deon

App: three cities
Register to get username & Password
Home Page: Touch 3rd Icon at top (compass)
Select kwazulu Natal
Touch Alpine Heath
Touch ...More in Footer
Touch Menu Button
Select All Day Menu
You will see Menu Items on Collapse Block
Touching Salads should give you the menu options for Salads in Listview but the Content area stays blank

Let em know if you want me to share the app.


Collapsible block with dynamic content

Posted: Mon Oct 21, 2013 1:17 pm
by Maryna Brodina

yes, please share with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a


Collapsible block with dynamic content

Posted: Tue Oct 22, 2013 3:42 am
by Deon

Shared


Collapsible block with dynamic content

Posted: Tue Oct 22, 2013 6:12 am
by Deon

Hi

I found a workaround.

On CollapseBlock Expand Event, store the value of the label to a Local Variable first (Do not map direct from the label in the Header of the CollapseBlockHeader. For some or other reason the value returned contains the structure info as well)and map the Local Stored variable instead. So the js code for the WHERE mapping now looks like this...

return ('{ $and: [ { "Category": "' + localStorage.getItem("MenuCat") + '" }, { "Property": "' + localStorage.getItem("PropertyName") + '" } ] }');


Collapsible block with dynamic content

Posted: Tue Oct 22, 2013 7:45 am
by Maryna Brodina

Hello Deon! Thank you for update. That's strange as mapping from label to parameter works for us directly (without saving to localStorage). Anyway glad it's working!


Collapsible block with dynamic content

Posted: Tue Oct 22, 2013 8:18 am
by Deon

I will check again and confirm.