Front-End : after action open smallEditView

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • item
    commented on 's reply
    Thanks a.slyzhko,
    very complexe for me, i imagine something so :

    this.quickModalEdit(careId) ... but no, it's my fault because front-end is very hard for me

  • a.slyzhko
    replied
    Look at core example

    Leave a comment:


  • item
    started a topic Front-End : after action open smallEditView

    Front-End : after action open smallEditView

    Hi,

    On front-end, this view -> Meeting Detail View, i have a postRequest, and in "reponse" i have a CareId.

    How i can "open" the small edit view of CareId ?

    I have try to view in console F12 what request do when open a smallEditView modal but not find any request.

    Regards


    PHP Code:
    Espo.Ajax.postRequest(self.model.entityType '/action/createCare', {
                                        
    meetingIdself.model.get('id'),
                                    }).
    then(function (response) {
                                        
    view.model.fetch();
                                        
    self.model.trigger('update-related:cares');
                                        
    console.log(response); // response have careId -> open to small Edit ?
                                    
    }); 
Working...