Hello Julian.
I made my module with the Builder, in fact, the code Builder provides me is the next (for another different custom module)
PHP Code:
<?php
$module_name = 'Sup1_service';
$viewdefs = array (
$module_name =>
array (
'EditView' =>
array (
'templateMeta' =>
array (
'maxColumns' => '2',
Without buttons. In some forum threads and default modules I knew there is code for buttons.
The code I included in this post (above) is provided by Builder and if I cancel editing changes, it returns me to detail view, but if I cancel a new element (creation) it returns me to Home, meanwhile every default module returns always to detail view.
In the module I modified (I added the code in first post) I needed edit "save" functions, so I need add code to save button, and then, sugar only shows me "save button" (withoit cacnel) so I added the new cancel button and it works fine, until I added js functions in "onclick", in this moment is when always returns me to listview and without all elements.l
I forgot mention: I use Sugar 5.0a, Win Server 2003, Apache 2.2.6
Andrés
Bookmarks