This topic contains 2 replies, has 2 voices, and was last updated by ant-workaholic 8 years, 7 months ago.
- Topic
Hi guys. I have created new navigation menu for my custom entity. I need to show all items of this entity in a grid. I am trying to use datagrid.yml for this. As an example I have this datagrid.yml.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768datagrid:digitizing-grid:extended_entity_name: %acme_digitizing.atwork.class%source:type: ormacl_resource: acme_digitizing_viewquery:select:- digitizing.id- digitizing.namefrom:- { table: %acme_digitizing.atwork.class%, alias: digitizing }join:left:- { join: digitizing.owner, alias: owner }- { join: digitizing.workflowStep, alias: workflowStep }columns:workflowStepLabel:label: acme.digitizing.workflow_step.labelownerName:type: twiglabel: acme.digitizing.owner.labelfrontend_type: htmltemplate: AcmeDigitizingBundle:Digitizing:Datagrid/Property/owner.html.twigname:label: acme.digitizing.name.labelsorters:columns:name:data_name: digitizing.nameownerName:data_name: digitizing.ownerNameworkflowStepLabel:data_name: digitizing.workflowStepLabelfilters:column:name:type: stringdata_name: digitizing.nameownerName:type: stringdata_name: ownerNameworkflowStepLabel:type: entitydata_name: task.workflowStepoptions:field_type: oro_workflow_step_selectfield_options:workflow_entity_class: %acme_digitizing.atwork.class%properties:id: ~view_link:type: urlroute: acme_digitizing_viewparams:- idactions:view:type: navigateacl_resource: acme_digitizing_viewlabel: oro.grid.action.viewicon: eye-openlink: view_linkrowAction: trueoptions:entity_pagination: trueBut I was get this error An exception has been thrown during the rendering of a template (“The type must be defined”) in /oro/platform/src/Oro/Bundle/UIBundle/Resources/views/actions/index.html.twig at line 44.
I expected that type was setted for my action, but this exception throws again and again. Please, help me with this.
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.