Hi,
I want to display dynamically the predefined value of the customer number on the filter of the page Item Ledger Entries by an page extension from Customer Card.
I have done the button and the filter but i can't display my value.
It works when it's a static value.
Can someone help me ?
There is my code and some exemple of my issue.
trigger OnAction() var varFilterPageBuilder: FilterPageBuilder; ItemLedgerEntry: Record "Item Ledger Entry"; MyCustomer: Record Customer; begin varFilterPageBuilder.AddTable('Ecriture Comptables Article Table', ItemLedgerEntry.RecordId.TableNo); varFilterPageBuilder.AddFieldNo('Ecriture Comptables Article Table', ItemLedgerEntry.FieldNo("Source No."), MyCustomer."No."); varFilterPageBuilder.PageCaption := 'Ecritures Comptables Article Filtre'; if varFilterPageBuilder.RunModal() then begin ItemLedgerEntry.SetView(varFilterPageBuilder.GetView('Ecriture Comptables Article Table')); Page.Run(Page::"Item Ledger Entries", ItemLedgerEntry); end; end;
Result to:
varFilterPageBuilder.AddFieldNo('Ecriture Comptables Article Table', ItemLedgerEntry.FieldNo("Source No."), 'Test');
But when we put static value it result to:
And what I want to take is the Customer No from the page Customer Card.