Based on your description, it seems that the issue lies with the expression in the DefaultSelectedItems property of the Dropdown control. The formula you provided is not formatted correctly. Here's the corrected version:
DefaultSelectedItems:
{ value: LookUp(Table, ID = varItemID).Order_no }
Make sure to use a comma (,) instead of a semicolon (;) to separate the parameters within the LookUp function.
Additionally, if the Order_no field is not unique, you may need to modify the formula to retrieve a single record. For example, you can use the First function to get the first record that matches the condition:
DefaultSelectedItems:
{ value: First(Filter(Table, ID = varItemID)).Order_no }
This expression filters the Table based on the ID matching varItemID and then retrieves the Order_no field from the first record.
Please ensure that the varItemID variable is correctly set before opening the side panel and that the Lookup or Filter function returns a valid record with a non-empty Order_no value.