This is not available in a pluggable widget. Take a look at https://github.com/mendix/web-widgets/tree/main/packages/customWidgets
Hi Xu,
So if I understand correctly, you can't get the Mendix object in your code that is used to save your file?
With mx.data.get you can retrieve any Mendix object you want, with parameters to specify your search ( for instance a GUID, path or Xpath ). If you like to create a new object, you can use mx.data.create, and use that object to save your file.
If you need any help, please provide a bit more information ( maybe a code snippet ) about your exact struggle.
Best regards! Stefan.
I have uploaded the file to System.Image using mx.saveDocument
Now I want to associate this object with my current object
This is a mistake. The object created by mx.data.create cannot be set by referenceSet.setValue
I also can't get the object of the current operation and set the reference through the clientAPI