FlowFilters with ODBC

ta5
Member Posts: 1,164
Hi
I need some queries in MS-Query from Navision.
This is the code
As long as SetFlowFilter is not used, everything works fine. With the current syntax I get this error:
"Error in Predicate ..."
Any ideas? I have found some postings in this forum, but they did not provide a solution.
ODBC 4.01 is used.
Thanks in advance
Thomas
I need some queries in MS-Query from Navision.
This is the code
SELECT G_L_Account.No_, G_L_Account.Name, G_L_Account.Balance_at_Date, G_L_Account.Net_Change, G_L_Account.Budgeted_Amount, G_L_Account.Totaling, G_L_Account.Budget_Filter FROM G_L_Account G_L_Account WHERE {pred SetFlowFilter,'Budget_Filter','2007'}
As long as SetFlowFilter is not used, everything works fine. With the current syntax I get this error:
"Error in Predicate ..."
Any ideas? I have found some postings in this forum, but they did not provide a solution.
ODBC 4.01 is used.
Thanks in advance
Thomas
0
Comments
-
What is the required result?
What product are you exactly using?
May be you can try something like:SELECT G_L_Account.No_, G_L_Account.Name, G_L_Account.Balance_at_Date, G_L_Account.Net_Change, G_L_Account.Budgeted_Amount, G_L_Account.Totaling, G_L_Account.Budget_Filter FROM G_L_Account G_L_Account WHERE (Budget_Filter > '01/01/2007') and (Budget_Filter < '31/12/2007')
Just guessing, I don't know what you're trying to do... :-k0 -
Thanks for your posting.
I want to set a flowfilter to "Budget Name", so the field "Budgeted Amount" should only show the values from Budgetname 2007. Very easy in Navision but quite strange in ODBC ](*,)
The "pred SetFlowFilter" thing is from the ODBC Documentation.
Regards
Thomas0 -
I'm sure it would be possible with pure sql statement, but then you would have to select the source table of the flow fields to get the result.
Possible but a bit more complicated.
Thats why I wanted to use the native feature of the odbc driver...0 -
Any other ideas?
Thx in advance
Thomas0
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