Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Collapsible Block Header On Click Event

I have this code on a mapping from a Service Response $ to a mobilecollapsblock:

element.on("click", function () {
Apperyio.storage.selected_job_lineitem.set(value);
});

but it does not work like it does on lists, probably because the collapsblock and collapsblockheader are separate things and $ cannot be mapped to header.

I want to get AT LEAST the id of the record that shows in that collapsible block and save it so LSV when the collapsible block header is clicked. How can I do that?

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Collapsible Block Header On Click Event

Hi Jack,
To select block from header try to use this:
codeelement.on("click", function () {
$(this).next('.ui-collapsible-content')
});
/code

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Collapsible Block Header On Click Event

I want to click on the header and it to grab the mapped value and place it in an LSV, as I state above. I cannot see how to use the code you provided to do that as there is no way to add JS to a header in the visual builder.

Anand
Posts: 0
Joined: Mon Sep 07, 2015 11:05 pm

Collapsible Block Header On Click Event

I'm having same issue.. any update on this

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

Collapsible Block Header On Click Event

Hello,

Could you use element attributes for writting values for services executions?

Please look this example with the list item: https://devcenter.appery.io/documenta...
You have to use the same for collapsible block

Return to “Issues”