Hello EveryBody,
I've developped a form in wich i displayed information from Sales Line table (Ver 4.02) automatically with a Process only report.
The problem is that the "CurrenForm.Update" doesn't function at the first time when activating the "OnActivation" Trigger. But it does at the second time!!!
Can someone help me please ! [-o<
0
Comments
Do you populate the data via a report? What is the structure of your code?
The "Editable" property of all my formular's columns are set to "NO"!
The problem is that : On the FIRST (Only the first) "OnActivate" of the formular, the "CurrForm.UPDATE" doesn't work (: the data are not displayed on the formular!!)!! But when i click on any other window in Navision, then i click on my formular, the lines (that the report extracted from the sales line table) appears.
At the other extraction of line from Sales Line, there's no problems !!! (the lines appears directly)!
Best regards.
Can you describe more, what is your goal and what you are doing? Something like:
1) From one button I run report
2) This report fill temp table with some entries
3) The report run form which shows these temp records...
(this is just example)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So:
1--> i run a Form (wich will contain the information)
2--> from one Botton i run a report (process only)
3--> the report fill my From with informations from Sales line
4--> The problem now is that the information aren't displayed
NB: i know that when i activate an other window then i re activate my Form, the informations are displayed !
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
<Control1000000050> - OnPush()
REPORT.RUN(50024);
CurrForm.UPDATE;
I also puted "CurrForm.UPDATE;" in the "OnActivate" trigger of the Form
Regards
Claus
http://www.AcumenConsulting.co.nz
With "Report.RunModal" it works now!
But there still a problem of updating the display of a sum in a textbox.
I do the same thing to activate the new display of the new value!
Should i put the crrForm.UPDATE somewhere too?
2) Where the edit box is placed?
please, more info...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
2--> Every time i add informations to my Form the sum is updated!
3--> The text Box where i display the sum is in a Frame! aatached to the same Form.
4--> The problem is that when i add iformation (the Sum is caulated automatically in the column) the TextBox containing the sum is not updated ==> doesn't contain the right (last) sum!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
CurrForm.UPDATE;
//---> Extract the Last Sum and affect it !
IF Rec.FINDLAST = TRUE THEN
BEGIN
gDec_CumulDsResume := Rec."Cumul Besoins";
END;
This is the OnActivate trigger of my Form. And i display the sum in a text box in a frame.
--> When i add lines in the FORM the SUM change there! But doesn't change in the text box !
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.