biodiversitydata-se / biocollect

Biocollect front end application for Bioatlas
https://biocollect.biodiversitydata.se/
Other
0 stars 0 forks source link

For Kustfåglar surveys, the total column is not automatically edited when changing the values in ö/vatten #255

Closed mathieuLU closed 1 month ago

mathieuLU commented 2 months ago

the total column is supposed to bu automatically updated when changing the values in ö/vatten for the delprogram KustFåglar https://biocollect.biodiversitydata.se/sft/bioActivity/edit/c937eb4b-9445-4e6d-a49a-509fb159722c Screenshot from 2024-08-27 16-19-12

it works in the creation mode without problem (one should set first the field "Jag har i kolumnen "Total" lagt in summerade värden" to "nej"

so the problem in the edit comes certainly from that extra field. Adding a field in the edit mode works for the automatic edit of the total column, but only for the extra line

mathieuLU commented 2 months ago

so far i can't make it

this field total is ruled by 2 properties:

i keep searching...

mathieuLU commented 2 months ago

I found a way !! Screenshot from 2024-08-30 11-19-03

kan du kolla @fredrikhaas om det ser bra ut för dig ?

mathieuLU commented 2 months ago

bara säget till om du vill byta meddelandet eller ngt annat

fredrikhaas commented 2 months ago

Hej! Om meddelande behövs så kan det kanske stå så här: ”Fälten överensstämmer inte (ö+vatten SKA vara lika med total). Men när ska detta meddelande visas? Tanken är väl att det ska bli korrekt?

/Fredrik

From: mathieuLU @.> Sent: den 30 augusti 2024 11:20 To: biodiversitydata-se/biocollect @.> Cc: Fredrik Haas @.>; Mention @.> Subject: Re: [biodiversitydata-se/biocollect] For Kustfåglar surveys, the total column is not automatically edited when changing the values in ö/vatten (Issue #255)

I found a way !! Screenshot.from.2024-08-30.11-19-03.png (view on web)https://github.com/user-attachments/assets/67c164ce-da75-4b41-ae8d-b31e4027b85b

kan du kolla @fredrikhaashttps://github.com/fredrikhaas om det ser bra ut för dig ?

— Reply to this email directly, view it on GitHubhttps://github.com/biodiversitydata-se/biocollect/issues/255#issuecomment-2320617123, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW46YAA7CRFYS4KXRLZVYGLZUA2MRAVCNFSM6AAAAABNGIDO5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRQGYYTOMJSGM. You are receiving this because you were mentioned.Message ID: @.***>

mathieuLU commented 2 months ago

i switch to english for the record ;-)

you can try in BioCollect. The thing is that i cannot automate this total field to be all the time the sum of the other 2. Because some time one picks "Jag har i kolumnen "Total" lagt in summerade värden = JA" and then the sum function can't work anymore.

The form renderer makes everything less flexible for these customized controls. The only option i found is to check the total when "Jag har i kolumnen "Total" lagt in summerade värden = JA". At that moment only the check is done, and you get the error messages above the line(s) that is/are problematic

Please try in BioCollect to see if it suits you. I fix the message

mathieuLU commented 1 month ago

fixed with https://github.com/biodiversitydata-se/biocollect/commit/6212b6d79062a1d53554f46132ca4ba2a8bf5651 and https://github.com/biodiversitydata-se/biocollect/commit/67ce4044c184fdf37d8ef1015927400b6d382c50