Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #1 
Throughout the process, there are many e-mail notifications that link directly to the form.  Once someone clicks the link in the e-mail, the form loads, they perform their action and the form wants to close but ie8 is stopping it and throwing an warning...

"the page you are viewing is trying to close this tab" or window

I've tried adding JavaScript to the link but it won't work from within outlook.

onclick="window.open(this.href,'','menubar=no,toolbar=no,location=no,scrollbars=1'); return false;

That works from a normal html file, just not from within an outlook e-mail.

From everything i've been reading online, this is a security feature of ie8(and i'm sure many other versions of ie).  Has anyone encountered this problem?  If so, have you been able to come up with a workaround?  Maybe something to add to the "When action is complete" or "On Form Close"?

Thanks!
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 
I just tried on our set-up on our IE8 desktop and we don't have an issue.
However, years ago we created an "openfolder.asp" page which we call from our links as forms would not open (and close in particular) properly.  Our v9 version asp take the folderid as an argument and then does a simple
window.opener = top;
window.open('','_self','');
theURL="/Metastorm/eFolder.aspx?FolderID="+<passed in folder id>+"%Client=External";
window.open(theURL,'','resizable=yes');
window.close();

and the forms processes without issue for us in IE8 or IE9.  It basically closes the ghost open form after opening the BPM form in a style which works just as if opened from the To Do / Watch lists.

I have no idea if this helps, but it at least helps confirm it can work.
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #3 
Should i just put the openfolder.asp in C:\Program Files(x86)\Metastorm\BPM\Web?

Also, how do you call it?

<asp:LinkButtonid="myid"runat="server"OnClick="MyFunction_Click"/>

OR

<ahref="#"runat="server"onServerClick="MyFuncion_Click"/>


Or some other way?



Edit: I'm also using a Web.Config file to send out these emails
(basically an XML file) so i'm wondering how i can integrate this with
the XML file. There's an entire background API that integrates this
solution with our accounting database which also includes the email
notifications.
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
In our case, we built a separate web site on the server for custom activities, in the example below named JDBPM.  You could possibly put it in the MBPM Web directory, but I don't like to put custom objects in vendor code trees in case future updates break it.  Our emails contain links in the format of:

"<a href=\"http://"+ BPMrootURL() + "/JDBPM/autoclose.asp?THEFOLDER="+ pFolderID +"\">" + pDisplayName +"</a>"


where BPMrootURL() returns the URL for the target environment (Dev, QA, production), pFolderID is the folder ID to open, and pDisplayName the name we want displayed on the email (generally "Open Folder XX######" for us).

The guts of our autoclose/asp is in my prior post.

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!