Dear Captain,
in a MultipleInstances - workplace - scenario, which ID can be used for a newly created workpage to inform about the creator?
We want give back information from the created workpage (only) to the creator.
Something like param 'wid':
Code:
IWorkpageDispatcher wpd = (IWorkpageDispatcher) getOwningDispatcher().getTopOwner();
IWorkpageContainer wpc = getWorkpageContainer();
WorkpageStartInfo wpsi = new WorkpageStartInfo();
wpsi.setJspPage(EclntConstants.REL_JSP_PATH + EclntConstants.JSP_AUFTRAG_DATEN);
wpsi.setId(EclntConstants.WORKPAGE_ID);
wpsi.setText("Auftragsdaten");
wpsi.setOpenMultipleInstances(false);
wpsi.setDecorated(false);
wpsi.setImage("/images/workplaceicons/application_form_edit.png");
wpsi.setOpenAsPopupByDefault(true);
if (withData && selectedItem != null) {
wpsi.setParam("aid", "" + selectedItem.getAuftragId());
wpsi.setParam("asid", "" + selectedItem.getAuftragsschrittId());
wpsi.setParam("asrid", "" + selectedItem.getAuftragsschrittRessourceId());
wpsi.setParam("wid", getWorkpage().getId());
}
workpage = WorkpageStarterFactory.getWorkpageStarter().startWorkpage(wpd, wpc, wpsi);
But wid is only the JSP name.
Regards,
Joachim