Switch order to Descending in ListPage for WebClient with pageextension

ndbcsndbcs 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

Best Answer

Answers

  • Developer101Developer101 Member Posts: 538
    you can switch the order on the client over the No. column , do you see small up or down arrow?
    United Kingdom
  • ndbcsndbcs Member Posts: 33
    edited 2019-05-06
    Yes, thanks.
    But I want to change it by code.
    So it's the default for everyone.
  • Developer101Developer101 Member Posts: 538
    Have you tried pagecustomisation?
    United Kingdom
  • ndbcsndbcs Member Posts: 33
    No, I haven't.
    Is there anything I can do with pagecustomization that can not be done with pageextension?
  • Developer101Developer101 Member Posts: 538
    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 Kingdom
  • ndbcsndbcs Member Posts: 33
    Today I tried again without luck.
    Has anyone a solution for changing the sortorder of a list page in BC webclient permanently?
  • ndbcsndbcs Member Posts: 33
    Hi Thomas,

    thanks a lot.
    Works like expected.

    best regards
    Tobias
Sign In or Register to comment.