Need a special offer?Find out if your project fits.
+

Old report settings migration was not converted correctly

Resolved
Maya Shavin asked on March 5, 2017

http://jsfiddle.net/dpnminh/f243r8r5/4/
In the old report settings we have field "showHeaders" is set to false, but the display still shows Headers and the new settings has grid.showHeaders set to true.

4 answers

Public
Maya Shavin March 5, 2017

Same goes with "flat" mode in grid, it will be displayed as "compact" instead.

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster March 6, 2017

Hello Maya,
Thank you for your question. We have noticed that you are using the approach for 2.2 version and the new 2.3 approach at the same time when setting the report. It will not work this way, you should use only one of them. In such cases, we highly recommend our customers using the 2.3 approach. It is much more systematised and it is easier to read and configure. However, the 2.2 approach is still compatible and you can continue using it. If you want to make the report from the sample work, you should remove the dataSource attribute and put the data and the dataSourceType attributes in the root of the report object.
Please let us know if everything works fine for you.
Best regards,
Dmytro.

Public
Maya Shavin March 6, 2017

@Dmytro Zvazhii - thanks a lot for quick reply. I actually did not notice that we are using both approach :). 
Is there any built-in functionality to convert the 2.2 settings to 2.3 settings? I need to process lot of old reports with 2.2 settings hence can't manual convert it to 2.3 settings. If there is a method for converting it will be great help for us.

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster March 7, 2017

Hello Maya,
The best way to convert the 2.2 approach reports to the new one is via the components API. You can write a script for it. Firstly, use load() or setReport() API calls to load the old report in and then use save() or getReport() API call to get the new one. For more information about these API calls please visit our documentation http://www.flexmonster.com/api/ . Also, I recommend you waiting for the getReport() returning the wrong grid view type to be fixed and then running the conversion.
Please let us know if you need more details about this.
Best regards,
Dmytro.

Please login or Register to Submit Answer