Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
C:\OutputReport\index_${random.nextInt(1000)}.html

 


The output report filename would be “index_457.html”.

...

If this happens, Report Wizard will use this variable as a filename and a warning message will open in a MagicDraw log file (\.magicdrawmodeling tool\version\md.log).

For example:

...

A single quote after “yyyyMMdd-hhmmss” was missing. Therefore, the output filename would be “index_${date.get('yyyyMMdd-hhmmss)}.html” and a warning message would open in MagicDraw, see figure below.

A Warning Message of an Invalid Variable Syntax
A Warning Message of an Invalid Variable Syntax.

...

“${Parent}” was not in the report template variable. Therefore, the output filename would be "index_${Parent}.html" and a warning message would open in MagicDraw, see figure below.

A Warning Message of a Variable that Does not Exist in a Template Variable
A Warning Message of a Variable that Does not Exist in a Template Variable.

...

In this example, ‘yyyy-MM-dd qq’ is an invalid parameter. Therefore, output filename would be “index_${date.get('yyyy-MM-dd qq').html” and a warning message would open in MagicDraw, see figure below.

A Warning Message of an Invalid Parameter
A Warning Message of an Invalid Parameter.

...