FlowField filter from Source Table

MLoacher
Member Posts: 8
Hello Everybody,
I want to create a Flow Field in the Sales Price Table which gives back the Cross reference no. only for Customers from the Item Cross Reference.
For this I user the following in CalcFormula:
"Lookup("Item Cross Reference"."Cross-Reference No." WHERE (Item No.=FIELD(Item No.),Variant Code=FIELD(Variant Code),Cross-Reference Type=FIELD(Sales Type),Cross-Reference Type No.=FIELD(Sales Code)))"
My Problem is now, that with the Table Filter "Cross-Reference Type=FIELD(Sales Type)" I get an empty value. I think this is because in the Sales Price Table the Sales Type option for customer is 0 and in the Item Cross Reference the option 0 is "" (nothing).
How can i manage to get the Item Cross Reference only for the Sales Type "Customer" in the Sales Price Table?
Best regards,
Max
I want to create a Flow Field in the Sales Price Table which gives back the Cross reference no. only for Customers from the Item Cross Reference.
For this I user the following in CalcFormula:
"Lookup("Item Cross Reference"."Cross-Reference No." WHERE (Item No.=FIELD(Item No.),Variant Code=FIELD(Variant Code),Cross-Reference Type=FIELD(Sales Type),Cross-Reference Type No.=FIELD(Sales Code)))"
My Problem is now, that with the Table Filter "Cross-Reference Type=FIELD(Sales Type)" I get an empty value. I think this is because in the Sales Price Table the Sales Type option for customer is 0 and in the Item Cross Reference the option 0 is "" (nothing).
How can i manage to get the Item Cross Reference only for the Sales Type "Customer" in the Sales Price Table?
Best regards,
Max
0
Answers
-
Cross-Reference Type=FIELD(Sales Type) is not a good filter. "Cross-Reference Type" is not the same thing as "Sales Type".
You should use:
Cross-Reference Type=CONST(Customer).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Yes as Kriki suggested use Cross-Reference Type=CONST(Customer) instead of the filter you are using.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Thank you for your answers!
I tried this too, but the problem is that there is a Customer Price Groupe which has the same number as the Customer. So the Lookup shows the Item Reference from the Customer with the same number instead of nothing.
0 -
Rename the customer price group....
Or make a function in the Sales Price table that finds the cross reference number when needed and use that on the page instead of a flowfield. But it is not possible to filter or order on that field.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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