Hi. How can I make some values in filters required before preview a report. For example report 9 (Trial Balance/Budget) requires a value for Datefilter before getting the report. Thanks in advance
You need to check for the presence of the filter and generate an ERROR if there is none. You can do it with something like: IF Table.GETFILTER(Field) = '' THEN ERROR('Please specify a filter.');
On the Report you mention, it goes a step further. Navision uses the GETRANGEMAX function to return the maximum range of the filter. There is no explicit ERROR statment in Report 9, it is generated directly by GETRANGEMAX if the filter applied does not specify a maximum Date.
Thanks Nelson, your answer is exactly what I need