We were on version 7.x, we upgraded to version 8.x. If I go to the path
custom/modules/<modulename >/metadata. I find that the file editviewdefs.php is missing.
I tried to go to the studio> ModuleName>layouts>save and deploy, it does not generate the editviewdefs.php file.
I also tried to copy the file from the directory
modules/<moduleName>/metadata , The custom javascript added does not work.
There is a backup file with extension suback.php.
Any thoughts over here. What is want to do is to write a custom javascript file for the module.
editviewdefs is a non-Sidecar file, depending on what module you were working on, that viewdef may have been disabled by the upgrade.
If you need additional javascript to execute you should do so in the appropriate view controller:
custom/module/<modulename>/clients/base/view/record/record.js
and/or
custom/module/<modulename>/clients/base/view/create/create.js
See:
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_8.0/User_Interface/Views/
FrancescaS