How to find the record using RecordRef.

aman_mbs
Member Posts: 158
Dear All,
I am accessing the data from Access to Navision, I need to Find the record with the fieldREf data type Like we use the get or setrange command in the navision to find the record.
I will make a temporary variable of RecordREf and then Find the record in it.I dont know how to find the record using the recordREf.
CREATE(varRecordSet);
varRecordSet.Open(StrSql, Constr);
varRecordSet.MoveFirst;
RecordVar.OPEN(50002);
REPEAT
varFldCollection := varRecordSet.Fields;
// Here I will make the temp recordRef and find the Item in it.
IF FORMAT(varFldCollection.Item(1).ActualSize) <> FORMAT(0) THEN
ltModelItem.VALIDATE("Item Description", varFldCollection.Item(1).Value);
IF FORMAT(varFldCollection.Item(2).ActualSize) <> FORMAT(0) THEN
ltModelItem.VALIDATE("Design No", varFldCollection.Item(2).Value);
ltModelItem.VALIDATE("Product Type", varFldCollection.Item(3).Value);
I am accessing the data from Access to Navision, I need to Find the record with the fieldREf data type Like we use the get or setrange command in the navision to find the record.
I will make a temporary variable of RecordREf and then Find the record in it.I dont know how to find the record using the recordREf.
CREATE(varRecordSet);
varRecordSet.Open(StrSql, Constr);
varRecordSet.MoveFirst;
RecordVar.OPEN(50002);
REPEAT
varFldCollection := varRecordSet.Fields;
// Here I will make the temp recordRef and find the Item in it.
IF FORMAT(varFldCollection.Item(1).ActualSize) <> FORMAT(0) THEN
ltModelItem.VALIDATE("Item Description", varFldCollection.Item(1).Value);
IF FORMAT(varFldCollection.Item(2).ActualSize) <> FORMAT(0) THEN
ltModelItem.VALIDATE("Design No", varFldCollection.Item(2).Value);
ltModelItem.VALIDATE("Product Type", varFldCollection.Item(3).Value);
Aman Kumar Gupta
0
Comments
-
Hello thanks for the speedy reply
i will make a temp recordset RecordVar.OPEN(50002, TRUE); then fill this temp recordref and the i have to find the items it this record set hw will i do this. RecordVar is the variable of recordREf.Aman Kumar Gupta0 -
ok...if now i understood well, you mean: you have rref evaluated like this
1 my first
2 my second
3 my third
and you want to output 1,2 and 3...don't you?
if this is your need, then see this
http://www.mibuso.com/forum/viewtopic.php?f=5&t=212950
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