Like the title says, I’ve created a dialog and added a grid inside. I have an action button which will pop-up the dialog/grid just fine as long as I use a database-based DAC. However, when trying to use an in-memory DAC no rows are displayed in grid… Snippets below:
In page extension class:
public PXFilter<LabelZZZ> LotLabelsPanel;
//this will work...public PXSetup<QLSetup> LotLabelsPanel;
public PXAction<SOShipment> LotLabels;
[PXUIField(DisplayName = "Lot Labels")]
[PXButton]
protected virtual void lotLabels()
{
var bbb = new LabelZZZ();
bbb.Finish = true;
bbb.Qty = 1;
LotLabelsPanel.Insert(bbb);
var ccc = new LabelZZZ();
ccc.Finish = false;
ccc.Qty = 9;
LotLabelsPanel.Insert(ccc);
if (LotLabelsPanel.AskExt(true) != WebDialogResult.OK) return;
}
DAC class:
[PXVirtual]
[Serializable]
public class LabelZZZ : IBqlTable
{
#region Qty
[PXDecimal(4)]
[PXUnboundDefault(TypeCode.Decimal, "0.0000")]
[PXUIField(DisplayName = "Qty")]
public virtual Decimal? Qty { get; set; }
public abstract class qty : IBqlField { }
#endregion
#region Finish
[PXBool]
[PXUIField(DisplayName = "Finish Parents")]
public virtual bool? Finish { get; set; }
public abstract class finish : PX.Data.BQL.BqlBool.Field<finish> { }
#endregion
}