Error while importing the marketplace Accordion component

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I downloaded the library but when i am importing it i am getting an error " An error occurred while importing the library , Click retry to import again " Can you please tell me why this occoured and how can i use it?

Currently using Kony Enterprise Version 8 Service Pack 2 Fix Pack 6

Hi,

Can you please follow below steps for importing the downloaded component:

File -> Import -> Component to LIbrary -> select the downloaded component

A popup with "Import Marketplace item" will appear give library name, collection name and click "OK".

Please let us know if you still face issue after following above steps.

Thanks & Regards,

Checked Importing the component in Kony Enterprise Version 8 Service Pack 2 Fix Pack 6. I did not face any issue there. Could you please share your kony Enterprise Log file?

The error might be because of the structure of the project. The component is made for Kony Reference Architecture Project. Got the same error when i tried importing it to a Free form Js project. Having said that, do we have an accordion component in marketplace for a free form project ?

Hi @Rose Butlew​,

I am able to import Accordion Component with Free Form Project and there is no issue at all.

Basically Component can be imported to Free Form or Reference Architecture Project.

Maybe can you share your Kony Viz log file?

I am using Version 8 Service Pack 2 Fix Pack 18.

Thanks,

Hi @Svwvh Awnold​ ,

So i was able to import it to my default library in the project. I added it to a flex container in a form as mentioned in the details for the component.But i am not able to assign a template and fill data in it. Attaching the sample app. Can you please fix it for me ?

Hi @Rose Butlew​,

I had created a sample Free Form project that contains 2 Forms :

FormSingleTemplate (Accordion Single Template) & FormMultipleTemplate (Accordion Multiple Template)

Please see the sample project that I attached, I hope it will help you a lot.

Note: I am using Version 8 Service Pack 2 Fix Pack 18. Tested with Android device.

Thanks,

Hi @Svwvh Awnold​

Thank you! This works fine.

But i'm facing a problem, As shown in the attached screenshot the height of the flxContainer remains fixed. And the entire content is neither visible nor scrollable. Can you please tell me how do i fix this?

**Image removed for security reasons**

Hi @Levh Slvtew​,

you can put Flex Scroll Container inside flexContainer, and your label is inside the Flex Scroll Container. It will scroll the content.

Please see the attachment for the sample.

Thanks,

Hello @Svwvh Awnold​

How do i display the entire content of flxContainer without the scroll?

Hi @Levh Slvtew​,

You need to change the logic inside the component when the row is expanded.

But if you use Multiple Template, you can use a different flex template for each row. So you need to put some logic here, when you mapping the data. Check the content length and set the desired flex template with enough height.

Thanks,