Javascript

Repeat container (collection) to many data makes it slow

Hi,

My problem is simple, the solution may not be...

I have a List containing ~70-100 objects, each object has ~20 properties, every property needs an input because the user will edit the object properties this way. The problem with this is, that it is really slow... and laggs. Is there a way to speed this up or it simply cannot handle this much input fields?

Bonitasoft returns 0.00 in Database for assigned variables

I created 3 variables which i used to do calculations

i called one numberOfNights = Name , Value = numberOfNights type = String, the second one perdiem = Name , Value = perdiem type = String and the last one
is a javascript expression i used for some calculations

Now i used some Javascript function like this :

var CalculateAmount = Number($data.perdiem) * Number($data.numberOfNights);
return CalculateAmount

when i created another variable of Type Javascript Expression with name PerdiemCalculateDays , now i save.

Manipulate elements of repeat container using Javascript

Hi,

I'm trying to manipulate two select widgets in a repeat container using the UI Designer in Bonita BPM 7.8.3. The behaviour that I want to implement is:

  1. In the first select widget I choose a country from a list stored in a variable.

  2. Based on the value of the country, I want to load in the second select widget the states of that country . I'm trying to use a Javascript Expression to implement it, but I can not access to contextual variables (e.g.: $collection, $item, $index) in the Javascript Expression (I can only access to $data).

Change password BonitaSoft 7.4.1

Hello,

I try to create an application to change user password using the javascript expression XMLHttpRequest

This method works in version 7.3.1, but does not work in version 7.4.1 and also in version 7.5.1

return function()
{
var xhr = new XMLHttpRequest();

if($data.newPasswordDetails.newPassword == $data.newPasswordDetails.confirmPassword)
{

How to achieve a LEFT JOIN between two tables

Hi,

I have a table A and other B. Table B has an aggregated field referring table A.
I am trying to list all elements from table A not referenced in table B.
The goal is to show this list in a process Form.

How can I do it:

  • Through JPQL
  • Through Javascript

Thanks a lot !

Javascript brokens when uploading file using chrome browser

Hi there.

I'm facing a (new) problem trying to upload files in Google Chrome (versions 55 or 57, the same behavior).
The browser console shows me the following:

Uncaught TypeError: Cannot set property 'innerHTML' of null
at jsd (6DE7E7109D6A9A5FD243E59C759F3789.cache.html:2686)
at Wqd (6DE7E7109D6A9A5FD243E59C759F3789.cache.html:2592)
at wm (6DE7E7109D6A9A5FD243E59C759F3789.cache.html:2540)
at 6DE7E7109D6A9A5FD243E59C759F3789.cache.html:1949
at 6DE7E7109D6A9A5FD243E59C759F3789.cache.html:2243

Javascript inside a Bonita Designer form

Hi

I have a observation.
The Scenario is that I have a custom Living app page. There I have 2 separate Lists of type multiple.
My contract is a Single list of Type multiple.

What i am doing here is Adding the values of the 2 lists together and sending it to my contract.
I am using JavaScript to perform this.
In side the custome page , it works fine.

Using Passport.js for Bonita REST API

Hello Team,

I'm trying to develop a MEAN app interfacing with the bonita rest API. I'm using the passport.js that is included in the seed that I've built. I having some issues integrating passport.js with the bonita login rest api. Has anyone done this before? I have a node script that calls the login rest api, gets cookie, then calls a get process service. This works just fine. But when trying to integrate into existing application, I can't get it to work.

To reduce elements in select by previous selections

Hi,

controlli.png
I have a container formInput.contract.controlli. controlli is an array.
The select widget value is: $item.
The select widget available values is: controllos (Rest/Json) ['Pippo','Pluto','Paperino','Linux'].

When I add a new select widget with button add, I want that the number of element is reduced by previous selections.

Select a value in select widget

Hi,
in Bonita 7 UI Designer, I have a form with select widget.
The available values are: (Rest/Json) persons [{'1','Pippo'},{'2','Pluto'},{'1','Topolino'}]
I have a variable selectedPerson {'2','Pluto'}
When I load the form, I want that Pluto is selected!

How can I do?

Thanks
Manolo

Notifications