How to filter Sales List for different no. series

mkpjsr
Member Posts: 587
Hi all,
I am using two different no series in sales invoices, so whenever i use the sales list, data from both no. series are visible.
Here i want to create two copies of Sales List and filter both the sales list for a particular no. series only, so that i can show only one no. series in a sales list and rest in another sales list.
Is is possible, if yes then how can we do this
Can anybody guide me.
I am using two different no series in sales invoices, so whenever i use the sales list, data from both no. series are visible.
Here i want to create two copies of Sales List and filter both the sales list for a particular no. series only, so that i can show only one no. series in a sales list and rest in another sales list.
Is is possible, if yes then how can we do this
Can anybody guide me.
0
Comments
-
-
Add a filter for this field in 2 list forms.
Filter1 := No. Series 1
Filter2 :=No. Series 2CA Sandeep Singla
http://ssdynamics.co.in0 -
mkpjsr wrote:Here i want to create two copies of Sales List
What if you change the sales list form by adding a tab control from the toolbox around the Sales List table box.
Then you can add two tabs one for each Number series. Each tab will contain the Sales List tablebox but filtered to show one one or the other number series.
Should be easy
Another one could be Create a Global Variable called "No Series Filter" type OPTION
Options of "Series 1" & "Series 2" or whatever name you need "Jobs" & "Work Orders" for example.
a textbox at the bottom of the sales list form with sourcexp= "No Series Filter".
Then On (example)OnAfterValidate() IF "No Series Filter" = "No Series Filter"::"Series 1" THEN BEGIN RESET; SETRANGE("No.",'A1-*'); END; IF "No Series Filter" = "No Series Filter"::"Series 2" THEN BEGIN RESET; SETRANGE("No."'A2-*'); END; CurrForm.UPDATE;
Don't forget Glue = Bottom
**best to use the case statement above^ instead of if
Just some ideas 8)
Ooops Edit: Since the list form is usually uneditable then the textbox at the bottom will not allow you to make any changes therfore if you add
OnActivate()
CurrForm.EDITABLE(TRUE);
OnDeactivate()
CurrForm.EDITABLE(FALSE);
on the textbox it will work fine.
We use this "filter box" for commonly used filters on our Item List - But will work on any list See pic0 -
Savatage wrote:mkpjsr wrote:Here i want to create two copies of Sales List
What if you change the sales list form by adding a tab control from the toolbox around the Sales List table box.
Then you can add two tabs one for each Number series. Each tab will contain the Sales List tablebox but filtered to show one one or the other number series.
Should be easy
Another one could be Create a Global Variable called "No Series Filter" type OPTION
Options of "Series 1" & "Series 2" or whatever name you need "Jobs" & "Work Orders" for example.
a textbox at the bottom of the sales list form with sourcexp= "No Series Filter".
Then On (example)OnAfterValidate() IF "No Series Filter" = "No Series Filter"::"Series 1" THEN BEGIN RESET; SETRANGE("No.",'A1-*'); END; IF "No Series Filter" = "No Series Filter"::"Series 2" THEN BEGIN RESET; SETRANGE("No."'A2-*'); END; CurrForm.UPDATE;
Don't forget Glue = Bottom
Just some ideas 8)
Ooops Edit: Since the list form is usually uneditable then the textbox at the bottom will not allow you to make any changes therfore if you add
OnActivate()
CurrForm.EDITABLE(TRUE);
OnDeactivate()
CurrForm.EDITABLE(FALSE);
on the textbox it will work fine.
We use this "filter box" for commonly used filters on our Item List - But will work on any list See pic
Hi thanx for the reply,
i tried the second approach, here after selecting the option it is showing only,
A1-* and A2-* and not the actual data
what may be the reasonMarkandey Pandey0 -
Markandey Pandey wrote:i tried the second approach, here after selecting the option it is showing only,
A1-* and A2-* and not the actual data
what may be the reason
The reason is I don't know what your # series looks like or what it starts with..
A1-* & A2-* are just for example purposes.0 -
Savatage wrote:Markandey Pandey wrote:i tried the second approach, here after selecting the option it is showing only,
A1-* and A2-* and not the actual data
what may be the reason
The reason is I don't know what your # series looks like or what it starts with..
A1-* & A2-* are just for example purposes.
i know that, in our case the number series is like
JOB-* and SO-* , so i have written
SETRANGE("No.",'SO-*);0 -
so did you solve your problem? Did setrange work? try setfilter in not.0
-
Savatage wrote:so did you solve your problem? Did setrange work? try setfilter in not.
i tried using setfilter and its working also but while i am scrolling the list form ,its giving a error
"Sales Header cannot be Inserted in this form"Markandey Pandey0 -
Markandey Pandey wrote:Savatage wrote:so did you solve your problem? Did setrange work? try setfilter in not.
"Sales Header cannot be Inserted in this form"
you probably see this when you scroll all the way to the bottom and a *new line appears...
Change the proprerty on the form "INsert Allowed" to NO will solve that problem.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