Hi everyone,
well, I'm probably stupid, because I believe that what I want to achieve must be very easy, but somehow, it just doesn't want to work the way I'd like it to. :-(
Here's the deal: I'm on Sugar 9.0.2, and for the Accounts module, I'd live the detail view that you get when you open an account to show a slightly different set (or order) of fields from what you get when you hit the "edit" button and are in edit mode.
So, what did I do? Well, there was already a
custom/modules/Accounts/clients/base/views/record/record.php
file present, which I just copied to
custom/modules/Accounts/clients/base/views/create/create.php
While I was at it, inside of the file I changed
$viewdefs['Accounts'] =
array (
'base' =>
array (
'view' =>
array (
'record'
to
$viewdefs['Accounts'] =
array (
'base' =>
array (
'view' =>
array (
'create'
Then I made some changed to the fields defined in the file itself, and after a quick repair & rebuild, upon entering the edit mode of an account, I saw ... no difference at all. Stuff still looked exactly the same as it did in the normal "record view". However, what I noticed: When I create a new account, I actually get shown the fields in the way I've specified them in my new "create view". So for create it works, but not for edit.
"Great", I thought, maybe I'll have to explicitly specify a custom edit view then, so I quickly created
custom/modules/Accounts/clients/base/views/edit/edit.php
$viewdefs['Accounts'] =
array (
'base' =>
array (
'view' =>
array (
'edit'
but that didn't do anything either.
Very strange - I#m certainly doing something very simple wrong, but I have no idea what it is. Therefore, if anyone can point me into the right direction what I can do to customize my edit view, just like it's already worked for my create view, I'd be really, really grateful!
Thank you in advance!
Nils