System.FileDocument set attribute

2
How can I set an attribute of System.FileDocument. I am able to upload a file to System.FileDocument using java but not sure how to set the name of the uploaded file. Thanks
asked
2 answers
1

See the 'Copying filedocuments' section in our API tutorial

answered
0

An attribute of a IMendixObject can be set using:

fileDocument.setValue(context, "Name", "Test file");

Edit: Or as Bas suggested, using the proxy:

fileDocument.setValue(context, system.proxies.FileDocument.MemberNames.Name, "new name");
answered