Link in application page does not work

Hello everyone

I have a UI Designer page application, in this one, I have :

  • Javascript expression named getCreateNDFDiagramProcessStartUrl which contains
    var process = $data.ndfProcesses[0];
    console.log(process);
    console.log("/bonita/portal/resource/process/"+ encodeURI(process.name) +"/" + process.version + "/content/?id=" + process.id +"&senderUrl="+ window.top.location.href);
    return "/bonita/portal/resource/process/"+ encodeURI(process.name) +"/" + process.version + "/content/?id=" + process.id +"&senderUrl="+ window.top.location.href;
  • External application call named ndfProcesses and contains 

    /bonita/API/bpm/process?c=1&p=0&f=name=createNDFDiagram&o=deploymentDate

The problem is the link does not seem to react on click and does nothing.

Do you know please why ? Please could you help me ?

Best regards

Romain

Hi, 

if you want data to be sent to another form here are the steps that your data is going to follow :

1. Objects and attributes are first declared in the Business Data model, and a variable is created at pool level. This variable is going to be initialized with data coming from the instanciation form.The instanciation form will be automatically created from contract information.

At form's submission, the data variable is automatically initialized in your process (it has to be consistent with the prerequisites of the contract)

2. When you want to display data in a 2nd form, you will initialize a new form from the second task. In UI Designer all attributes from your variable that are not specified in the task contract will be automatically displayed in Read-only mode in the form.

HTH

Hello

It should work but it's not.

The second form does not get the datas from the first one.

The second form contains some blocks like this :

{{ndf.demandeur}}

And some blocks like this :

data:ndf.dateCreation

I've three forms in the process. The second transmits datas to the third form but the first one transmits no datas.

The first form is generated and displayed in an app Page.

Best regards,

Romain

Hello

Thank you for your help

Best regards

Hi,

Could you please export your project in a .bos file, so that we can have a look on this?

(From the Bonita Studio, click on the 'Export' icon. Then add a link on you .bos file. See https://community.bonitasoft.com/frequently-asked-questions#file-picture-video)

Thanks

Hello,

where do you use the Javascript expression and the URL that calls your external application? Do you have a description of your page ? (widgets used, etc)

Here your API call is going to retrieve the list of process instances of your process createNDFDiagram sorted by deploymentDate.

Hello

Thanks for replying me.

I've resetted the project by using an other one : a procurement request demo.

I replaced the forms in the process for requests.

Now I have a new problem. The first form which is the instanciated form doest not send datas to the second form.

Maybe the datas are not transmitted from the App page to the Bonita default Portal form ?

Best regards

Hello, ok I do this as soon as possible, thank you in advance. Best regards