Hi for an AutoForm (hope it applies to the AutoQueryGrid edit form) is it possible to filter the lookup for a property that refers to a database table e.g. the Coupon Id from the examples ?
I don’t exactly know what this is asking, but LookupInput.vue is a simple component for opening the referenced table in a modal where users should be able to filter and sort the results by column, as they would in an AutoQueryGrid.
You can’t customize its behavior but you can use attributes to explicitly add it to custom field to tell it which table (model) to open, what the refId it should lookup and what refLabel string it should use for its display label, e.g:
[Input(Type="lookup",
Options="{refId:'id',model:'Coupon',refLabel:'RoomNumber'}")]
public int Id { get; set; }
1 Like
