Updating a subform from another subform
Serval
Member Posts: 51
Hi all,
I'm working on Sales Order (Form 42). I already have the standard SalesLines subform.
I have created a second subform on the sales order linked to a table Y with a primary of Order No., Line No., some other keys... As I can have several records in table Y for one Sales Line, this second subform should be updated each time a line is focused on the SalesLine subform...
Is this possible ?
Thanks in advance for any help !
I'm working on Sales Order (Form 42). I already have the standard SalesLines subform.
I have created a second subform on the sales order linked to a table Y with a primary of Order No., Line No., some other keys... As I can have several records in table Y for one Sales Line, this second subform should be updated each time a line is focused on the SalesLine subform...
Is this possible ?
Thanks in advance for any help !
0
Comments
-
Message is bad, because it is not possible, because standard subform doesn't know (and see) your new subform. The only way is to create menu item on main form to refresh your subform.0
-
Hi,
Isn't it possible, when you focus on a line in the sales order subform (onAfterGetRecord or OnAfterGetCurrRecord), to pass some parameters, like Line No. and Item No. to the Sales order and put them in new fields in the sales header? Maybe you can put those parameters in the subformlink property of the other subform.
I'm just thinking out loud
PS: If i'm right, there was a download to do something like that on this forum several years ago, but I think it has already been cleared.0 -
As you can find in a lot of posts, from subform isn't main form accesible.0
-
You should use a singleinstance codeunit in which you send the information from the first subform and in the receiving subform, you need to use the TimerInterval-property and trigger to check if the values have been changed in the singleinstance codeunit. If they have, change the filter and refresh the subform.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hello Serval !
Did you have a look at http://www.mibuso.com/forum/viewtopic.php?t=1771 , this could help you ...0 -
Thanks Kriki for your reply !0
-
Hi Mr V.
My friend Blizzard (SDGT) and I are thanking you a lot. That's exactelly what we need.
We'll try it later on and tell you if it works.0 -
You welkome , old friend ! Reg. to Blizzard too !0
-
It is possible, but firing of timer causes the focus loss from active field and unpredictable errors in OnValidate triggers.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions