GUID from data-mendix-id

0
Is there any way to get a guid from a MxId (e.g., data-mendix-id="{id}")? I basically want to get the object associated w/ a dataview using the dom element.
asked
2 answers
0

There is a getGuid in CommunityCommons-module. That will do exactly what you describe. Yo can get it from the Appstore.

answered
0

I found a solution because of Rob Duits:

var thisGuid = dijit.registry.findWidgets(DOMElement)[0].mxcontext.trackId;

answered