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.
It was simple..., I needed to put Rec."No." instead of MyCustomer."No."
I have already check this, but I don't see anything that can help me :/
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156