Hey guys,
I've encountered a problem when I base a CalcFormula on Sales Lines, where it no longer triggers OnAssistEdit() on Page fields that referer to this value.
The value shown on the field of the Page is correct, but when I click it to open an Assisted Edit Page it skips the trigger OnAssistEdit(), and instead just opens the standard List Page Sales Lines (516, List)
Can anyone help me confirm that this is an actual issue?
Here's some sample code:
tableextension 50305 SalesLineExtension extends /Sales Line/
{
fields
{
field(5030590; Fees; Decimal)
{
CalcFormula = Sum(/Sales Line/./Unit Price/ where(/Document No./ = field(/Document No./), /Line No./ = field(/Line No./), /Sell-to Customer No./ = field(/Sell-to Customer No./)));
Caption = 'Fees';
FieldClass = FlowField;
Editable = false;
}
}
}
pageextension 50405 SalesInvoiceSubformExtension extends /Sales Invoice Subform/
{
layout
{
addafter(/No./)
{
field(Fees; Rec.Fees)
{
Caption = 'Fees';
Editable = false;
ApplicationArea = All;
Width = 7;
trigger OnAssistEdit()
begin
Message('OnAssistEdit hit!');
end;
}
}
}
}