Filter in the tablebox

Wishman
Member Posts: 36
Hi,
I searched the forum but I couldn't find a solution. My problem is,
I have 3 fields(one is option, the others are code), and a tablebox. The three fields can't be flowfield because they are keys, in the table. I want to search the header archieve file and get the lines of it.(Sales Header Archive-Sales Line Archive) I wrote a function in the line form, I get the record count when the function returns, after the setrange. But the records don't come to the tablebox.
In which trigger, and what, I have to write my code? I tried onformat trigger,
CurrForm.SalesLineArch.FORM.UPDATECONTROLS;
but it didn't work..
Anybody has an idea??
I searched the forum but I couldn't find a solution. My problem is,
I have 3 fields(one is option, the others are code), and a tablebox. The three fields can't be flowfield because they are keys, in the table. I want to search the header archieve file and get the lines of it.(Sales Header Archive-Sales Line Archive) I wrote a function in the line form, I get the record count when the function returns, after the setrange. But the records don't come to the tablebox.
In which trigger, and what, I have to write my code? I tried onformat trigger,
CurrForm.SalesLineArch.FORM.UPDATECONTROLS;
but it didn't work..
Anybody has an idea??
0
Comments
-
Anybody haven't done it before!!!! :shock:0
-
Have you tired CurrForm.Update(FALSE)? Do this after you place a filter SETRANGE.0
-
I made the setrange in the subform, and when I use currform.update(false), it says form is not open..0
-
May be that problem is that you have link in master form on subform component and in sub-form you want to change this filter... but these filters are AND...
if you want update controls you cannot do it in OnInit but in OnOpen (but in onopen is Updatecontrols irrelevant, because nothing is drawed) or later...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