Switch order to Descending in ListPage for WebClient with pageextension
ndbcs
Member Posts: 33
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
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
Best Answer
-
Hi,
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.
Thomas5
Answers
-
you can switch the order on the client over the No. column , do you see small up or down arrow?United Kingdom0
-
Yes, thanks.
But I want to change it by code.
So it's the default for everyone.0 -
Have you tried pagecustomisation?United Kingdom0
-
No, I haven't.
Is there anything I can do with pagecustomization that can not be done with pageextension?0 -
sorry just thinking out loud. This is Something I have not done. you could maybe add bit of code on page triggers using events. Try different things you might achieve something.United Kingdom0
-
Today I tried again without luck.
Has anyone a solution for changing the sortorder of a list page in BC webclient permanently?0 -
Hi,
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.
Thomas5 -
Hi Thomas,
thanks a lot.
Works like expected.
best regards
Tobias
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
