Retrive all records from a Table

Chetan
Member Posts: 15
My Task is very simple,
1. Retrieve all the records from the Table(G/L Entry)
2. Use SetFilter on the required field which is not PrimaryKey
3. Check whether record/local variable it is empty or not.
I am struck with first point, I am unable to retrieve all the records.
GET will require Primary Key as the value
Please help me on how to retrieve all the records from G/L Entry table. Many Thanks for your help in advance.
1. Retrieve all the records from the Table(G/L Entry)
2. Use SetFilter on the required field which is not PrimaryKey
3. Check whether record/local variable it is empty or not.
I am struck with first point, I am unable to retrieve all the records.
GET will require Primary Key as the value
Please help me on how to retrieve all the records from G/L Entry table. Many Thanks for your help in advance.
Chetan
Bangalore
Bangalore
0
Comments
-
-
Hi Mohana,
Thanks for your message. I am new to NAV.
I was under impression that we have to retrieve all the records once the new variable is created. Now I understood that it was not necessary.Chetan
Bangalore0 -
-
First you have to set filter on non primary key using SETRANGE or SETFILTER
then use IF recordvarible.ISEMPTY THEN to check whether recordvariable is empty or not.1 -
Got it guys, ThanksChetan
Bangalore0 -
If you just want all the records then all you need to do is declare the variable glentry and then do
glentry.findset();0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions