Hello BC-Extenion-Experts,
I want to switch the sort order to descending for some list pages like Sales Quotes via page extensions.
I tried to change it by code within the OnOpenPage Trigger.
But I wasn't able to get it working.
I tried everything I could think of.
SetAscending, SetTableView, SetRecord, CurrPage.Update(false), FindFirst ...
While GetAscending("No.") returns false, the WebClient shows records still in ascending order.
I tried it on the current build for the spring release.
Any ideas?
thanks
ndbcs
0
Answers
But I want to change it by code.
So it's the default for everyone.
Is there anything I can do with pagecustomization that can not be done with pageextension?
Has anyone a solution for changing the sortorder of a list page in BC webclient permanently?
I solved this request with an Event function in a codeunit:
[EventSubscriber] SetQuoteDescending(VAR Rec : Record "Sales Header")
Rec.ASCENDING(FALSE);
The new function subscribes to function OnOpenPageEvent of Page 9300 (Sales Quotes)
Hope this helps.
Thomas
thanks a lot.
Works like expected.
best regards
Tobias