Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Doogal

Avatar / Picture

Guru
Registered:
Posts: 1,564
Reply with quote  #1 

Just wondering if anybody has done this before. A client wants to submit a form and then when it has been submitted open another folder at the same stage and kick off the same action, so they can quickly edit a series of folders. Has anybody done anything similar and if so how did you do it?

0
Nappy

Avatar / Picture

Guru
Registered:
Posts: 1,087
Reply with quote  #2 
Ehhrrr you mean
You have 6 folders at stage x and client starts action a on folder 1.
On submit of action a on folder 1, action a on folder 2 should be started etc etc

only option i can think of is to somehow start a client scripted submit action to get the next one open.

Or depending on what they have to do (looks like it repetitive work) somehow use an admin form to set up what needs to be done and use a script to flag cycle through all the forms to do the action


__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.

PS that's for V6/7 for V9 the problem is V9 at the moment ;)
0
Pete

Senior Veteran
Registered:
Posts: 315
Reply with quote  #3 

What we have done is an admin form containing a gird with a list of folders. From this list you can choose the folders for which you'd like to perform the action and for all selected folders a flagged action is raised...


__________________
If you want the job done right, hire a professional.
0
Doogal

Avatar / Picture

Guru
Registered:
Posts: 1,564
Reply with quote  #4 
Cheers for the ideas. In our case they really need to do it on a case by case basis since the form they use is pretty large so it wouldn't be possible to show all the information along with the grid of folders. I've suggested just having one folder which loops round showing the information for the next item on each loop but he's not happy with that idea.

I'm guessing it can be done via some hacked together script, I was just hoping somebody else had done it so I didn't have to!
0
LJ

Avatar / Picture

Senior Veteran
Registered:
Posts: 452
Reply with quote  #5 
Well I'm not sure you can afford my consultancy fee.
:-D
 
I think the main issue is how your grouping the Folders and getting the order of the Folders?
 
Just some SQL to get the Next Folder from EFolder (and another table if they need grouping) and a button script to open the folder and submit the old folder could be achieved rather than a huge script.
 
I tend to use a manager map to control sets of these - be interesting to hear your approach as I could do do this between related folders myself.
 
LJ.

__________________
LJ
0
Nappy

Avatar / Picture

Guru
Registered:
Posts: 1,087
Reply with quote  #6 
In 7.x as a quick fix they could filter the stage the folders are at on the left and then use the foldername dropdown for faster access

But scripting hack would be the way to go i guess

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.

PS that's for V6/7 for V9 the problem is V9 at the moment ;)
0
Doogal

Avatar / Picture

Guru
Registered:
Posts: 1,564
Reply with quote  #7 
So close but so far... The following bit of script (or something like it) attached to the OnSubmit of the form will work the first time

Quote:

    var actionOpener = esOpenerFactory_Create("folder_action");
    actionOpener.openItem(eServiceName, eworkGetField("eNextFolder"), "", "Edit", "Form");


Unfortunately on the next attempt it fails with the error

Quote:

The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.


The next folder action opens but the previous one fails to close due to the error. I think it's something to do with the fact that window that created it no longer exists, which I don't suppose generally happens for the web client. Unfortunately the problem occurs in eCommitForm.ashx which seems to generate its JScript on the fly. At least I can't find the script anywhere so I can't band aid the client.
0
Pete

Senior Veteran
Registered:
Posts: 315
Reply with quote  #8 
If you know the folders which should be processed after the first one, something like the following might work (?):
-Save all folderIDs into a cookie, and on submit you oben a new window with the next folderID. On the form is a (hidden?) Button of type commit action which you click by script on form load...

__________________
If you want the job done right, hire a professional.
0
oelversk

Avatar / Picture

Senior Member
Registered:
Posts: 74
Reply with quote  #9 
On the Metastorm Web Partner or Customer area under Technical and BPM Shortcuts, there's a sample procedure called Get Next Folder. Would that help?

Regards
Ola

__________________
The Truth is Out There!

Business Dynamics Svenska AB
0
Doogal

Avatar / Picture

Guru
Registered:
Posts: 1,564
Reply with quote  #10 
The sample on the Metastorm website opens the next folder but doesn't start an action. I can get that working no problem (although the sample is way too complicated working out the next folder ID, it can be done with some simple SQL).

The problem with starting an action is when the web client tries to submit the action it then tries to close the original folder as well. In my case, there isn't any folder to close so I get a script error. But I've come up with a solution that doesn't involve too much hacking. I have a submit handler on the form like so

Quote:

function SubmitHandler()
{
    window.open("eForm.aspx?Action=Edit&FolderID=" + eworkGetField("eNextFolder") +
        "&LaunchURL=close.htm",
        "_blank","toolbar=no,resizable=no,width=400, height=400");
    return true;
}


I've added a simple HTML file called close.htm that is pretty much empty except for some script like so

Quote:

<body onload="window.close()">

0
Paul

Avatar / Picture

Veteran
Registered:
Posts: 150
Reply with quote  #11 
Just wondering - could you shorten this again to the following

function SubmitHandler()
{
window.open("eForm.aspx?Action=Edit&FolderID=" + eworkGetField("eNextFolder") +
"&LaunchURL=javascript:window.close()",
"_blank","toolbar=no,resizable=no,width=400, height=400");
return true;
}

This would then avoid the need for calling a secondary page?
0
Doogal

Avatar / Picture

Guru
Registered:
Posts: 1,564
Reply with quote  #12 

Unfortunately not, I tried it but IE tried navigating to a page called javascript:window.close()

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!