Closed mathieuLU closed 1 month ago
so far i can't make it
this field total is ruled by 2 properties:
i keep searching...
I found a way !!
kan du kolla @fredrikhaas om det ser bra ut för dig ?
bara säget till om du vill byta meddelandet eller ngt annat
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: @.***>
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
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
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