Hi,
In order to open the component in a modal window, i'm trying the followin:
I'm calling the method onAniadir from a jsp:
<dmf:image src='icons/add.gif' onclick="onAnadir" nlsid="MSG_ADDjava"/>
The method calls "anadirsubcarpetas" component:
public void onAnadir(Image image, ArgumentList arg) {
ArgumentList add = new ArgumentList();
add.add("objectId", objectId);
setComponentNested("anadirsubcarpetas", add, getContext(), new FormActionReturnListener(this,"onVolverAnadirSubcarpeta"));
}
I want the "anadirsubcarpetas" component to be opened on a modal window but I don't know how.
I've tried to solve it by creating an action that invokes the modal window:
<action id="anadirsubcarpetas">
<execution>
<component>anadirsubcarpetas</component>
<container>dialogcontainermodal</container>
</execution>
<invocation>
<modalpopup>
<windowsize>accionatributos</windowsize>
<refreshparentwindow>onok</refreshparentwindow>
</modalpopup>
</invocation>
</action>
And then changing the call from:
setComponentNested("anadirsubcarpetas", add, getContext(), new FormActionReturnListener(this,"onVolverAnadirSubcarpeta"));
to:
ActionService.execute("lanzaanadirsubcarpetas", arg, getContext(), this, null);
but it doesn't open the component on a modal window but in the same window.
Has anyone achieve this somehow?
I'm working whith documenum 6.5 sp3
Thnak you.