This topic contains 6 replies, has 2 voices, and was last updated by oro_newbie 7 years, 1 month ago.
-
Topic
-
To explain best what I would like to do, it’s actually the same thing that Contact Bundle here is doing but for Account Bundle.
So, whenever we have an autocomplete dropdown of contact bundle (example, when you are creating a case), you can select contact by searching with different properties like namesuffix, lastname, skype etc. I would like to do the same thing for Account bundle. I got the other properties displaying by putting them in services.yml like:
1234567orocrm_account.form.autocomplete.account.search_handler:parent: oro_form.autocomplete.search_handlerarguments:- %orocrm_account.account.entity.class%- ["name", "email", "phone"]tags:- { name: oro_form.autocomplete.search_handler, alias: accounts, acl_resource: orocrm_account_view }And then in my search.yml I have this:
12345678910111213141516171819202122232425262728293031323334Custom\Bundle\AccountBundle\Entity\Account:alias: orocrm_accountlabel: orocrm.account.entity_plural_labeltitle_fields: [name, email, phone]route:name: orocrm_account_viewparameters:id: idsearch_template: CustomAccountBundle:Account:searchResult.html.twigfields:-name: nametarget_type: texttarget_fields: [name]-name: emailtarget_type: texttarget_fields: [email]-name: phonetarget_type: texttarget_fields: [phone]-name: defaultContactrelation_type: one-to-onerelation_fields:-name: emailsrelation_type: one-to-manyrelation_fields:-name: emailtarget_type: texttarget_fields: [email]But in my account autocomplete dropdown, I cannot search for an account using their email or phone although they appear in the list. Is my search.yml not being recognized? Do I need to load it somewhere explicitly rather than just overriding?
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.