String to get a record
 
            
                
                    amang                
                
                    Member Posts: 14                
            
                        
            
                    Hi,
is it possible to get a record with a string of pk-values?
something like this:
string: 'Quote,1002'
SalesHeader.GET(string);
This does not work, because "can´t convert string into option" (error). Is there any solution for this? (recref does not exist in 2.60...)
thanks!
                is it possible to get a record with a string of pk-values?
something like this:
string: 'Quote,1002'
SalesHeader.GET(string);
This does not work, because "can´t convert string into option" (error). Is there any solution for this? (recref does not exist in 2.60...)
thanks!
0                
            Comments
- 
            Are you really under Financials (2.00 - 2.60) or in a later version?
 In the later Version take a look on Rec.GetPosition() / Rec.SetPosition()Do you make it right, it works too!0
- 
            
 And if you are, I would recommend (at least) a technical upgrade to be able to use GETPOSITION/SETPOSITION.garak wrote:Are you really under Financials (2.00 - 2.60) or in a later version?
 In the later Version take a look on Rec.GetPosition() / Rec.SetPosition()Regards,Alain Krikilion
 No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
- 
            If you really have to do it under Financials (2.60) - then your only possiblity is to use filters.
 Split you string into 2 - one for "Document Type" and one for "No.", and then use them in the following way:- 
string1 := 'Quote';
string2 := '1002';
SalesHeader.setfilter("Document Type",string1);
SalesHeader.setfilter("No.",string2);
SalesHeader.FIND('-');
 
 In this way you don't have to convert the option field.
 As garak & kriki allready has mentioned - in this version you are not able to use GETPOSITION/SETPOSITION.
 Therefore your only way is to use filters.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
- 323 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


