I have two imported tables/lists from an external DB,
One for companies and another for contacts. Companies can have multiple contact persons, they are related by company ID.
In an instantiation form, I would like to be able to select a company from a list (this is working already), and then only allow the user to choose from the contacts (in a separate list field) that relate to the company.
I feel like this should be as simple as a js asset but can't seem to implement one correctly (I'm beginner). Any help and advice appreciated.
Then, use this data in the companies dropdown, Display key is displayKey and Return key is returnKey.
Have the value of your companies dropdown be assigned to a UID variable (ex: companiesValue).
Then, create a UID variable (let's say it's called controller) that will have a function that will filter the contacts data depending on the selected companiesValue. The value of the controller variable will be something like this:
Or create a list that can be used in a dropdown (through displayKey, returnKey). Now, all you need to do is call "controller.filterDataDependingOnCompanySelected(companiesValue)"and you will get a list of contacts that are part of the company. You can always change how you filter the contacts if your data differs.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.