Jump to content

MIS Linked Documents widget

Recommended Posts

17 hours ago, adamw said:

This is complete guess, without testing. but try this as the first line in your 'done' function:

thisResponse = Lib.Models.Resource.model(thisResponse.data);

That may give you an array of resource models, which you can then do stuff with. You might have to amend the rest of your code to cope with the new structure, but it should be fairly easy to do. That's if it works! Like I said, I usually leave the front-end stuff to those who are cleverer than me :P


Thanks @adamw This worked!

I ended up using the line here:

$mywrapper.on("click tap", ".clickable-row", function(ev) {
  var myResource = $(ev.currentTarget).data("resource");
  myResource = Lib.Models.Resource.model(myResource);
  this.trigger('os.app.preview', {
    name: 'preview',
    resource: myResource,
    launchAboveModal: false


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...