Wednesday 21 May 2014

[vTiger 6] Updated: How to disable editing on details view

vTiger 6 provides the ability to quick edit on details view for each module. This is an advantage but if you have a picklist dependency, it not will be controlated to AJAX on details view. It could induce a data inconsistency.

To solve this problem, edit on your module the file: vtigerinstallation_path\modules\module_name\views\Detail.php comment all lines inside the function public function getHeaderScripts(Vtiger_Request $request) { }
but not comment the function.

Example: Disable editing on service module.



public function getHeaderScripts(Vtiger_Request $request) {
    // I will to comment from here
    /*
    parent::getHeaderScripts($request);
    $headerScriptInstances = parent::getHeaderScripts($request);
    $moduleName = $request->getModule();
    $modulePopUpFile = 'modules.'.$moduleName.'.resources.Edit';
    unset($headerScriptInstances[$modulePopUpFile]);

    $jsFileNames = array(
'modules.Products.resources.Edit',
    );
    $jsFileNames[] = $modulePopUpFile;

    $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
    $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
    return $headerScriptInstances;
    */ 
    //to here
    }


Now you can't edit the fields from details view.

Best regards.



Update:

Another way by Anonymous

On the showModuleDetailView function. I erased few lines, just to show that I comment the

Tuesday 6 May 2014

Problemas de conexión Wifi: Router Teldat Movistar vs PC antiguo

Hola a todos,

Esta entrada va en español porque aunque puede que afecte a más personas, nos vamos a centrar en el router proporcionado por Movistar y cómo podemos solucionar el problema que se presenta cuando un PC antiguo se conecta una de cada X veces a nuestro wifi de casa. Os cuento mi caso particular:

Hace unos meses me instalaron en casa la fibra óptica de Movistar, que entre otros dispositivos incluye un router Teldat-i-1104w (tenéis más info aquí)

El problema está en que todos mis dispositivos medianamente modernos, véase móvil, tablet, play3, se conectaban SIEMPRE correctamente al wifi, no importaba si se encendía primero el router o los dispositivos, siempre funcionaban bien. El problema estaba con el viejo Acer Aspire 1642 heredado de mi hermana...

El portátil unas veces se conectaba al wifi y trabajaba de maravilla y otras no era capaz de conectarlo. Al principio echaba las culpas a las actualizaciones del Ubuntu que tengo instalado, pero nada más lejos de la realidad.

El problema era la configuración del router y ahora os cuento cómo se soluciona.

Monday 5 May 2014

How to repair a pendrive on read only mode

IMPORTANT: I've tested this procedure over Kingston Datatraveler G4 64GB. Before repairing the pendrive, you can try to save your files on other location. You are solely responsible for the result, data loss or of any damage it may cost to your device or computer system. You are solely responsible for backing up or saving all of your files or data.

One day when you plug your pendrive on your PC, it says that the device is on read only mode. You can't add or delete any files.

Probably you have tried to format the unit or edit the registry because you haven't read something on the forums. Anything of these have worked for you.