Can any one suggest me how to turn on/off Developer Mode and what are the advantages and disadvantages in it... Really helpfull to everyone.
Hi,
Thank you so much for your Reply and we are facing 1 issue in Developer mode Turn on/off.. Please look into the below issue and Guide us.
1.Create 2 Roles (CSA and Manager)
2. Created 2 users CRMCSA and CRMMANAGER and associated with Above roles
3. Created 2 custom modules using Module Builder and it has form fields are MODULE1 (name, Age, Approved(yes,no)) and MODULE2 (address, location, Approved(yes,no))
4. using Deploy option from module builder i have successfully deployed
Below are the customizations that i have made..
Requirement : FOR MODULE1 AND MODULE2 - Approved(yes,no) Radion button should not display to CRMCSA and it should display only to CRMMANAGER
For the Above requirement i made the below changes:
Created custom View : in sugarcr\custom\\modules\MODULE1\views\view.edit.ph p
$acl_role_obj = new ACLRole();
$user_roles = $acl_role_obj->getUserRoles($current_user->id); // grab a list of the current user's roles
if($user_role[0] == 'CRMMANAGER' || $_SESSION['authenticated_user_id'] == '1')
$metadataFile = 'custom/modules/MODULE1/metadata/editviewdefs.php';
else
$metadataFile = 'custom/modules/MODULE1/metadata/editviewdefs_cust.php'
2. I duplicated ediviewdefs.php and renamed to editviewdefs_cust.php file and commented the Approved Array in editviewdefs_cust.php.
/*
1 =>
array (
'name' => 'approved',
'studio' => 'visible',
'label' => 'LBL_APPROVED',
),
*/
3. I TURNED on Developer mode to ON and refreshed the MODULE1 EDIT view after logging WITH CRMCSA. its working fine with CRMCSA and Logging with CRMMANAGER i'm able to see the APPROVED radio button.
Everything is working fine.. At last when it is moved to production the developer mode is TURNED OFF and its this functionality is not working.. who ever the users first logged in that ediviewdefs.php array is generating in cache folder and it was displaying..
example : if CRMCSA LOGGED IN it's displaying FORM without Approved(yes,no) radio buttons and same FORM is getting for CRMMANAGER actually it should display Approved(yes,no) Radion button for CRMMANAGER.
If i TURN on Developer mode then its working fine.
PLEASE GUIDE ME HOW TO FIX THIS ISSUE.. EVEN DEVELOPER MODE TURNED OFF IT SHOULD WORK.
PLEASE SUGGES ME


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks