Modify record with RECORDID

vijay4398
Member Posts: 35
Hi Experts,
I wish to find and modify a record based on the RECORDID i have in the text variable . Like for GL Entry i have
text1:= 'Entry No. : 12353' in the text variable . while trying to find this record i am doing the below
recref.OPEN(17);
evaluate(recid,text1);// Here it doesn't convert it right , gets something like 'Entry No. Amount Buffer : 12353'
recref.GET(recid);
recref.SETTABLE("GL ENTRY");
Message('%1',"GL ENTRY"."Posting Date");
Could anyone guide me with this ,Where i am wrong.
Thanks in Advance,
Vijay
I wish to find and modify a record based on the RECORDID i have in the text variable . Like for GL Entry i have
text1:= 'Entry No. : 12353' in the text variable . while trying to find this record i am doing the below
recref.OPEN(17);
evaluate(recid,text1);// Here it doesn't convert it right , gets something like 'Entry No. Amount Buffer : 12353'
recref.GET(recid);
recref.SETTABLE("GL ENTRY");
Message('%1',"GL ENTRY"."Posting Date");
Could anyone guide me with this ,Where i am wrong.
Thanks in Advance,
Vijay
0
Comments
-
Try GETTABLE instead of SETTABLE0
-
The Error comes on this statement
recref.GET(recid);
as i understand ,here recid has wrong value(so its not able to find the record) : how could i get the value that i have in text variable change to type recid as evaluate is getting me wrong result..
Any other way to do this
Thanks,
Vijay0 -
Step 1, text1 should be 'G/L Entry: 12353' for it to work the way you want it.
Step 2 should be: recref := recid.GETRECORD;0 -
Just change the text1 to 'G/L Entry: 12353' or '17:12353'.
It will work0
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