After Using DISPLAY LAYOUT getPanelId don't work

If you think that something doesn't work in Aware IM post your message here
Post Reply
RafaMD
Posts: 52
Joined: Wed Mar 16, 2011 6:22 am
Location: Spain

After Using DISPLAY LAYOUT getPanelId don't work

Post by RafaMD »

I have a form with an button in a html cell:

<button type="button" onclick="AwareApp.startProcessFromForm('MyProcess',AwareApp.getPanelId('main','Main','TEST'),this,true)">Test</button>

Process 'MyProcess' display a form in panel 'TEST' of tab 'Main' of frame 'main' in a Visual Perspective called 'MyVP'

This works Ok until I use DISPLAY LAYOUT Main FROM_VP MyVp to redisplay all the panels. After this the button don't work anymore.


I have inspected the html code and I view this:

Before using DISPLAY LAYOUT the panel id is: BAS_FRAME_CONTENT_main_Main_TEST

After is: BAS_FRAME_CONTENT_main_Main_TEST_2


I think the name of the panel has changed and so getPanelId don't work.
Post Reply