Sort data frm Page in Visual Studio

MalhodyMalhody Member Posts: 14
edited 2009-03-27 in NAV Three Tier
Hey Guys,

i'm getting data from the Page "Contact Card" sorted by No. . What do i have to do, to sort in visual studio the ContactCard[] by other criterias???

thx and greetz

Comments

  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    You cannot ask the CRUD functions on the page to sort the data for you - that feature is not build (yet - don't know if it will)
    If you want to have data returned sorted in a specific way, you should create a function with a VAR parameter of the type XML Port - which then can return the data you want.

    Or sort the data client side :?
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • mbjmbj Member Posts: 63
    Change the PageType to Card. Create af global variable and add then variable to the page as a Field. Then the variable is available in signature of the web service functions and you can read the value in the page on the trigger OnAfterGetRecord().

Sign In or Register to comment.