Pass value to report engine via prompt dialog

There are two mode that call to render a report template,
Crystal Report can be called with/without paramter values to render a report template. When it is called without parameter, an input dialog will be prompted.
Those parameter values are serialized by JSON format, the parameter names are as following:

  • CRVCompositeViewState
  • CRVEventTarget
  • CRVEventArgument

It is found that a warning message the report requires parameter values that need to be supplied by the client before further processing” will be shown when values are entered.
So upset!!
I used curl to debug the program, found that parameter CRVCompositeViewState and CRVEventTarget would affect the result of putting paramter value to report.
No idea, to solve the problem, I used a ugly approach that removing parameter CRVCompositeViewState and CRVEventTarget in allInOne.js to let them not be passed to server side.

Reference
升级Crystal Report 8.5 to Crystal Report 2011