Hello,
I am having following requirement in our process.
When the user wishes to start a new process in the tasklist app, he / she will see a form, where the process data has to be input.
In that form, which is being deployed as a simple html file, the user has to be able to select some data from previously loaded lists.
For instance, they would be able to select a city from a pre-loaded list. And according to the selected city, they would be able to select an office. And so on.
I’ve been thinking in putting those lists of data in some json file and load them during the camForm.on(‘form-loaded’,…) event.
Unfortunately I am not being able to find out, how to read that json file from the /webapp/form resources directory. I tried already with the example in Load Additional Resources, but since the process has not started yet, no taskId is available.
I am not sure about this to be the right way of loading the selection data into the first form, but I could not think of any other easier way than this.
Anyway, if it would be possible to read the json content in the first form, I would like to add a javascript library to that same form, so it would be possible to query over the json content. I haven’t being able to find out a way to do that too.
I would be very greatful for any hint.
Kind regards,
Wagner