How to solve it???

Rana
Member Posts: 123
Hi All,
I have created a field ( "Transporter Bill Entry", Boolean) in the table Sales Shipment Header ( ID 110 ). And add this field on the FORM Posted Sales Shipments ( ID 142 ). This form is non-editable .
I have aaded a command Buttan ( Function ) on this FORM and Call a CodeUnit Function to modify this field. Every thing is working.
But when Click the Command Buttan the form is FILTERED by the
Field Filter
Marked : Yes
Transporter Bill Entry : No
Screen Shots are as follows
1
2.
3
I want to remove the filter.
Is there any other way to solve this issue??
Thanks
I have created a field ( "Transporter Bill Entry", Boolean) in the table Sales Shipment Header ( ID 110 ). And add this field on the FORM Posted Sales Shipments ( ID 142 ). This form is non-editable .
I have aaded a command Buttan ( Function ) on this FORM and Call a CodeUnit Function to modify this field. Every thing is working.
But when Click the Command Buttan the form is FILTERED by the
Field Filter
Marked : Yes
Transporter Bill Entry : No
Screen Shots are as follows
1
2.
3
I want to remove the filter.
Is there any other way to solve this issue??
Thanks
0
Answers
-
In the code where you call your function, declare another variable of the same record type as REC ( let's call it RecToChange ). Then use
Currform.SetSelectionFilter(RecToChange) ; CMFMgt.EditTransportbillEntry(RecToChange) ;
0 -
Make sure you add CurrForm.update(false);Currform.SetSelectionFilter(RecToChange) ;
CMFMgt.EditTransportbillEntry(RecToChange) ;CurrForm.update(false);
0 -
Thanks both of u... it works fine \:D/0
-
Just to add this:
When you say
Rec.SETRANGE(SomeField); <-- (without specifying a value for the field)
it removes any filter applied on the specific field...0 -
the only issue is that you don't know what field the user has filtered on.
I guess you could do
Rec.reset; to remove all the fields.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