Linked process launch
I have a linked process that can run in parallel to my main process. I'd like to automatically open the form for the parallel process for the user but can't figure out how. The process works but the user has to trigger the linked process from the main, go to their To-Do list to find the newly created linked folder and then open it to access the form for that process and then it continues as desired.
There must be a better way, so any help will be appreciated. I've tried some variations of code to open the folder but can't get the syntax right to get past deployment.
Thanks!
Comments
-
Hi,
I got around this with a couple buttons which are triggered from a client side script which has a delay on each button....
Button 1) Server side script which creates the flag
Button 2) Gets the latest efolderid
Then a client script which opens the new folder.
----
clickButton();
function clickButton() {
document.getElementById('btnCreateFlag').click(); //triggers the button on the form which triggers the flag
setTimeout(button2, 1500);
}
function button2() {
document.getElementById('btnGetLatestID').click(); //triggers the button which gets the latest folderid
setTimeout(openLink, 1500);
}
function
openLink() {
var theURL=window.location.href; //get the current url
var thePos = theURL.indexOf("Metastorm");
theURL=theURL.substring(0,thePos);
var strServerName = eworkGetField("txtServerName");
var strWeb = theURL+"Metastorm/eFolder.aspx?FolderID=";
var strFolderID = eworkGetField("subProcessID");
var finalStr= strWeb+strFolderID;
window.open(finalStr, "_blank", 'fullscreen=0' );
document.getElementById('cmdNext').click();
}
0 -
Do you mean to trigger a second flag? The linked process auto-creates the flag. Or am I missing something in your 'btnCreateFlag' and 'btnGetLatestID'.
Sorry I'm not very good wtih the client and server scripting. Thanks for the help.
0 -
Hi,
You only flag the new process once.
As you can only open a new window from a client script; I flag the new process on the form and not the action (client script for form submission).
I use a client side script to order the sequence of the actions needed to perform this as mentioned below.
Step 1) Client script calls the server side script on a button which triggers the flag to create the new process
Step 2) Client script calls the server side script on a button to get the newly created folder Id.
Step 3) Client script opens the newly created folder using the folder ID created from step (2).
As mentioned you cant launch a parallel process from the action if you want it to open as this needs to be controlled via the client side script to perform step (3)
Cheers,
Ryan
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories