Displaying selected fields from one module in another module using code.

Hi forum,

This is for Sugarcrm CE 6.5.20 and hence I am not sure it will be posted here anymore.

If that is the case - apologies.

I have 2 modules Module_1 and Module_2.

They are not related.

Module 1 has the following fields.

Module_1_field_1,

Module_1_field_2,

Module_1_field_3,

Module_1_field_4,

Module_1_field_5

What I need is to do is to display

Module_1_field_2 and

Module_1_field_3

in the list view of Module_2.

I have seen some posts regarding achieving similar results for related modules, but as I am an absolute beginner for programming, I do not understand what exactly is to be done for mudules that are not related.

I have hundreds of fields to be created and therefore, I need a way to create these fields using code and not using Studio.

Any assistance is much appreciated.

Thank you.

Parents
  • If you are still using SugarCRM CE and have no plans to upgrade to a supported version then you really should just take the plunge and move to SuiteCRM as it is supported.

    One POSSIBLE way to do this is to put all fields in one module, in that module you would only show the fields you want and then create a second module (just stock fields), save and deploy it then copy the vardefs from the first module over to the second (renaming the arrays to the second modules names).

    Now you have 2 modules that use the same table.  You can show one group of fields in one module and a different group in another and the two will never go out of sync.

    There are other ways that involve scripts (maybe logic hooks) to keep the two tables in sync but the first idea has way less overhead, however the second idea is probably the more used method.

Reply
  • If you are still using SugarCRM CE and have no plans to upgrade to a supported version then you really should just take the plunge and move to SuiteCRM as it is supported.

    One POSSIBLE way to do this is to put all fields in one module, in that module you would only show the fields you want and then create a second module (just stock fields), save and deploy it then copy the vardefs from the first module over to the second (renaming the arrays to the second modules names).

    Now you have 2 modules that use the same table.  You can show one group of fields in one module and a different group in another and the two will never go out of sync.

    There are other ways that involve scripts (maybe logic hooks) to keep the two tables in sync but the first idea has way less overhead, however the second idea is probably the more used method.

Children
No Data