Have Lines selected with code

DynamicsSol
Member Posts: 24
Hi there,
Is there a way to have lines selected with code?? So instead of pressing the left Bar list ( that makes the whole line go blue)of a listform you could use a button which will select the line(s) and then based on setselectionfilter have those records run through a code..
I can not find anything that emulates the pressing of the left Bar , even tried the sendkey commands.
Thanks
Is there a way to have lines selected with code?? So instead of pressing the left Bar list ( that makes the whole line go blue)of a listform you could use a button which will select the line(s) and then based on setselectionfilter have those records run through a code..
I can not find anything that emulates the pressing of the left Bar , even tried the sendkey commands.
Thanks
0
Comments
-
1.Edit-->Select? (Alt+E+S)0
-
DynamicsSol wrote:Hi there,
Is there a way to have lines selected with code?? So instead of pressing the left Bar list ( that makes the whole line go blue)of a listform you could use a button which will select the line(s) and then based on setselectionfilter have those records run through a code..
I can not find anything that emulates the pressing of the left Bar , even tried the sendkey commands.
Thanks
You can also use the MARK function. So when you press a button set the MARK. Then when you use a function, use the function MARKEDONLY, so it will set a filter on all the lines that are marked. And you can do whatever you want with the lines.Best Regards,
Remco van de Ven0 -
Hi there,
SELECT: Wondering if it is also possible to select multiple lines this way ???
Using MARK: well can not seems to get that to work, since the lines which are needed to be selected are in a subform and all the form needs to be operated as a touchscreen. I tried something like:
currform.<subform>,getrecord<varrecord> ;
Varrecord.mark;
to have the lines marked, but when I press a button to goto different line in the form the mark is gone, probably cause the subform is using a different instance of table or something.. HOw to get the marking stick when using a subform in a touchscreen environment..0 -
UpdateL
I created a function in the subform:
Par: SalesLines2:record "Sales line"
Rec:=SalesLines2;
MARK(true);
Currform.update(false);
I call this function from the Main form and the mark is set on that record, but when I excecute the function( touchscreen) also from the main form to goto a different record then the mark seems to be gone ...
Besides a MARK(false) what else can trigger Nav to unmark a record???0 -
DynamicsSol wrote:UpdateL
I created a function in the subform:
Par: SalesLines2:record "Sales line"
Rec:=SalesLines2;
MARK(true);
Currform.update(false);
I call this function from the Main form and the mark is set on that record, but when I excecute the function( touchscreen) also from the main form to goto a different record then the mark seems to be gone ...
Besides a MARK(false) what else can trigger Nav to unmark a record???
have you set MARKEDONLY(TRUE) after using MARK(TRUE) ?
i think you don't need Update(false), because dynamics already auto-refresh page / form when filter such as MARK triggered
hope it works.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