This topic contains 7 replies, has 2 voices, and was last updated by jakabadambalazs 9 years, 3 months ago.
- Topic
Hi,
I have a dialog widget which opens and renders a datagrid with editable checkboxes for each row. I’d like to send the id of each checked item to some controller action:
the dialog widget content:
123456789101112131415161718192021222324{% import 'OroUIBundle::macros.html.twig' as UI %}{% import 'OroDataGridBundle::macros.html.twig' as dataGrid %}<div class="widget-content"><script type="text/javascript">require(['oroui/js/mediator', 'oroui/js/widget-manager'],function(mediator, widgetManager) {//do something funky!});</script><div class="form-container">{{ dataGrid.renderGrid(referenceableEntityConfig.get("datagrid_name_select"), {ref_el_id: referenceableElement.id}, {} ) }}<form id="relationship_select_form" action="" method="post" class="listitem-form"><div class="widget-actions form-actions" style="display: none;"><button class="btn" type="reset">{{ 'Cancel'|trans }}</button><button class="btn btn-primary" type="submit">{{ 'Save'|trans }}</button></div></form></div></div>datagrid extract:
123456789...columns:isAssigned:label: 'assigned'editable: truefrontend_type: boolean...as you can see I did not have a form type just a plain form tag, so I need to intercept the submit action serialize the list of ids in some hidden field and send it to the controller.
can it be done this way by using some js or would it be better to build a form?
thanks
a\oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.