Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Collapsible block with dynamic content

Ok, thx.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Collapsible block with dynamic content

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

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Collapsible block with dynamic content

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Collapsible block with dynamic content

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

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Collapsible block with dynamic content

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Collapsible block with dynamic content

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

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Collapsible block with dynamic content

Shared

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Collapsible block with dynamic content

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") + '" } ] }');

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Collapsible block with dynamic content

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!

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Collapsible block with dynamic content

I will check again and confirm.

Return to “Issues”