Hi @adri_microsoft ,
Could you please share a screenshot about the error message in your LookUp formula?
For your LookUp formula, please make sure the record variable store the record from your Excel table, which you want to retrieve. As an fixed solution, you could consider add a Gallery (Gallery1) inside your app screen, then set the Items property of the Gallery to following:
MyExcelFile_1
then all available records from your Excel table would be shown up in your Gallery.
Note: I assume that you have formatted your Excel data as a Table already. And the MyExcelFile_1 is your Excel table.
Set the TemplateFill property of this Gallery to following:
If(
ThisItem.IsSelected;
RGBA( 255; 127; 80; 1 );
RGBA(0; 0; 0; 0)
)
above formula would highlight the selected item in your Gallery.
If you want to display the detail info of the selected item in your Gallery, please consider add a Display form in your screen, set the Data source property of the Display form to MyExcelFile_1. Set the Item property to following:
LookUp(MyExcelFile_1; ID = Gallery1.Selected.ID)
For your second issue, how do you submit your data back to your data source? Using SubmitForm function or Patch function? If you use SubmitForm function, you need to add a Edit form in your app screen, and only when the Edit form Default Mode is in Edit mode, press the "Submit" button would update record in your data source. Otherwise, it would add a new entry into your data source.
If you use Patch function to submit data, please use the following Patch formula in OnSelect property of "Submit" button:
Patch(
MyExcelFile_1;
LookUp(MyExcelFile_1; ID = Gallery1.Selected.ID);
{
ColumnName: TextInput1.Text
}
)
Of course, if you think the above solution is complex, I think the Editable Gallery functionality could achieve your needs:
https://www.youtube.com/watch?v=Y5G5p84mD84
https://www.youtube.com/watch?v=gRAnpZJESiE
Please try above solution, then check if the issue is solved.
Regards,