AnsweredAssumed Answered

How to display record data in the preview pane?

Question asked by spark2 on Jun 18, 2015
I'm trying to call apps.events.trigger('preview:render', ...) to show an arbitrary record in the preview pane on the right hand side of the drawer, when the user clicks on the "Create" button in the Contacts page.For example, I've tried to do this in create-actions.js, but it does not work:

app.api.call('GET', app.api.buildURL('Notes/74a36f66-ef45-5b85-af64-55822b97c612'), null, {
        success: function (data) {  
              app.events.trigger('preview:render', data);       
           }, error: function (err) {
          }
});

I am going about this wrong way?

Thanks

Outcomes