Hi I have a main/subform, and on the main form I have a field which is declared as FlowField for which the values are flushed from a field on the subform. so as soon as the value on the subform is input i want the field on the main form also to be updated simulataneously…this how i have written the code on the validate trigger of the field on the sub form… SalesHeader.GET(“Document Type”,“Document No.”); SalesHeader.CALCFIELDS(calctot); SalesHeader.MODIFY; but the value is updated only when the main form is activated or the field on the form is activated… thanks in adv kumar
Kumar, if you really, really must update the mainform automatically, then the only solution (AFAIK) is to use a timer on main form for updating it. This is because a subform in Navision does not know anything about its parent. This is a very popular subject and you will find discussions concerning it if you search through the developer forum. /Pauli
[quote]
Originally posted by paurola: Kumar, if you really, really must update the mainform automatically, then the only solution (AFAIK) is to use a timer on main form for updating it. This is because a subform in Navision does not know anything about its parent. This is a very popular subject and you will find discussions concerning it if you search through the developer forum. /Pauli HI Pauli Thanks for the tip. Kumar
Hi Sorry must be quick as I have a pile of work. You can also 1) use the on deactivate of the subform to calcfields or update values on the header. But this only works when you deactive the subform. 2) design the subform in such a way that the totals are on the subform. turn the outline to off on the subform control and you can not tell! 3) Use the timer as Pauli said. Paul Baxter
quote:
Originally posted by triff: Hi Sorry must be quick as I have a pile of work. You can also 1) use the on deactivate of the subform to calcfields or update values on the header. But this only works when you deactive the subform. 2) design the subform in such a way that the totals are on the subform. turn the outline to off on the subform control and you can not tell! 3) Use the timer as Pauli said. Paul Baxter
Hi Paul thanks for the solutions kumar