I have the following in my behavior class
public void onInit(ArgumentList args) {
super.onInit(args);
ActionService.execute("view", arg, getContext(), this, null);
}In my JSP, I have done the following
<dmf:body>
<dmf:form>
<script>
window.close();
</script>
</dmf:form>
</dmf:body>
the idea is that once the Open/Save dialog box opens, the parent browser window should close.
when I am calling this component using localhost
http://localhost:7001/cobswebtop/component/dms_download_preview_item?global.objectId=09000d6880001eee
it works fine.
But when I launch this component using IP
http://172.16.1.21:7001/cobswebtop/component/dms_download_preview_item?global.objectId=09000d6880001eee
the Open/save dialog box does not open and the parent window gets closed as well.
In other words, when I type this URL the parent window closes and nothing else is opened on the screen.
Can someone please let me know why this could be happening?