Bahmni PAT call on 29 Jan 2020

Dear All,

Reminder, we have PAT call, happening - at 6:30 pm IST, that’s 1 pm UTC, 8 am ET Wednesday, 29 Jan 2020.

Zoom meeting:

Please provide any topic you would like to discuss in this thread.

@ajeenckya @arjun @mksrom @pramidat @ramashish @shivarachakonda @binduak @swetha184 @laxman @anandpatel @snehabagri @sushilp @sushmit @vmalini @akhilmalhotra @dipakthapa @ramashish@pradipta @mddubey @rrameshbtech @mddubey @iadksd @angshuonline @mwelazek @michaelbontyes

Wanted to discuss some differences in forms1 and form2 and some fixes in forms2

Form 1 Form 2
On load of he form/ on change of the concept, any concept which has form condition associated with it, gets triggered. For form2 we need to write on load operations inside the form event and on change event inside control event. In case we have data inside a control, its control event is also tiggered on load.
Can reuse same function across forms. (Same applies to concept form conditions) Can reuse only within that form and not accross forms.
The form conditons reflect immediately after it is edited The form conditon is hooked to a version and the form needs to be republished everytime.
A single line code to hide multiple concepts Individual line of code needs to be written to hide each concept.
Multiselect values are easier to retrieve and proces Needs 2-3 lines of code to retrieve and store the value
Its easier for the IE to enter form conditions, as it is done at a single place It is very cmbersome, as we need to click on form event / control event individually and it does not give a single view for all the code together.
Form conditons written in a separate JS file Form conditons written using Editor text box inside implementer inteface, the editor is not IE friendly and does not provide ways to validate, format or see line numbers for code. Also the edior is not user friendly with long code and flickers when we try to select exisitng code. It renders with the form condtion of preious form at times.
If I get the control record using the get api and later if I call setHidden on it, it is not hiding the control when we do that on control event and it is hiding the control when we do that on form event

Form builder - control event not working with multi-select

If the field is single-select then control event works perfectly fine (for e.g: display another field when selecting other option), however, when I change the field to multi-select, can’t get value from the control event by form.getValue() function.

Details topic

Please find the notes here