Highlighted

Prepopulate from query string and workspace

Avatar

Guest

09-11-2008

Heres what I need in a nutshell . . . Ive appended a variable, myExtraVariable, to the query string of the deep link to this process/form.



http://localhost:8080/workspace?startEndpoint=ApprovalSample.ApprovalSample&myExtraVariable=1234



Does anybody know of a way to retrieve this variable and populate my form with this variable from the query string? Custom Render Service?



As of now, Ive written a custom servlet to render the form (with myExtraVariable stuffed into the form) and start my process but, its outside workspace. There are lots of problems with this approach. We are using SSON within workspace and dont want to have a login so, my servlet is hard-coded with a username a password.



Any help would be appreciated.

Replies

Highlighted

Avatar

Guest

11-11-2008

It cannot be done through workspace unless you internally change how workspace sends data to the process. I think the workspace code that handles this is not accessible.



One way that comes to mind is to modify the rendering services for your initial step where you can add a service that can pull out the parameters data from some location like a database for example. But the question here is what if this data for these parameters is dynamic? Then in this case you must force the user to enter an id in the form that represents this combination of values

i.e id=0001 could represent startEndpoint=ApprovalSample.ApprovalSample&myExtraVariable=1234

id=0002 could reprosent startEndpoint=SomeSample.SomeSample&myExtraVariable=1235

So on your form you would have a dropdown list that would be populated with all these IDs (0001, 0002, etc...) through a webservice that pulls the ids from a database table.