List Page

jsshivalikjsshivalik Posts: 67Member

In a list Page i have Source Table - Sales Line & Source Table Temporary = Yes . I want value of 2 fields from another table Sales header.
How it can be done.


Best Answer


  • Developer101Developer101 Posts: 352Member
    edited 2019-05-20
    Declare global variable of the List page - SalesHeader as record "Sales Header"

    write code in the OnAfterGetRecord of the page: IF SalesHeader.GET("Document Type","Document No") THEN SalesHeader.INIT

    In the Repeater group of page : do SalesHeader.Field1 and SalesHeader.Field2

    United Kingdom
  • jsshivalikjsshivalik Posts: 67Member
    edited 2019-05-20

    It is not displaying value . It shows blank field. When i write only this code then it works

    IF SalesHeader.GET("Document Type","Document No") THEN ;

    Why it does not work when i write

  • krikikriki Posts: 8,768Member, Moderator
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
    NAV TechDays 2019: 21 & 22 November 2019, Antwerp (Belgium)
Sign In or Register to comment.