Hei,
I'm once again asking for your support.
So i have run into a problem and I can't find a fix for it.
What I want to accomplish is that a user chooses a value from dropdown Seksjon, the next one is a cascading dropdown and the user must choose a value for Avdeling. Then a third is a combobox with multiple values. For the combobox Tjeneste, DefaultSelectedItems and Items property is the same so that the values in combobox are dependant from previous dropdown and all of them are selected.
Next step is to choose a date, which usually is default selected to Today() and another dropdown Nadd SLA with 3 hardcoded values.
After it I have button Legg til liste to create a collection and add it all to a gallery.
After it is added to the gallery I want that the user can edit Nadd SLA dropdown and Tjeneste combobox/dropdown. (I dont know if there is a difference if I use dropdown or combobox for that value in gallery since i dont need multiple selections there)
#1 The problem I run into is that Tjeneste dropdown in gallery shows the correct amount of values that can be found in the combobox Tjeneste, but it shows only the value name from dropdown Avdeling. How can I make it so that dropdown in gallery allows to choose from all the values from Tjeneste combobox?
#2 I would also like that Nadd SLA dropdown in gallery could be edited to choose the right color.
Gallery is connected to a collection which is made after pressing the Legg til liste button. Is it possible to edit the values in gallery which are collected from a collection?
The functions I use for Dropdowns and Combobox which are not in the gallery:
Seksjon - Distinct('CBO Tjenesteoversikt',Seksjon.Value) - ddSeksjon
Avdeling - Distinct(Filter('CBO Tjenesteoversikt', Seksjon.Value = ddSeksjon.Selected.Result),Avdeling) - ddAvdeling
Tjeneste - Filter('CBO Tjenesteoversikt', Avdeling = ddAvdeling.Selected.Result) – DefaultSelectedItems Filter('CBO Tjenesteoversikt', Avdeling = ddAvdeling.Selected.Result) - cbTjeneste
Dato – DefaultDate - Today() – Date
Nådd SLA? - ["Grønt","Gult", "Rødt"], - ddSlaN
The Legg til liste button OnSelect -
ForAll(cbTjeneste.SelectedItems,Collect(colKT,{seksjon:ddSeksjon.SelectedText, avdeling:ddAvdeling.SelectedText, tjeneste:cbTjeneste.SelectedItems,dato:Date.SelectedDate,sla:ddSlaN.SelectedText}))
And The Gallery items:
gcbTjeneste - tjeneste
gDato - dato
gddSLA - sla
gddAvdeling - avdeling
gddSeksjon- seksjon

