My portlet does nothing - Exercise Accordion Controls(version9.8)

Hello guys,

I have to make one exercise that content one accordion of controls hideables. For this I´m use the controls “One Way Toggle Link”, “Hideable Panel” and “Script Block” whit the next properties:

One Way Toggle Link : “Property FOR” - ContentOne and “Property ID” - For Identification of control

Hideable Panel: “Property ID” - Content-One (Note: In this part the property “ID” is the same at control "One way toggle link - Property FOR ")

Script Block: “Property Value” - The next Java Script Code

Event.observe($(’#{activePageBean.clientIds[‘toggle-one’]}’), “click”, function() {
CAF.model(’#{activePageBean.clientIds[‘content-two’]}’).hide();
CAF.model(’#{activePageBean.clientIds[‘content-three’]}’).hide();
});

Note: I am currently using version9.8
I have three One Way Toggle Link, three Hideable’s Panel and one Script Block.

***But After doing all this my portlet does nothing. This is the page where you guide me

http://communities.softwareag.com/ecosystem/commun...rdion_Description.html#1099960

Can you help me please ASAP.

Hello Chaudhary,

Please try the below script code on property Value in script block"

Event.observe($(’#{activePageBean.clientIds[‘toggle-one’]}’), “click”, function() {
CAF.model(’#{activePageBean.clientIds[‘content-two’]}’).hide();
CAF.model(’#{activePageBean.clientIds[‘content-three’]}’).hide();

});

Event.observe($(’#{activePageBean.clientIds[‘toggle-two’]}’), “click”, function() {
CAF.model(’#{activePageBean.clientIds[‘content-one’]}’).hide();
CAF.model(’#{activePageBean.clientIds[‘content-three’]}’).hide();
});

Event.observe($(’#{activePageBean.clientIds[‘toggle-three’]}’), “click”, function() {
CAF.model(’#{activePageBean.clientIds[‘content-two’]}’).hide();
CAF.model(’#{activePageBean.clientIds[‘content-one’]}’).hide();
});

Thanks & Regards,
Prem Sai.

Hello Prem,
Already i have used this script value but its not working.
otherway to resolved this issue? ASAP

thanks for reply

Hello Chaudhary,

Please give the correct values for one way toggle link and hideable panel control in your portlet.
one way toggle link : Id-toggle-one,for -content-one, value - sample1
Id-toggle-two,for -content-two, value - sample2
Id-toggle-three,for -content-three value - sample3

hideable panel : Id-content-one, label -sample1Details
Id-content-two, label -sample2Details
Id-content-three, label -sample3Details

Thanks,
Prem Sai

Hello Prem,
I have used these values for panels but not working yet.
Anyway?

Thanks for reply