AnsweredAssumed Answered

Module record pages not working with code following the new Sugar standards

Question asked by Ramon Marcondes on Oct 4, 2017
Latest reply on Oct 16, 2017 by André Lopes

Hello.

I'm using SugarCRM 7.8 Enterprise Edition.

 

I have a package for the module 'Opportunities', which I need to update some javascript / sidecar code to make the CRM updatable to version 7.9, according to what Sugar said in a Internal Case I opened (Healthcheck Failure).

The code change in question is this:

https://support.sugarcrm.com/Knowledge_Base/Installation_Upgrade/Troubleshooting_Health_Check_Output/Health_Check_Error_… 


There is a single line of code that makes a difference between the package working or not.

 

- This javascript line (deprecated method) works, but due to version update, I won't be able to use this anymore:

app.view.invokeParent(this, {type: 'view', name: 'record', method: 'initialize', args:[options]});

 

- But why these lines (adapted for Sugar 7.9) doesn't work?

Method A:

this._super('initialize', [options]);

Method B:

this._super('initialize', {type: 'view', name: 'record', method: 'initialize', args: [options]});

 

I get these two errors:
- Cannot read property 'components' of undefined
- Cannot read property 'meta' of undefined

 

What could be the problem?

Any help would be appreciated.

 

Thanks.

Regards,

Ramon Marcondes

Outcomes