My aim is to edit an entity which is selected by a Filter.
The Filter DAC contains only unbound fields and does not have a DB table. It is marked with [PXHidden]
In the graph there is the Filter, a View for the entity and the Save action:
public PXFilter<FilterDAC> Filter;
public SelectFrom<EntityDAC>.Where<EntityDAC.name.IsEqual<FilterDAC.name.FromCurrent>>>.View FilteredEntities;
public PXSave<FilterDAC>;
In the ASPX file I set Filter as PrimaryView of the DataSource and also as DataMember of the 1st form. A 2nd form with DataMember FilteredEntities to edit the entity.
The Filter works fine and I can edit the entity. The error occurs if I press the save button. PXGraph.ExecuteUpdate with viewName = ‘FilteredEntities” throws
Error: The table with the name 'FilterDAC' does not exist in the database.
That’s true, but shouldn’t this be ignored if the DAC has atribute PXHidden?
[PXHidden]
public class FilterDAC : IBqlTable
{
[PXString(IsUnicode = true, InputMask = "")]
[PXUIField(DisplayName = "Name")]
public virtual string Name { get; set; }
public abstract class name : PX.Data.BQL.BqlString.Field<name> { }
}