Select Multiple rows
                
                    shibily                
                
                    Member Posts: 89                
            
                        
            
                    Hi all,
I would require to select mutiple rows from a list and perfom some action based on the selected rows . Is there any work around for that? The List Box in the tool Box is always disabled.
Thanks in advance
Shibily
                I would require to select mutiple rows from a list and perfom some action based on the selected rows . Is there any work around for that? The List Box in the tool Box is always disabled.
Thanks in advance
Shibily
0                
            Answers
- 
            So for example, the user would select some salespersons (from a list of all salespersons), press a button, and see a list of all the orders for the selected salespersons?
The user could mark the records (with Ctrl + F1), and the SalespersonRec.MARKEDONLY (correction: Salesperson.SETSELECTIONFILTER - see next post) command will restrict your view to just the marked records.
Is that the sort of thing you need?
By the way, a quick search shows that apparently there is no Listbox functionality in Navision (even if there's a listbox icon in the toolbox):
http://mibuso.com/forum/viewtopic.php?f ... it=listboxAlastair Farrugia0 - 
            
not completely true: you can achieve the result holding down ctrl button, clicking the rows you want, press the "mycommandbutton" and under that button use the SETSELECTIONFILTER instruction (search online help)...be aware of marks, they're quite tricky sometimes...afarr wrote:So for example, the user would select some salespersons (from a list of all salespersons), press a button, and see a list of all the orders for the selected salespersons?
The user could mark the records (with Ctrl + F1), and the SalespersonRec.MARKEDONLY command will restrict your view to just the marked records.
Is that the sort of thing you need?
By the way, a quick search shows that apparently there is no Listbox functionality in Navision (even if there's a listbox icon in the toolbox):
http://mibuso.com/forum/viewtopic.php?f ... it=listbox0 - 
            Thanks for the correction, Belias - I've modified my post accordingly.Alastair Farrugia0
 - 
            Hi,
I bound the form with Item Ledger Entry table and i selected the rows by using Cntrl+F1 and then used the SETSELECTIONFILTER .
ie on the Button Push i have written the code
CurrForm.SETSELECTIONFILTER(Rec);
MESSAGE('%1',"Item No.");
But i am not getting the message for the message for the selected items.
Anything else need to be added?
Shibily0 - 
            read carefully the help online:
means that you don't have to mark the records, and that the only thing nav does, is to mark the records you selected and set the "filter" as if you do a MARKEDONLY(TRUE) instruction.Notes the records that the user has selected on the form, marks those records in the table specified, and sets the filter to "marked only".
So.....
you have just to select the records holding the ctrl button (if necessary) and click on the left side of the wanted rows in order to make them blue.
moreover, you can't expect to have a result if you don't do a FIND instruction, at least...you have just set a filter on marks, but if you don't find at least one record, you will never get any value, just as if you do:customer.setrange(name,'Freddy Krueger'); message(customer.name);
0 - 
            Belias wrote:read carefully the help online:
means that you don't have to mark the records, and that the only thing nav does, is to mark the records you selected and set the "filter" as if you do a MARKEDONLY(TRUE) instruction.Notes the records that the user has selected on the form, marks those records in the table specified, and sets the filter to "marked only".
So.....
you have just to select the records holding the ctrl button (if necessary) and click on the left side of the wanted rows in order to make them blue.
moreover, you can't expect to have a result if you don't do a FIND instruction, at least...you have just set a filter on marks, but if you don't find at least one record, you will never get any value, just as if you do:customer.setrange(name,'Freddy Krueger'); message(customer.name);
Thank you,
It worked for me.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