Hi Formspider Team,
I am trying to add an accordion to an accordionpanel at application startup using api_accordionpanel.addaccordion. I see that the accordion is created (i can see the accordion header and correct title, and i can set the accordion to expanded, so that part is working).
The problem is that it does not show the panel inside the accordion. The accordion is empty. I can see in the debugger these error messages:
The procedure i use to add the accordions and the panels works fine when i call it after the application loaded (via a test button).
Am i hitting a bug? Or is there a workaround, like maybe calling it at a later point in time when loading the application. I call it now on the application Post Open event. Any idea how to solve this?
asked 08 May '13, 14:47
This seems like a bug. Regarding the error messages, I guess you are adding 3 accordions to the accordionpanel. I'm able to reproduce some part of your problem, get the
However, I can't still get the
Can you post the code used to add accordions and XMLs of your accordionPanel and the other panels included to the new accordions? Could it be possible for you to prepare a sample application to reproduce both errors?
I guess you are dynamically adding your accordionpanel to the screen in run time. As a workaround, you can try to include your accordionpanel to the mainFrame in design time (into a hidden row having 0 as height). Then, in the postOpen event, you can remove it from the mainFrame using api_frame.removePanel API and call your procedure to add the accordions.
answered 09 May '13, 04:10
Ibrahim Sand... ♦♦