Hi. I have a master/detail form. In the "header" I have a text control where I need to display the information of the description field in the
selected line of the detail subform (don't ask me why :oops: ). I have a function in the subform wich returns the line number and so I can get the description and save it in a global variable or even in a table, but after all I'm not able to display it in my text control in the header.
Could you help me please?.
Thkx,
0
Comments
Try:
http://www.mibuso.com/forum/viewtopic.php?t=1237
or
http://www.mibuso.com/forum/viewtopic.php?t=7998
Regards
CurrForm.Update(False)
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
I have an error message "The form is not open"
and where are you using CurrForm.Update(false)?
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
You cannot call a function in the main form from the subform.
You're calling a function from a form, but its another instance not the main form. That's wy you're having that message ("The form is not open"). You have to find another way to do what you want, or with timers or single instance CU.
Hope i understood correctly and this helps,
regards
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
OnTimer (set 200ms for example)
if Variable <> subformName.getVariable() then begin
variable := subformName.getVariable();
currform.update(false);
end;
You can also use OnActivate trigger..... but I seldom use it.