Sales Cue, new Sales Orders /month

263985f0a2
Member Posts: 5
Hello,
is it possible to create a cue that show´s all the new sales orders in the active month?
somethin like this...
Count("Sales Header" WHERE (Document Date=FIELD(Date Filter2)))
...but with this
Count("Sales Header" WHERE (Document Date=FIELD(this month)))
is it possible to create a cue that show´s all the new sales orders in the active month?
somethin like this...
Count("Sales Header" WHERE (Document Date=FIELD(Date Filter2)))
...but with this

Count("Sales Header" WHERE (Document Date=FIELD(this month)))
0
Answers
-
Yes, of course.
1. Create a FlowFilter field (let's say you call it "this month") in the Sales Cue table, datatype = date
2. Create a Flowfield (e.g. "Orders This Month") in the same table with Calcformula: Count("Sales Header" WHERE (Document Date=FIELD(this month)))
3. Set the correct filter on the 'this month' field:
SalesCue.SETRANGE("this month",CALCDATE(TODAY,'<-CM>'),CALCDATE(TODAY,'<CM>'));
4. SalesCue.CALCFIELD("Orders This Month");
Jan Veenendaal0 -
Hello Jan,
thank you for your help! This is how far i came.
1. I created a new field with the field class flow filter, data type: date.
2. I created a new field with the field class flowfield, data type: integer, and following filter:
CalcFormula Count("Sales Header" WHERE (Document Date=FIELD(this month)))
3. I don´t know, how to filter in a field from the data type date
4. Same thing here, would you be so kind and tell me a little more detailled?
Thank´s a lot!
A stranger! :P0 -
Open the page
add SalesCue.SETRANGE("this month",CALCDATE(TODAY,'<-CM>'),CALCDATE(TODAY,'<CM>'));
in OnOpen Page trigger.1 -
Ah ok i see, thank you very much!
seems like my license doesn´t allow page designcan´t open C/AL Code
0 -
probably you are using Customer license.
you need partner license to do this.0 -
I agree with MohanaJan Veenendaal0
-
Ok thank you very much for your help! I will aks my nav partner if it´s possible to get the partner license!0
-
mohana_cse06 wrote: »Open the page
add SalesCue.SETRANGE("this month",CALCDATE(TODAY,'<-CM>'),CALCDATE(TODAY,'<CM>'));
in OnOpen Page trigger.
When I am putting this code, system generate some error.
Please check in attachment.
0 -
The two parameters of CALCDATE should be switched: first the text (dateformula), then the date:
SalesCue.SETRANGE("this month",CALCDATE('<-CM>',TODAY),CALCDATE('<CM>',TODAY));
[ you could check the online help for the complete definition of the CALCDATE function ]
Jan Veenendaal0
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