Databasejoin add new option's behaviour not accurate in repeated group

Jaanus

Super Moderator
Opened this issue also in github: https://github.com/Fabrik/fabrik/issues/583

This issue occurs when
- a databasejoin element with add new option button is in repeated group
AND
- we are editing an existing record

If we want to add new row to the repeated group and add there also a new option to the dbjoin
- then we have to click first on the 'add new' button near the dbjoin element on the first repeated row
- and only after that we can click 'add group' and then on the same button near the same element on the new row.
EDIT: but this trick works only if we have only one previously saved record in this repeated group!

Otherwise
- clicking save button doesn't close the popup
- when we have also some element javascript action there (e.g. show element1 when element2 = 1) then it doesn't work at all

When we continue adding new rows during the same editing session then we don't need to open the 'first' popup anymore.

In case when we have succesfully populated the dbjoin element in new row with the newly added option
- then all the previous dbjoin elements are automatically populated with the same new data (and we have to "restore" them).

It doesn't happen
- when we repeat this operation,
- when we just choose an existing option for the new row
- or when we edit the first row in this repeated group adding new option for the dbjoin element.

P.S.
1) a nonsense COULD NOT FIND RECORD IN DATABASE. is still present on the top of the popup.
2) I talked shortly about it in another thread that I closed as the main issue is solved now.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top