Give a Full_name to a custom module

Hi community,

I created a custom module with the module generator.

I chose ā€˜Basic Structure’ for my module (with by default the fields : name, date entered, date modified, deleted, description).

I add some more fields to my module.

Now i want to make a ā€˜full_name’ for this module coupling ā€˜name’ with another field. And i want it to be shown in relationships, in the title of my detail view, if the list of recents views.

How can I do it properly?

Good Day.

(SuiteCRM 7.7)

You should have probably created your custom module using the person structure and this would have been included. Basically what you will need to do is look at how a person type module works such as contacts and pick it a part. In there you will see they have _create_proper_name_field() method in that specific module’s bean class. And the definition used for it in a relationship is just ā€˜name’ where as the other name fields are first_name, last_name etc.

Ok.
thank you i’ll do that.