"Unsupported Form/Control Method/Property called. Name = FileName "
in the code below
IF Option = Option::"Update Workbook" THEN BEGIN
RequestOptionsForm.FileName.ENABLED(TRUE);
RequestOptionsForm.SheetName.ENABLED(TRUE);
END ELSE BEGIN
FileName := '';
SheetName := '';
RequestOptionsForm.FileName.ENABLED(FALSE);
RequestOptionsForm.SheetName.ENABLED(FALSE);
END;
any help thxs
0
Comments
did you set name property to FileName in File Name text box?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
so no sections.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
i have defined the variable and assgined the text box the filename
as sourceExpr .
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
report 29 has the insight.
I am pretty sure that was not the reason for the warning (not an error).
You will get this warning if you put RequestOptionsForm.FileName.ENABLED(TRUE); anywhere outside the RequestForm.
The warning is related to the RTC where you cannot refer to controls on the RequestForm.
If the report runs on the CC only there is no problem with the warning.
NAV Developer
Accepted code..
IF NOT ISSERVICETIER THEN BEGIN
RequestOptionsForm.PostingDate.ENABLED(gblnPost);
RequestOptionsForm.DocumentNo.ENABLED(gblnPost);
END;
But not this code...
IF ISSERVICETIER = FALSE THEN BEGIN
RequestOptionsForm.PostingDate.ENABLED(gblnPost);
RequestOptionsForm.DocumentNo.ENABLED(gblnPost);
END;
the later will give your warning message, i.e., Unsupported Form/Control Method/Property called. Name = PostingDate ](*,) !