Announcement

Collapse
No announcement yet.

Custom Button + Custom Modal Form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Button + Custom Modal Form

    I am trying to combine two of the tutorials from Docs.

    1. https://docs.espocrm.com/development/custom-buttons/
    2. https://docs.espocrm.com/development/modal/

    In detail view there is custom button, that should cause Modal to popup.

    Seems easy, but from the tutorials above, I am unable to achieve this result.

    If entry view is "action-handler", the method CreateView is unknown.

    If entry view is "view", the NestedViews is null and functions fail on this (eg. translate()).

    Can somebody provide some example showing this use case ?

    Thanks in advance.


  • #2
    Ok, found the answer for this.

    Important is, that "action-handler" is not View, therefore it cannot call method CreateView.

    So instead of calling this.createView(​), one should call this.view.createView(​)​

    The other needed steps are covered in tutorials above.

    Comment

    Working...
    X