This project has moved and is read-only. For the latest updates, please go here.

Cannot configure solution 'configJSON' is undefined

Dec 16, 2014 at 3:33 PM
Edited Dec 16, 2014 at 4:01 PM
When I try to configure the solution nothing happens.

Using the IE11 debugger I see this problem:
    function init() {
        if (configJSON) {
            config = JSON.parse(configJSON);
Debugger fails on the "if (configJSON)" line: 'configJSON' is undefined.

When I look at the source code I do not see a definition for this variable, so not surprised at the error, it is not defined in the dd_chartMapConfig.htm resource.

So I created my own web resource "dd_chartMapConfig.js" with contents of:

var configJSON = '{}';

Saved & published it then things started to work!

So why isn't this default config web resource supplied as an unmanaged component?
Jan 6, 2015 at 7:40 PM
Edited Jan 6, 2015 at 8:42 PM
dd_chartMapConfig.js is supposed to be generated the first time you do a Publish All after importing the solution.
I don't include it with the solution for a number of reasons. Partly it makes the deployment process much easier for me. But mostly it allows you to update to newer versions of this solution, without overwriting your configuration.
I know there's a few area's where that process needs to become more robust. Don't worry, it will come.