This topic contains 2 replies, has 2 voices, and was last updated by golriz.nourani 8 years, 7 months ago.
- Topic
Hi
I have a client Button on a form ( form has a grid of tasks [assigned_tasks_grid]) . client button will open a dialog and add a task .
I want to reload grid of form after closing dialog of add task so I set
‘reload-grid-name’: ‘assigned_tasks_grid’
but it does not workcould you help me?
{% if resource_granted(‘ace_task_create’) %}
{{ UI.clientButton({
‘dataUrl’: path(‘ace_task_create’),
‘aCss’: ‘no-hash’,
‘iCss’: ‘icon-list-alt’,
‘dataId’: entity.id,
‘label’ : ‘create.task’|trans,
‘widget’ : {
‘type’ : ‘dialog’,
‘multiple’ : false,
‘options’ : {
‘alias’: ‘task-dialog’,
‘reload-grid-name’ : ‘assigned_tasks_grid’,
‘dialogOptions’ : {
‘title’ : ‘create.task’|trans,
‘allowMaximize’: true,
‘allowMinimize’: true,
‘dblclick’: ‘maximize’,
‘maximizedHeightDecreaseBy’: ‘minimize-bar’,
‘width’: 1000
}
}
},
}) }}
{% endif %}
The forum ‘OroCRM – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.