I have an Application Designer page which is targeted to be opened as a new page in the content area of a multiframe workplace. Usually it is possible to access the adapter via “…findAdapter()” and apply any values/settings to the adapter - how can I apply changes to an adapter class in a workplace scenario? The findAdapter method will always get back with a new instance of the class, as it checks the current subsession, but I need the instance created by the workplace.
CreateProgramAdapter cpa = (CreateProgramAdapter)findAdapter(CreateProgramAdapter.class); cpa.setMember("Some value..."); IMFWorkplace wp = (IMFWorkplace)findSessionContext().lookup(IMFWorkplace.IWORKPLACE_LOOKUP,false); wp.addPageToWorkplace("/scMockup/createProgram.html","Title..."); wp.updateWorkplace(this);
I guess I need a method where I simply pass in a subsession ID and the method returns the adapter - in stead of using findAdapter(). Is there anything available?
Thanx in advance, Florian.