OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – HTML, JavaScript, CSS, Design Questions refresh of grid after insert

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25624

    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
  • #25625

    Hryhorii Hrebiniuk
    Participant

    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
    }
    }
    },
    }) }}

    #25626

    golriz.nourani
    Participant

    thanks a lot . :)

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

The forum ‘OroCRM – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.

Back to top