I have a lookup field (dropdown) in my table but when I enable searching (check allow sort/search) I receive an SQL error:
Invalid column name 'EV__EquipmentType'
I noticed the search was broken (incorrect syntax near from) for one of my pages. I traced it back in visual studio and I believe the error is sourced from:
// Get FROM clause for List page
public string SqlFromDerived
{
get {
if (!Empty(field))
return field;
string from = "(SELECT " + SqlSelectFields + ", FROM [Import].[Equipment])";
return from + " TMP_TABLE";
}
set {
field = value;
}
}
in the table.cs page (called when the table is using virtual fields).
I believe the comma before the FROM is extra/incorrect.