Change the fields appear in RecordView and EditView

Dear Sugar Community,

I would like to differentiate the fields appear in RecordView with the fileds in the EditView ( after pressing the "Edit" button). Moreover I would like to keep showing in EditView only few fields of the Record view. 

I tried customizing the custom/<module>/metadata/ editviewdefs.php, with no success.

What do you suggest?

I use version 8 of SugarCRM

Parents
  • What version are you working with?

    In 6.x you work in 

    custom/modules/<module>/metadata/editviewdefs.php

    custom/modules/<module>/metadata/detailviewdefs.php

     

    But in v7.x and higher you work in 

    custom/modules/<module>/clients/base/views/create/create.php

    custom/modules/<module>/clients/base/views/record/record.php

     

    FrancescaS

  • Thanks for your help, but  from which file do I get the create.php  file? Also , the create.php  file is located in modules/<module>/clients/base/layouts/create/create.php and there are no fields to edit..Its form is like this:

    $viewdefs['Accounts']['base']['layout']['create'] = array(
    'components' => array(
    array(
    'layout' => array(
    'type' => 'default',
    'name' => 'sidebar',
    'components' => array(
    array(
    'layout' => array(
    'type' => 'base',
    'name' => 'main-pane',
    'css_class' => 'main-pane span8',
    'components' => array(
    array(
    'view' => 'create',
    ),
    ),
    ),
    ),
    array(
    'layout' => array(
    'type' => 'base',
    'name' => 'preview-pane',
    'css_class' => 'preview-pane',
    'components' => array(
    array(
    'layout' => 'preview',
    ),
    ),
    ),
    ),
    ),
    ),
    ),
    ),
    );

    So, how can I load another custom view ?

Reply
  • Thanks for your help, but  from which file do I get the create.php  file? Also , the create.php  file is located in modules/<module>/clients/base/layouts/create/create.php and there are no fields to edit..Its form is like this:

    $viewdefs['Accounts']['base']['layout']['create'] = array(
    'components' => array(
    array(
    'layout' => array(
    'type' => 'default',
    'name' => 'sidebar',
    'components' => array(
    array(
    'layout' => array(
    'type' => 'base',
    'name' => 'main-pane',
    'css_class' => 'main-pane span8',
    'components' => array(
    array(
    'view' => 'create',
    ),
    ),
    ),
    ),
    array(
    'layout' => array(
    'type' => 'base',
    'name' => 'preview-pane',
    'css_class' => 'preview-pane',
    'components' => array(
    array(
    'layout' => 'preview',
    ),
    ),
    ),
    ),
    ),
    ),
    ),
    ),
    );

    So, how can I load another custom view ?

Children