Page 1 of 1

Collapsible Block / Checkbox populated by database

Posted: Mon Apr 28, 2014 10:36 pm
by Jerry Blanchard

I have a collapsible block and inside I have a checkbox group. I also have a collection ‘Category’ with two columns ‘Category’ and ‘SubCategory’.

Category SubCategory
Entertainment Movies
Entertainment TV
Cars Classic
Cars First Time Owner
Cars Repairs
Education College
Education High School

Frist, Try with a standard newly created list service and these mappings:

Response

$[] to CategoryCollapseBlock
Category to CategoryCollapseBlockText
SubCategory to SubCategoryCheckBoxText

I get this:
Entertainment
Movies
Entertainment
TV
Cars
Classic
Cars
First Time Owner
Cars
Repairs

So I have setup my list service to distinct on Category
Method: POST
{database_url}/collections/Category/distinct/Category
And I get this with the exact same mappings
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined

What am I missing? I have been reading the questions and answers posted, but can’t figure it out
Also, later I will want to submit the selected values back to a different collections in my database.
Thanks,
Jerry


Collapsible Block / Checkbox populated by database

Posted: Mon Apr 28, 2014 10:41 pm
by Igor

Hello,

Could you show us service mapping screenshots?


Collapsible Block / Checkbox populated by database

Posted: Mon Apr 28, 2014 11:11 pm
by Jerry Blanchard

Here is the mappings.

Image


Collapsible Block / Checkbox populated by database

Posted: Mon Apr 28, 2014 11:50 pm
by Igor

Did you add response parameters manually?


Collapsible Block / Checkbox populated by database

Posted: Mon Apr 28, 2014 11:57 pm
by Jerry Blanchard

Hmmmmm...

I thought that just having a mapping is data get binded, at least that has been my experience for everything else I have done. But since my answer is no, that might be he problem. How do I add response parameters?

Thanks


Collapsible Block / Checkbox populated by database

Posted: Tue Apr 29, 2014 12:21 am
by Igor

You don't need add response parameters. Could you also attach screenshot from the service settings tab?


Collapsible Block / Checkbox populated by database

Posted: Tue Apr 29, 2014 12:36 am
by Jerry Blanchard

Nothing special except I changed method to post and added '/distinct/Category'

Image

Here are the test results: Image


Collapsible Block / Checkbox populated by database

Posted: Tue Apr 29, 2014 3:29 am
by Jerry Blanchard

Igor,

A lightbulb just came on above my head. What I have been trying to do is not a good solution for what I need and it is way more complicated. I'm going to take a different approach, you can kill this question. Thanks for your effort, I learned a great deal banging my head against this, but I am moving on.

Jerry


Collapsible Block / Checkbox populated by database

Posted: Tue Apr 29, 2014 6:12 am
by Kateryna Grynko

Hi Jerry,

Thank you for the update. Let us know if you need any help.


Re: Collapsible Block / Checkbox populated by database

Posted: Wed Mar 30, 2022 5:10 pm
by praakzale

The “collapse” feature is available on modular pages to web managers with publisher access. When this option is applied to a page content row,students College of Advanced Education was then the official name for an art.