I'm trying to use the document suggestion results to populate multiple UI fields after selection. The only value accessible post-selection is the document id. Is there a way to return a document object after selection, or is there an API call that can be used to pull the document details (metadata) post-selection? I'm also thinking I could do a rest call to pull the document details if there is not a better way of doing so within studio.
//HTML segment
nuxeo-document-suggestion id="BU" role="widget" value="{{document.properties.AP_Invoice:Route_CD}}" label="BU" min-chars="1" on-value-changed="_getSuggestionDoc" enrichers="thumbnail" result-formatter="[[thumbnailFormatter]]" >
Polymer script seciton:
_getSuggestionDoc: function(e) {
alert(JSON.stringify(e.detail));
//_getThumbnailUrl: function(doc) {
// retu "/nuxeo/api/v1/id/" + doc.;
}