cancel
Showing results for 
Search instead for 
Did you mean: 

read-only form

jmzags
Champ in-the-making
Champ in-the-making
Looking for suggestions/guidance on ways to implement the following….
I have a flow that requires multiple users to provide input via each of their own forms, would like to give visibility to the user when they acess their input form to view how the others have voted/commented as of that given moment ( not sequential, so needs to be staus at moment of request).  I have added a button o the user's form 'View History/Status'.
I would like to have the button  use javascript onclick which would call a function  that essentially kicks off java code or a db procedure that will essentially query the appropriate ACT tables and write an html page  and the javascript openwindow will be populate with thi html pge…..
How would I be able to make a db call using the existing session and task/process ids to pass to my procedure???

thanks in advance
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Is this in your own application or in Vaadin?

But in any case, it is a mater of calling the correct API (rest service for javascript, java for Vaadin) and building the page.
The form is associated with a task, and that task has an id. The task also has an id to the process instance and process definition, so you can build your use case with that information.

jmzags
Champ in-the-making
Champ in-the-making
thanks for the reply
I would like to rephrase the question - as I am able to have a listener generate/write an html with the necesary data in a temp folder and I am also able to add a button to the form via javascript onload so the user can click on it and view the generated html.  Works good when a create and assign event occurs - but my problem is I  really need this listener ( or the code in it really) to execute everytime the form is loaded/requested………any suggestions?

jbarrez
Star Contributor
Star Contributor
I don't really follow that solution … why do you put stuff in a temp folder?
Can't you just use the variables through the API?