select widget

Form not sent if a select widget is left empty

Hi all,
I have a problem with a form. I have in it two select widgets. One is mandatory while the second not. So, it could be live empty by an user. Furthermore, the “submit” button has a control such as $form.$invalid.
Now, when I test the form it happens that after have made a selection in the first select widget (because it is mandatory), the button becomes active but the form is not sent (and so my task does not go on) until I select a value also on the second select widget. The strange thing that I saw is:

How to set the Select widget Initial value from BDM object

I want to use business data to set the initial value of Select widget.

I will explain what I would like to achieve.
In the previous task, I get the value of the Select from user and set this data in business data object, and then use this value for the Select widget's initial value in the next task, so the user does not have to select, but still be able to change the value of select if it is necessary (the actor groups in this 2 tasks are different, so this 2 user should be different person).

Alternative access to activity variable

I have a form that need to access an activity variable that store a result from a SQL query to populate a select widget, but using ../API/bpm/activityVariable/{{taskId}}/varname i'm getting 403 status result and the select widget stay empty.
Using ../API/bpm/caseVariable/{{taskId}}/varname i'm obtaining a string that need to be formatted in javascript for the select widget

There's a clean way to do this? the first form I describe works very well but i need to be administrator... any suggestions?

Regards.

How to assign a selected value to a select widget

I am retrieving customers from an external DB and add them in a select widget then one is selected and the data is displayed in widgets on a form.

It works fine for inputs widgets and they easily display what I tell them but antother select widget that lists available titles (Dr., Monsieur, Madame) is not displaying the title value of the selected customer.

Parsing "Connector in" result using a Select widget

Hi,

I have a "connector in" which sends the a query result (list) to one Process Variable.
The resulting array has 2 "columns".

When calling the Process variable from the UI form, using a UI variable (with External API call), I don't know how to parse the result.

The select widget is supposed to show a list of departments. i.e.:
Aires Acondicionados"
Administrativo
Aprovisionamiento
...etc

¿Se puede cargar en un único script de Groovy (o conector de Base de Datos) varias consultas y almacenar los resultados y diferentes variables del proceso?¿Cómo?

!Hola buenas a toda la comunidad de Bonita! Estoy empezando con Bonita 7.2, y cualquier ayuda sera agradecida.
El problema que tengo es el siguiente, necesito inicializar varios(20) Select Item desde base de datos, actualmente tengo como diez conectores de BD, uno por cada Select Item, pero supongo que habrá alguna manera de usar un único conector de base de datos y desde este utilizando Groovy Script devolver cada una de las consultas en una variable diferente.

Can I load in a unique Groovy Scrip (or DB Connector) many queries form data base and save this data in many processes variables? How?

Hello to the hole Bonita community, I’m new in Bonita 7.2, any help will be appreciated.
The problem is that I have too many Data Base connectors, and I think should exist a different way of doing this in an optimal way, with only one connector executing multiples queries.

Trubles with select widget

Hello everybody,

I'm trying to use the select widget but without success so far. I initialized it as followed:
Available values: [{"v":0,"l":"A"},{"v":1,"l":"B"},{"v":2,"l":"C"}]
Displayed key: l
Returned key: v

The options are there, but if I try to select one, I get something like infinite loop with errors:

select widget with OptionList process variable

Hello,

I want to display a OptionList text variable in a Select widget. It seems to be quite simple but I have a couple of questions. I found an example here but with a JSON object instead of an Option list variable.

Next things I did in Studio 7.1.5 community.

1) Create a Option list variable (process variable) with a list of text options. called: "cars". ie.

Alfa
Renault
Mercedez

2) In a Form UI 7.1.5, I create a link to a process variable called "CarList:

../API/bpm/activityVariable/{{taskId}}/cars

Unable to set custom widgets properties

I have to create a custom widget in which a property have to be set.
Here is the HTML :

<select ng-model="val" ng-change="ctrl.updateValues()">
    <option ng-repeat="val in availableValues" >{{val}}</option>
</select>

And the controller code :

Notifications