Flowfields - Sql Queries ?

elephant_man
Member Posts: 6
i am very new at navision. I am writing web programs also. so i used to make database tables like this:
Table1 : Films (filmid,runtime,year...)
Table2 : Genre (genreid,Genre)
Table3 : FilmGenre(fid,gid)
but in navision i think i must use flowfield or something near to that to show them in forms reports vs.
How can i use them and where can i put those flowfields?
How can i change my mind to navision?
Is there a field or anything else to run joined sql queries?
Table1 : Films (filmid,runtime,year...)
Table2 : Genre (genreid,Genre)
Table3 : FilmGenre(fid,gid)
but in navision i think i must use flowfield or something near to that to show them in forms reports vs.
How can i use them and where can i put those flowfields?
How can i change my mind to navision?
Is there a field or anything else to run joined sql queries?
0
Comments
-
hello, elephant.
a good starting point to learn the programmers language is to read the manual "w1w1adg.pdf" (search for it).
A flowfield is a field that doesn't store any values. The value is calculated at runtime by a formula (like sum, max, avg, exist, etc).
So on your example you need, for example in table films, only a flowfield if you need to know how many genres a film has (calcformula = Sum on table Filmgenre where Fid = FilmID). So the rest of you question i doesn't understand. Do you have problems to create the tables and the reports / forms or do you have problems to design the whole functionality of your application?
RegardsDo you make it right, it works too!0 -
thanks but someway i need to show film's genre names in my card form. Can't i write query in source expression of that form tool? also what's my advantage for using sum flowfield and know how many genre on that film. i only want to show the names in forms and reports...0
-
Hi,
Think the problem is in the table design - why not add gid to the film table. Then add a count flowfield to the Genre table where genreid = gid.
The form will be based on the genre table and if you click on the count filed it will show all the film ( make sure you have a list form accosiated with the film table )
Hope this helps0
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