This topic contains 3 replies, has 2 voices, and was last updated by cardiac 8 years, 2 months ago.
- Topic
Hi all,
I tried to use the fields of a related entity as title for autocomplete.
I want to see the “customerproject” id and the lead.”firstName” and lead.”lastName”form.yml
1234567app.customerproject.form.autocomplete.search_handler:parent: oro_form.autocomplete.search_handlerarguments:- %app.customerproject.entity.class%- ["id", "name", "firstName", "lastName"]tags:- { name: oro_form.autocomplete.search_handler, alias: customerprojects, acl_resource: app_customerproject_view }search.yml
12345678910111213141516171819202122232425262728293031AppBundle\\Entity\\CustomerProject:alias: app_customerprojectsearch_template: AppBundle:CustomerProject:searchResult.html.twiglabel: app.customerproject.entity_labelmode: normaltitle_fields: [id, name]route:name: app_customerproject_viewparameters:id: idfields:-name: idtarget_type: integertarget_fields: [id]-name: nametarget_type: texttarget_fields: [name]-name: leadsrelation_type: many-to-onerelation_fields:-name: firstNametarget_type: texttarget_fields: [firstName, leadName]-name: lastNametarget_type: texttarget_fields: [lastName, leadName]But I can only see name or id field. firstName, lastName, leadName or whatever I tried to do doesn’t work.
Thank you for your time
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.