Overslaan naar hoofdinhoud

Dataprocessing selectbox - uppercase vs. lowercase letters - Community / Verbetervoorstellen - Deployteq Support

3

Dataprocessing selectbox - uppercase vs. lowercase letters Open Discussion

When you send data to a webhook and map this data to a select box, you need to translate the values in your select box to uppercase if they are in lowercase. This is because the system processes them correctly only when they are in uppercase, despite the fact that the select options you entered are in lowercase.

If you don't translate them to uppercase, the backend will store the value correctly (if it matches, of course), but when you look at the customer options for the client, you'll see an empty select box. It always stores values in uppercase. This means that you must use uppercase in your switch component as well, because otherwise, it won't match the expected lowercase value.

This is very confusing and error-prone, as you can imagine. It also requires extra steps. My expectation would be that you should be able to map the values 1:1 without translating them and see the result in both the backend and frontend.

Additionally, you should be able to use the same value in a switch component as in your select box as a condition, without necessarily using uppercase.

If this is not technically possible in the backend, another solution would be to provide warnings (when mapping and in the switch condition field).


Als je data naar een webhook stuurt en deze data map je aan een selectbox. Dan moet je, als je in je selectbox waarden hebt staan met kleine letters, hier een translate op doen dat die van kleine letters hoofdletters maakt, omdat het anders niet goed door het systeem verwerkt wordt ondanks dat de selectopties die je hebt ingevoerd kleine letters zijn.

Als je dit niet zou translaten naar hoofdletters dan wordt in de backend wel de waarde (indien juist natuurlijk) weggeschreven bij de klant, maar zie je als je bij de klant customer options kijkt een lege selectbox staan.

Hij slaat het dus ten alle tijden als hoofdletters op. Wat blijkbaar betekend dat je in je switch component ook hoofdletters moet hanteren omdat je anders niet voldoet aan de opgegeven waarde in kleine letters.

Dit is erg verwarrend en foutgevoelig zoal je je kan voorstellen. Ook extra handelingen.

Mijn verwachting zou zijn dat je 1 op 1 zonder translate het moet kunnen mappen en zowel backend als frontend het resultaat zichtbaar zou moeten zijn. Alsmede dat je in een switch component dezelfde waarde als je selectbox kan invullen als conditie en niet perse hoofdletters moet zijn.

Een andere oplossing als dit backend technisch toch niet mogelijk is zou waarschuwingen zijn (bij het mappen en bij het switch conditie veld.

Reactie toevoegen

Log in of registreer om commentaar achter laten.

Wachtwoord opnieuw aanvragen?