3
Vote

Accounts and Opportunities

description

I installed the solution - and can see most of the entities. However, the Account and Opportunities will not provide any information. When I click on those options the screen just remains blank.

Any idea what might be causing the problems?

comments

MarcusNaylor wrote May 26, 2016 at 11:11 AM

Same issue here

StephenDKing wrote Jul 21, 2016 at 8:08 PM

I had this problem too and fixed by editing the jcl.js in the solution. There is a switch case starting on line 452. I wrapped the case "RequiredLevel" in a try catch
switch (xmlAttr[j][xmlLabel]) {
                case "DisplayName":
                case "Description":
                case "RequiredLevel":
                try{
                    singleAttr[xmlAttr[j][xmlLabel]] = "";
                    if (typeof xmlAttr[j].childNodes[1].childNodes[3] !== 'undefined') {
                        // CRM 2011 UR 12 +
                        if (xmlAttr[j].childNodes[1].childNodes[3] !== null) {
                            singleAttr[xmlAttr[j][xmlLabel]] = xmlAttr[j].childNodes[1].childNodes[3][xmlValue];
                        }
                    } else if (typeof xmlAttr[j].childNodes[1].childNodes[1] !== 'undefined') {
                        // CRM 2011 early versions
                        if (typeof xmlAttr[j].childNodes[1].childNodes[1] !== null) {
                            singleAttr[xmlAttr[j][xmlLabel]] = xmlAttr[j].childNodes[1].childNodes[1][xmlValue];
                        }
                    }
                }
                catch(err)
                {
                    console.log(err)
                }
                    break;

                case "AttributeType":
                case "Format":
                case "IsCustomAttribute":
                case "MetadataId":
                case "LogicalName":
                case "SchemaName":
                case "LinkedAttributeId":
                case "EntityLogicalName":
                case "IsValidForRead":
                    singleAttr[xmlAttr[j][xmlLabel]] = xmlAttr[j][xmlValue];
                    break;

                case "IsValidForAdvancedFind":
                    singleAttr[xmlAttr[j][xmlLabel]] = xmlAttr[j][xmlValue].split("canmodifysearchsettings")[0];
                    singleAttr.CanModifySearchSettings = xmlAttr[j][xmlValue].split("canmodifysearchsettings")[1];
                    break;

                default:

                }
This fixed my problem.
-Stephen

StephenDKing wrote Jul 21, 2016 at 8:11 PM

Don't know if this is an abandoned project or not. If it is and Paul doesn't want to deal with it any more, i will fork and update it. I think this is a 2016 specific issue.

-Stephen