Hi,
We have a custom component that gets called on by a custom menu item/action. The component brings up a popup screen with buttons for view/checkout/edit of a document. The buttons seems to work fine but not sure how would i close the original component/container when i click on any of the buttons(view/edit etc).
Basically we want the view/edit/checkout buttons to perform its action but my custom pop-up widow should close.
I am using a dialog container . The container has the ok/cancel button . is there any way we can automatically execute the ok or cancel button.
Any ideas are appreciated.
Action definition
<action id="viewpopup">
<params>
<param required="true" name="objectId"/>
</params>
<execution class="com.documentum.web.formext.action.LaunchComponentWithPermitCheck">
<permit>write_permit</permit>
<component>viewpopup_component</component>
<container>dialogcontainer</container>
</execution>
<invocation>
<modalpopup>
<windowsize>medium</windowsize>
<refreshparentwindow>onok</refreshparentwindow>
</modalpopup>
</invocation>
</action>
Component execution class
public void onInit(ArgumentList argumentlist)
/* */ {
/* 44 */ super.onInit(argumentlist);
String[] docIds = argumentlist.getValues("objectId");
this.POLBDocId = new DfId(docIds[0]);
this.m_actionArgs = new ArgumentList();
this.m_actionArgs.add("objectId", this.POLBDocId.getId());
this.m_actionContext = new Context(viewpopup.this.getContext());
this.m_actionContext.set("objectId", this.POLBDocId.getId());
}
public void onViewClicked(Button button, ArgumentList args)
{
DfLogger.debug(this, "onViewClicked" + this.POLBDocId.getId(), null, null);
ActionService.execute("view", this.m_actionArgs, this.m_actionContext, viewpopup.this, null);
}
In my component/popup JSP page the view button calls the function "onViewClicked"