From RecRef to Rec

jordi79
Member Posts: 280
I know how to get from Rec to RecRef. Using RecRec.SETABLE(Rec).
My problem would be, how to get from RecRef back to Rec? The reason is that I did some processing in RecRef, and now I want the processed results back in Rec, so that I can pass it to a function. I know I can of course change the function to take in RecRef instead of Rec, but that would be a lot of work.
Any easy way to do this? I have thought of assigning each field in RecRef to Rec in lines and lines of codes. But this solution seems silly. Any other way to perform this? Help appreciated!
My problem would be, how to get from RecRef back to Rec? The reason is that I did some processing in RecRef, and now I want the processed results back in Rec, so that I can pass it to a function. I know I can of course change the function to take in RecRef instead of Rec, but that would be a lot of work.
Any easy way to do this? I have thought of assigning each field in RecRef to Rec in lines and lines of codes. But this solution seems silly. Any other way to perform this? Help appreciated!
0
Answers
-
No, there is no other way round.jordi79 wrote:I know I can of course change the function to take in RecRef instead of Rec, but that would be a lot of work.jordi79 wrote:I have thought of assigning each field in RecRef to Rec in lines and lines of codes."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
The recordreference has 2 funtions : GETTABLE and SETTABLE.
If one is to transfer a record to a recordreference, then the other ...
BTW: the other does NOT transfer filters. Only values.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Yes, but RecordRef.SETTABLE(Record) doesn't set the filter from your RecordRef to your Record and it does even erase the filter on your RecordRef. So, you can't use in the way you use a Record as a parameter. Or did I miss something?"Money is likewise the greatest chance and the greatest scourge of mankind."0
-
i think u r missing the question here. both SETTABLE and GETTABLE is used to get RecRef from Rec. I need something that will somehow get data from RecRef to Rec, not from Rec to RecRef.0
-
jordi79 wrote:i think u r missing the question here. both SETTABLE and GETTABLE is used to get RecRef from Rec. I need something that will somehow get data from RecRef to Rec, not from Rec to RecRef.SETTABLE Function (RECORDREF)
Causes a record variable to use the same table instance as a recordref variable."Money is likewise the greatest chance and the greatest scourge of mankind."0 -
Hi einsTeIn.NET,
My apologies. You are correct. GETTABLE is used to get data from Rec to RecRef, and SETTABLE is used to get data from REcRef to Rec.
In my NAV version, the description for both GETTABLE and SETTABLE were the same. This led me to believe both the functions were similar. Description for help files below:
GETTABLE (RecordRef)
Use this function to make a recordref variable use the same table instance as a record variable.
SETTABLE (RecordRef)
Use this function to make a recordref variable use the same table instance as a record variable.0 -
how, how do i mark this topic as solved?0
-
1. Edit your first message
2. Find the field "Attribute", below the field "Subject"
3. Set this field to [Solved]
4. Submit your posting
RegardsDo you make it right, it works too!0 -
Yes, I think the online help was wrong up to 5.01, but it has been corrected in 2009.
Never mind! I also missunderstood you. Because you saidjordi79 wrote:Using RecRec.SETABLE(Rec).
...
now I want the processed results back in Rec"Money is likewise the greatest chance and the greatest scourge of mankind."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