GW
Hello all,
I am writing a report (running over a model) and trying to add a document (.doc) that attached to the Attribute Documentation on an object of type Function.
I think i managed to find the maintained functions and retrieve an ExternalDocument Entity, but now I can't figure out how to add these is my report.
if (FunctionObjectList[i].ObjDef().Attribute(Constants.AT_DOCUMENTATION,g_nloc).getExternalDocument ( ).isValid ( )) { var DocumentConnected = FunctionObjectList[i].ObjDef().Attribute(Constants.AT_DOCUMENTATION,g_nloc).getExternalDocument ( ).getDocument ( ) }
The report includes some other tables and model graphics.
Thank you very much in advance,
Gilad
Hi Gilad,
I have 7.1.0 version :( ... but there is system attribute Link 1 (AT_EXT_1) in function. You can place there file name and you can have placed this file on server directory:
Context.getTempPath()
Then you can show this file in report:
Dialogs.shell("example.doc");
I don't know if this is good solution, maybe this new AT_DOCUMENT attribute is better.