Hi All,
My form is working perfectly when i submit the values for this field "SF Reporting Role". I say perfectly because after submitting the values when i go back to see the values in list it shows up accurately for the column in question.
However, when i select the list item which then opens my Power Apps form view of the item- the field loses it's value and so when i save next, it's deleted or is blank already.
This field gets it values based on cascading that depends on another field "SF Reporting Role Group".
I think it has something to do with the DSI property, refer below
The items property is this:-
And the Update property is this:
@RandyHayes Please check this
Solved! Go to Solution.
@Anonymous
The issue is in the DefaultSelectedItems property.
In the Items property you have a formula that Shows the column "SFReportingRole". The schema of your Items property then is a table with a single text column called "SFReportingRole".
Now, the DefaultSelectedItems (DSI) property is creating a table with a single text column called "SF Reporting Role Group". This will never match the column name of the Items property.
So, change the DSI formula to:
If('Value- Report Type'.Selected.Value="Data Extract", Blank(),
ForAll(ThisItem.'SF Reporting Role', {SFReportingRole: Value})
)
Notice with the above we are changing the resultant table schema to a schema that matches the Items property...so it should select properly.
I hope this is helpful for you.
@Anonymous
The issue is in the DefaultSelectedItems property.
In the Items property you have a formula that Shows the column "SFReportingRole". The schema of your Items property then is a table with a single text column called "SFReportingRole".
Now, the DefaultSelectedItems (DSI) property is creating a table with a single text column called "SF Reporting Role Group". This will never match the column name of the Items property.
So, change the DSI formula to:
If('Value- Report Type'.Selected.Value="Data Extract", Blank(),
ForAll(ThisItem.'SF Reporting Role', {SFReportingRole: Value})
)
Notice with the above we are changing the resultant table schema to a schema that matches the Items property...so it should select properly.
I hope this is helpful for you.
@RandyHayes That certainly helped on that error.
However, the error persists.
Not sure now which value to check besides these 3. The values were lost as soon as i edited the form in edit view.
Thanks
@Anonymous
When you say the error persists, are you saying the issue of "new is fine, then save, then open and view and it is empty"? Or is there some other error?
Yes @RandyHayes
So the order i am seeing it is this:
1) I select the values for the field "SF Report Role"
2) Submit the form
3) Go & check in the SP list (It shows all the values that I selected, just as before even when i had an incorrect formula that you just corrected in DSI)
4) When I select the record, the view form opens so that i can see all the fields- and this field is blank.
Hope it helps.
@Anonymous
Yes the DSI is solely responsible for "showing" prior data, so that would not impact updating the list item in anyway.
But...there is an issue completely with the DSI property. The DSI formula that I last provided is going to return a table. Is your AllowMultipleSelections option turned on for that combobox? I'm assuming so, but make sure.
Otherwise, you really need to take a closer look at what that DSI formula is producing for you.
Since you're Integrated, you can set the Item property of the form to a LookUp to that specific record (you recall how we did that before) and then look at the formula results for the DSI...is it producing a table of single column records?
@RandyHayes Multi Select is true.
I tried the below Lookup formula in Items property, it seems to be wrong for want of scope
I tried this SPI thing formula too
But that seems to be wrong with almost the same error
LookUp(SharePointIntegration.Selected.'SF Reporting Role',ThisItem.ID= "445",ThisItem.'SF Reporting Role')
In the existing DSI formula when i click at the formula end- it does confirm that i am returning a table.
@Randy Infact, the formula you suggested also mentions about scope being missing for evaluation.
Refer this
@Anonymous
You will need to (just for testing) set the ThisItem part of this to LookUp('Business...', ID=<theID>).'SF Re....
Replace the datasource name with the full name and the <theID> with the number you used for your Item property lookup.
User | Count |
---|---|
252 | |
107 | |
88 | |
51 | |
44 |