jagdish - Monday, August 13, 2012 5:25 AM:
Hi,
i am jagdish beginner in Aras Development
i want to open .iso and .ai files in Isodraw and Arboetx illustrator i dont have any idea how to do it .
i have tried following code but it didnt worked.
please give me some idea.................???
if (fileType == "(.iso file type)" )
try {
myApp = new ActiveXObject("Isodraw.Application");
if (myApp !== null) {
myApp.Visible = true;
myApp.Presentations.Open(filePath);
}
aknourenko - Tuesday, August 21, 2012 11:33 AM:
Unfortunately it's not very clear from your question what exactly you're trying to do. Let's assume that you are talking about the following situation: file of one of these types (let's say - *.iso) stored in Innovator vault and referenced by a container item (e.g. Document); you open the container document in Innovator's form and trying to click on the *.iso file referenced by the container. If this is the case then all you have to do is to have a proper FileType for *.iso extension in Innovator (if it's not defined yet). Make sure that the FileType has the correct mime type defined. In this case when the file of this File Type is stream from the vault the mime type defined on the File Type will be specified in the response. When browser processes the response it will use the mime type to open the file using proper application (providing that you client machine has the application registered for the mime type) OR, if no proper application is registered, will suggest you to either save the file on disk or manually pick an application.
If you ask how in general write a JS code that will run some third party app and loads some file into it then the question should be asked on another (not Aras Innovator) forum.
jagdish - Thursday, August 23, 2012 6:28 AM:
Thank you very much.aknourenko for your valuable suggestion.......actually i want to launch Isodraw(PTC software to open .iso files) using javascript code
i would try another approach.........!!!