Refresh Form

erugalatha
Member Posts: 120
Hi,
I've got a flowfield showing on a Sales Order form but when I change something in the flowfield (OnDrillDown) then tab off the control the value in the control does not update immediately. It only updates if I close the sales order form and re-open it.
How can I get the flowfield control to refresh immediately?
Thanks in advance.
I've got a flowfield showing on a Sales Order form but when I change something in the flowfield (OnDrillDown) then tab off the control the value in the control does not update immediately. It only updates if I close the sales order form and re-open it.
How can I get the flowfield control to refresh immediately?
Thanks in advance.
0
Answers
-
Put some code on the dropdown so you control which records to show. And when you return do a Currform.UPDATE(FALSE);Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
hmmm ... any code in the OnDrillDown causes the drill down functionality not to work. So I've defined a variable of type Form that is the form that the drill down would have run.
how can i set filters on this form and then run it?
myform.SETTABLEVIEW(Rec)????0 -
i believe this is what you're supposed to do...
yourrecord.setfilter(field,somefilter); form.runmodal(form::yourform,yourrecord); currform.update(false);
0 -
Thank you.
I ended up doing it this way:
myrecord.SETFILTER(myrecord."Sales Doc. No.","No.");
myrecord.SETFILTER(myrecord."Carton Type",'BoxA');
myform.SETTABLEVIEW(myrecord);
myform.RUN;
CurrForm.UPDATE(false);0 -
erugalatha wrote:Thank you.
I ended up doing it this way:
myrecord.SETFILTER(myrecord."Sales Doc. No.","No.");
myrecord.SETFILTER(myrecord."Carton Type",'BoxA');
myform.SETTABLEVIEW(myrecord);
myform.RUN;
CurrForm.UPDATE(false);
Try to avoid SETFILTER. SETRANGE is better!Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:One remark:
Try to avoid SETFILTER. SETRANGE is better!
Does SETFILTER do bad things? #-o0 -
erugalatha wrote:kriki wrote:One remark:
Try to avoid SETFILTER. SETRANGE is better!
Does SETFILTER do bad things? #-oRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:It will work, but SETRANGE can be better for performance. When putting filters on the fields of the index, with SETFILTER it can happen that Navision is not able to use the index for fast searching but only for ordering.
That's good to know - thanks again.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