Hi all
Datasource for app is a SharePoint site
I have a SPO list with columns DLA Name, DLAMinAmount, DLAMaxAmount
This specifies who can approve something depending the value amount.
I am trying to set the text for TextInputDLAPath to the DLA Name from the SPO list depending on the value in DataCardValueNetBookValue field.. Unfortunately I am not able to get it to work. Any assistance would be greatly appreciated.
Sample list
| DLA Name | DLAMinAmount | DLAMaxAmount |
| Board | 5000001 | 100000000 |
| CFO | 100001 | 5000000 |
Example
DataCardValueNetBookValue = 100500
Therefore the text of TextInputDLAPath would be "CFO"
This is what I have so far on the On Change property of DataCardValueNetBookValue:
TextInputDLAPath.Text = If(First(CurrentRecord).'Net Book Value' = 0 Or First(CurrentRecord).'Net Book Value' <= 50000 Or IsBlank(DataCardValueNetBookValue.Text), "Group Fin Controller",
LookUp('Disposal Approval Matrix', DLAMinAmount >= First(CurrentRecord).'Net Book Value' And DLAMaxAmount <= First(CurrentRecord).'Net Book Value'
).'DLA Name'
)