Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #1 
We used to use a lot of cookies to pass values from one form to a new form. That seemed not to work. I put it on the back burner for a while, but have now come back to it.

On extracting the cookie just before opening the new form, and just after, it is almost completely different. My value is lost, whatever I do. It appears that the cookie is being rebuilt, and any values you set are dumped.

That seems a bit foolish to me, given the massive reliance upon cookies users have been forced into in earlier versions.

__________________
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.
0
Meatstorm

Member
Registered:
Posts: 34
Reply with quote  #2 
I'm not sure about the cookie approach, as I have not attempted it in v9 as of yet.  However, there is (what I think is) an easier way to accomplish the passing of parameters from one form to another in v9 SR2+.  It can be used for blank forms, admin forms, or reports.

A typical URL looks like this:

 

eForm.aspx?Map=Process1&Action=UserAction1&Service=Metastorm%20BPM%20Server&FilterParams=Text1;Lalala%24%25^%26*%28+%29_%2b;Text:DateTime1;2010-10-01T00%3a00%3a00;DateTime

 

The “FilterParams” parameter represents initial control values. The initial values are extracted and passed to the ECL StartAction method. Engine respects it and returns the values of the form controls.

 

The FilterParams format:

 

<Control name>;<Encoded value>;<Control type>:<Control name>;<Encoded value>;<Control type>…….

 

Hope that helps.


0
RichG

Member
Registered:
Posts: 23
Reply with quote  #3 

Jerome have you had any joy with this?

I'm starting to migrate processes that heavily rely on cookies. As you said the cookie information appears to disappear!


0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #4 
Yes, I have been told. I apologize for not updating it here.

You need to set the path to "/":
Quote:
function SetCookie( name, value )
{
 var date = new Date();
 date.setTime(date.getTime()+(1000000));
 var expires = "; expires=" + date.toGMTString();
 document.cookie = name+"=" + value + expires + "; path=/";
}


__________________
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.
0
gfield

Avatar / Picture

Senior Member
Registered:
Posts: 61
Reply with quote  #5 
Hi
I have got the URL paarameter call passig values.  I used the following where the Map is the Admin group, the action is the form. The admin form has a local variable called txtFolderId.  On load, details are displayed for the folderid, cool!

Build the Url with the code and use the window.open
Local.memURL = Webserver + "eForm.aspx?Map=ConflictCheckDetail&Action=CMIView&FilterParams=txtFolderId;" 
+ Local.txtSelectedFolderId +";Text"


Which generates the following URL

http:\\sam2\metastorm\eForm.aspx?Map=ConflictCheckDetail&Action=CMIView&FilterParams=txtFolderId;0900000000000000000000000000560;Text

Cheers
Graham


__________________
Cheers Graham Field
0
gfield

Avatar / Picture

Senior Member
Registered:
Posts: 61
Reply with quote  #6 
HI
I have just installed 9.3.2.2 and this facility appears to have disappeared. I have used it on several links between list screens and creating a new sub process. It's been working fine, but now no longer populates the fields.

i.e.  http://metastorm2008/metastorm/eForm.aspx?Map=TSDriverAvailable&Action=PermHoliday&FilterParams=txtDriverUserName;asidat;Text:txtTSPeriod;2014;Text;

Would start the initial screen, fill in some values and then onsubmit, will reload with the details populated. Has anyone found a work around?


__________________
Cheers Graham Field
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #7 
Yea, they "disable" it default as of 9.3.2 for some reason.  (And for some reason its not mentioned anywhere in the release notes nor documentation.)  You have to add or update a value in your ...\Web\web.config to get them working again:
<add key="AllowFilterParams" value="true"></add>
0
ka_rouse

Member
Registered:
Posts: 16
Reply with quote  #8 
This works like a charm when passing data to admin forms, but has anyone tried to do it the other way around. This is for example, I have a blank for A which has a search feature (associated to the "status" control), which when clicks opens admin form B.

In admin form B, there is a grid that when the user selects a row, should close admin form B and populate selected information on form A.

I tried working with cookies for this, but for some reason it works sometimes and other times the values get lost.

Any insight on this?

Thanks!

0
gfield

Avatar / Picture

Senior Member
Registered:
Posts: 61
Reply with quote  #9 
I use javascript to call a function with window.opener.Functionname(parameters)
Which is turns updates the parent window with selected values.

__________________
Cheers Graham Field
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!