MARK
navuser1
Member Posts: 1,334
Hi All,
Plz See the code in Screen shot...
Line 1 marks five different Items, but Line 2 opens the Item List form only with the One Item. This is the issue ???
Plz See the code in Screen shot...
Line 1 marks five different Items, but Line 2 opens the Item List form only with the One Item. This is the issue ???
Now or Never
0
Comments
-
](*,)Now or Never0
-
:roll:Now or Never0
-
navuser1 wrote:Hi All,
Plz See the code in Screen shot...
Line 1 marks five different Items, but Line 2 opens the Item List form only with the One Item. This is the issue ???
Hi
Before the markedonly, remove the "item No." filter applyed on previus loop...
Something like:
...
RecItem.SETRANGE("No.");
RecItem.MARKEDONLY(TRUE);
...
Bye
MatteoReno Sistemi Navision Developer0 -
In first loop you've marked several records and then you have them. Where is the problem?
I assume you have to add something like "if stdurchline.remaining qty <> 0 then do... mark(true)"...0 -
You waited a whole 60 seconds to bump the topic. Were you expecting a faster response time? [-(David Singleton0
-
Line 1 does not mark 5 records, you are only finding 1 record, so I would expect the list form to only show one record. You will have to loop through all records in the filter and mark all of them.0
-
Wait, hold on, eto is on the right track. You should do a GET on the Item table, because you know the item number. Then right before you do MARKEDONLY, you should do a RESET first. The issue is that you have a filter on the item number, so by the time that you are showing the form, you have a filter on the item number, and MARKEDONLY=TRUE. Do a RESET to remove all filters, then do MARKEDONLY, and then you should see all marked items in your list.0
-
erm... DON'T do a RESET... RESET clears all marks !0
-
Oh it does? Oops, my bad :oops: I never use MARK myself, I would do this with a temporary record variable.
Then you need to clear the filter on the "No." field before the MARKEDONLY.0 -
Thanks to all....
If I use the code below.......
IF ItemRec.GET( StdPurchLine."No.") THEN.... instead of the SETRANGE.
This will solve my issue.........
But It would be more safer to use the Temporary Table concept instead of the MARK Function (As Daniel mentioned )
Now or Never0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

