Code to fetch records from table

Hi…

I want to fetch some records in a table and want to display in a report… Can anyone help me…

Are you using Dynamics NAV or Dynamics AX?

Dynamics Nav

Good…

May I know what did you try?

I took two fields from vendor table in a report … through code i want to display those fields in a report…May i know wat is the code behind that?

Do ypu know how to use GET,SETRANGE/SETFILTER,FINDSET/FINDFIRST?

No…

Please read some basic technical documents

or simply select Help–>C/SIDE reference guide and search for above terms…

Plz send me the code

I can Directly come to your place and write the code for you If you can bare the expenses [ap]

Haha…I know the usage of those properties…let me know the code mohana.

I will definitly help you but let me know what did you try…

Please try something before getting full code from forum…

What dataitem you have took in report?

I m assuming Purchase Header

Take vendor as record variable

Varialbe Name :- recVendor

If recVendor.get(Purchase Header.“Buy From Vendor No”) THEN ;

Once you written this code then u can display any record of vendor table on ur report

But you need to modify the code according to ur requirement

If you know those properties then you should have been able to figure it out yourself.[:^)]

Best to keep this link close at hand:

http://msdn.microsoft.com/en-us/library/dd301468.aspx