Hello !!
Hope you are all doing great.
Ok... I have a new issue that i'm struggling with.
I have a SP List "DeptProcAct" with columns Department / Process
I also have a second list "Dept" with columns DPADept / DPAProc.
DPADept is a lookup column of Department and DPAProc is a lookup column of process.
I created a Powerapps form in List "Dept" where i have my fields. Since those are 2 dropdowns, I made them cascading.
In the Items property of "DPADept" i have "Distinct(DeptProcAct,Department)"
and in the items property of DPAProc I have this "Distinct(Filter(DeptProcAct,Department=DataCardValue48.Selected.Result),Process)"
Where DataCardValue48 is the data card of DPADept.
Cascading seems to be working.... if i select a department the process box shows the corresponding values
* The first problem is when i try to save my fields using a save icon with formula SubmitForm(Form1) it doesn't save anything.
* When i use a Patch function,
Patch(Dept,{DPADept:DataCardValue48.Selected.Result,DPAProc:DataCardValue49.Selected.Result}) ,
I have an error. it says DPAXXX does not match the type record. found type text
* but i also have a some itnitialization value issue cause my boxes seem to load the last used values and not a blank one (when the form is empty)
I can imagine it's not really clear. I tried lots of things including something with "@odata..." but till now nothing worked properly so i'm doing something wrong...
I had another idea to create 2 dropdowns in my Dept list and use the distinct values of the columns, make them cascading but i had another issue with this, i guess it was not saving the values in the list or they wouldn't load back when i reopen the form... honestly, i tried so many things that i don't even remember 😞
Would one of you be able to help me on this ??
Thanks a lot in advance !!
Regrds
it saves the saves the value of Dept but the value of Proc stays blank