ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by golriz.nourani golriz.nourani 2 years, 2 months ago.

  • Creator
    Topic
  • #12711
    golriz.nourani
    golriz.nourani
    Participant

    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 work

    could 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 %}

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #12738

    Hi,

    ‘reload-grid-name’ is an option for a widget component, not for a widget. It has to be on one level higher:

    {{ 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,
    'reload-grid-name' : 'assigned_tasks_grid',
    'options' : {
    'alias': 'task-dialog',
    'dialogOptions' : {
    'title' : 'create.task'|trans,
    'allowMaximize': true,
    'allowMinimize': true,
    'dblclick': 'maximize',
    'maximizedHeightDecreaseBy': 'minimize-bar',
    'width': 1000
    }
    }
    },
    }) }}

    #12758
    golriz.nourani
    golriz.nourani
    Participant

    thanks a lot . :)

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.