Solved
How to get the name of ApplicationData with a different value?
I created a new ApplicationData and my intent is to just show the name of ApplicationData with a specific name, whenever the getFileName() is called. But the name would always return as {$CAD_NAME}
Below is the code:
EPMDocument epmDocument = (EPMDocument) object;
ContentHolder contentHolder = ContentHelper.service.getContents((ContentHolder) epmDocument);
ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) contentHolder);
if (contentItem != null ) {
ApplicationData appData = (ApplicationData) contentItem;
if (appData != null) {
//appData should have this cad name.
appData.setFileName(epmDocument.getCADName());
}
}
---
The issue with the above code is, the setFileName() would only show effect till I add the below line: - PersistenceHelper.manager.save(appData);
But with the above line there would be a database change for ApplicationData, which I do not need.
Is there a way to make the getFilename() of the ApplicationData return a specific String without change in the Db?

