Hello,
I'm not sure if I am just missing something obvious, but I can't seem to find anything about this issue.
I have a dropdown of allowed values here is a breakdown of how it is set up:
AllowedValues: Distinct(Facility, abbr)
Update: LookUp(Facility,Text(DataCardValue12_1.Selected.Value)=abbr).Id
Default: ThisItem.FacilityId
Form Item: Gallery3.Selected
Gallery 3 is selecting an item that has a Facility of "MOC", but on the drop down of allowed values on my edit form it always shows "ISCO" no matter what the actual value is. I need it to default to the current value. This sheet is for editing an existing record. Currently, if I open an item from "MOC" to change it's purchase amount, but don't notice the Facility dropdown changed to "ISCO" then when I submit it will change values I am not wanting changed.
Maybe I am misunderstood, but I believed that the form's "item" being whatever record gallery3 selected meant that "ThisItem" is now that item, and therefore it should be showing the correct value if my default is "ThisItem.FacilityId"
Something I tried to resolve this was to use this as the default: LookUp(Facility,ThisItem.FacilityId=Id).abbr
Since I want the displayed value to be the site abbreviation and not the ID, but then it says "MOC" cannot be converted to a number.
I think it is important to point out if it wasn't obvious from the code that I am wanting the values that are displayed to be the matching names from the facility dimension table, but the field being changed is the facilityid field in the asset table.
Any help is greatly appreciated.
Thanks!

Report
All responses (
Answers (