Copying RecordVar toSingle RecordVar

NR
Member Posts: 78
I have two recordsets filtered on different fields of an identical table.
Is it possible to have it copied to a third recordset with record source of that same table.
For eg. I have 2 Record Variable of Item table
ItemRec1 - Which is filtered on No. 1000
ItemRec2 - which is filtered on No. 1100
Now, what is the appropriate way to copy it to a third Record Variable ItemRec3
Is it possible to have it copied to a third recordset with record source of that same table.
For eg. I have 2 Record Variable of Item table
ItemRec1 - Which is filtered on No. 1000
ItemRec2 - which is filtered on No. 1100
Now, what is the appropriate way to copy it to a third Record Variable ItemRec3
0
Comments
-
It means you want to have recordvar filtered to 1000 AND 1100? Or you want to have 1000 OR 1100???0
-
I want to have a recordset filtered on 1000 and 1100.
Note that this is just an example to give a better picture of my query.
Actually, the recordsets i am having has different filters but i want both in a single recordset.
And it is not possible for me to filter it on the same recordset.
thanks in advance0 -
1) If you want to apply both filters together - intersection of the filters - (but in this example will be the result empty table, because there is no record with no. 1000 AND 1100) you can use Filtergroup to set one filter set in one group and another set in another filtergroup. In this case, all filters will be effective
2) If you want to apply both filters with OR between them (union of the filters) - there is no easy way. You need some process which will "process" there filters and will create the result filter...
There is no simple COPY solution for that...0 -
Kine, I ll be a more precise about my query.
Actually, I have a Record Variable with source as X table.
Now , I want to filter it as follows:
1. Posting Date = 010106D and Time = 7:00:00 AM .. 11:59:00 PM
2. Posting Date = 020106D and Time = 00:00:00 AM .. 7:00:00 AM
What I am trying to acheive is filter on the records starting from 1st Jan '06 after 7 AM in the morning to 2nd Jan'06 7 AM morning.
This is the Total Shift for one day.
Hence, I used two record variables with the above filters.
To copy it to a third record variable is a problem.
Can you suggest me the suitable options .....0 -
Some more question:
What do you want to do with the "third" variable after you "join" the two records? You want to go through all the records and process them?0 -
Yes I want to process the records in the third variable.
The only reason I am taking a third variable is to have the filters(data) of both the record variables in a single record variable.
Need not necessarily take a third variable, if there is some other option.
Or is it possible to append the filter in ItemRec2 to the ItemRec1, so that I have filters(data) in ItemRec10 -
Thanks kine....
i got the solution from the link provided ....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