|
Re: opening multiple editors [message #757772 is a reply to message #757701] |
Mon, 21 November 2011 15:31 |
|
Hi Bertin
Try setting allowMultiple at your view to true. This makes sure a secondaryViewId is generated in order to distinguish the views. This should solve your problem.
Now if you want to open/activate the same view when the same record is selected you have modify your ZinnenForm a little. You need to start your form in exclusive mode and compute an exclusive key (typically the primary key of your entity) which distinguishes the records.
public class ViewHandler extends AbstractFormHandler {
@Override
protected void execLoad() throws ProcessingException {
//open form code
}
@Override
protected boolean getConfiguredOpenExclusive() {
return true;
}
}
public void startView() throws ProcessingException {
startInternalExclusive(new DesktopForm.ViewHandler());
}
@Override
public Object computeExclusiveKey() throws ProcessingException {
return RECORD_ID;
}
}
Please notice: You need to set getConfiguredExclusive to true AND start the handler by using startInternalEXCLUSIVE.
Btw: I've added this additional information to the howto: http://wiki.eclipse.org/Scout/HowTo/Open_a_Form_in_a_View
Have fun
Regards
Claudio
[Updated on: Mon, 21 November 2011 16:42] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02861 seconds