in

Dynamics User Group

Since 1995 - The Microsoft Dynamics Online User Community

get another table's value to show it in subform

Last post 08-26-2008 18:38 by DaveT. 1 replies.
Page 1 of 1 (2 items)
Write a New Post Sort Posts: Previous Next
  • 08-25-2008 13:01

    get another table's value to show it in subform

    hi

    for example i have two tables like this:

    table1: productid productname

    table2: id productid username  

    i am new in navision. suppose that i have a form and init a subform. this subform gets its values from table 2 but i want to show table2's productid as productname. How can i get productname value to that field in the subform. Or is there any other good solutions to do that?

     

    • Post Points: 20
  • 08-26-2008 18:38 In reply to

    • DaveT
    • Top 100 Contributor
      Male
    • Joined on 05-06-2008
    • Dublin
    • Posts 184
    • Points 2,360

    Re: get another table's value to show it in subform

    Hi,

     

    Not sure what you want exactly but if you create one form (based on table 2) and a record variable for table 1. then in the onaftergetcurrrecord trigger use

    if table1.get(table2.productid ) then   // if is to stop error if record does not exist

       table1.init;

    then add a textbox with source expression on table1.productname. 

    Dave Treanor

    Dynamics Nav Add-ons
    www.simplydynamics.ie/Addons.html
    • Post Points: 5
Page 1 of 1 (2 items)


Copyright Dynamics User Group, 1995-2008, all rights reserved. This website and user group are independent and not affiliated with the Microsoft Corporation.