getting data from different companies and show in one form

haci
Member Posts: 4
Hi All,
Can any body help me with this problem.
I must to do the following issue..
I must getting the info(data) from FORM (101) of each company and show in one FORM.
Is this possible in navision?
so yes, how?
](*,) greetings ](*,)
Can any body help me with this problem.
I must to do the following issue..
I must getting the info(data) from FORM (101) of each company and show in one FORM.
Is this possible in navision?
so yes, how?
](*,) greetings ](*,)
0
Comments
-
I'm at home and i dont now wich table is the base for form 101 (not jet :-) ).
For your problem:Variables: Company Record Company BaseTableofForm101 Record BaseTableofForm101 TempTab Record ---- a Table with an easy PK (fore example some entries) i Integer ---- Company.reset; if company.find('-') then begin //findset is sql (4.01) i := 0; repeat BaseTableofForm101.reset; BaseTableofForm101.changecompany(Company.Name); BaseTableofForm101.setcurrentkey(Your fields if you need a special order); BaseTableofForm101.setrange(Your filters, if you need some); if BaseTableofForm101.find('-') then begin //findset if SQL (4.01) repeat i += 1; TempTab.init; TempTab."Primary Key field" := i; TempTab."An Text Field" := Company.Name; TempTab."Other Fields with the same Type you need" := "Your Fields from BaseTableofForm101"; TempTab.insert; until BaseTableofForm101.nexe = 0; end; until Company.next = 0; end;
Than make a new Form based on TempTab. Input the Fields you have filled.
RegardsDo you make it right, it works too!0 -
Form 101 is the Journal Templates form.
The problem with that code (although it seems to do the trick of at least displaying the information) is that you have the data in a temp table, and you'd have to develop it further to make modification and data entry possible.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