How to bypass Reports parameters validation

From MTHWiki

(Difference between revisions)
Jump to: navigation, search
(New page: ===Bypassing Reports Parameters Validation === By default all custom reports have their parameters validated before sent into reporting engine, this ensures that the report will recei...)
Line 1: Line 1:
- 
===Bypassing Reports Parameters Validation ===
===Bypassing Reports Parameters Validation ===
Line 15: Line 14:
2. Please use the Menu View-Show Console
2. Please use the Menu View-Show Console
-
3. In the console, at the prompt please type Environment.setProperty( Constants.Config.DISABLE_DIALOG_VALIDATION, "1");
+
3. In the console, at the prompt please type SwingMoneyView.singleInstance.getEnvironment().setProperty( Constants.Config.DISABLE_DIALOG_VALIDATION, "1");
4. Press enter
4. Press enter
Line 22: Line 21:
<code><pre>
<code><pre>
-
money.bsh% Environment.setProperty( Constants.Config.DISABLE_DIALOG_VALIDATION, "1");
+
money.bsh% SwingMoneyView.singleInstance.getEnvironment().setProperty( Constants.Config.DISABLE_DIALOG_VALIDATION, "1");
money.bsh%
money.bsh%
</pre></code>
</pre></code>

Revision as of 15:57, 29 March 2012

Bypassing Reports Parameters Validation

By default all custom reports have their parameters validated before sent into reporting engine, this ensures that the report will receive proper accounts, categories, payees etc that it need to run.

On some older systems, this validation logic is broken. What is causing it is unclear, it is somewhat of a mystery.

To workaround this situation you can do the following:

1. Start up My Money

2. Please use the Menu View-Show Console

3. In the console, at the prompt please type SwingMoneyView.singleInstance.getEnvironment().setProperty( Constants.Config.DISABLE_DIALOG_VALIDATION, "1");

4. Press enter

your prompt should look like the following

money.bsh% SwingMoneyView.singleInstance.getEnvironment().setProperty( Constants.Config.DISABLE_DIALOG_VALIDATION, "1");
money.bsh%


5. Please start the Custom Reports dialog, Ok button should be enabled

6. Please pass down to the report proper parameters, otherwise report will not function properly and you may see errors.

Personal tools