Hi Brian,
Hope you are doing good!
I'm trying to export an IMD file to Excel and trying to format the Excel via IDEA.
I want to display User name, Date and input /output file name in the excel file.
I figured out ways to display current date, input and output files names but, unable to find a way to display the username.
When we open History tab we see database, date and username displayed.
Ther must be some way to display the username. If someone know it, please let me know.
Regards,
Sridhar
srihaliostar
Offline
Last seen: 4 years 9 months ago
Joined: 07/18/2015 - 13:44
Hi Sridhar,
What you have to do is get the username from the Project Overview in IDEA as we don't have access to the imd file to get it from there. Which version of IDEA are you using as they changed the Project Overview database from 8.5 to 9 and 10. Once I know the version I will post some code for you.
Brian
Hi Brian,I'm using IDEA 9.2.0.630 (X86 )
I tried to get some example codes searching in the Language browser but couldn't get any code related to project overview.
Regards,
Sridhar
Hi Sridhar,
Sorry I haven't had a chance to get back to you yet. Hopefully this evening I will have time to dig out the code for you.
Brian
Hi Brian,
I know how busy you must be and really apreciate your effort in helping us.
I can wait for your answer.
Thanks,
Sridhar
Hi Sridhar,
Thanks for the reminder. I will try to get to it tonight.
Brian
Hi Sridhar
Here you go. The script will first ask you to select an IDEA file. It then connects to the project overview database which is a SDF database (microsoft), I use a program called CompactView to view the file. I then use a SQL query to access the database, for some strange reason when I try and use the WHERE command to only get that file it gives me an error so instead I am loading the entire database into memory and then using a loop to find the filename. I exclude task type 6 from the loop as that indicate that the IDEA file has been deleted so I ignore those. Once it finds a match it returns the username and exits the loop.
Hopefully you can adapt this for your own project.
Hi Brian,I'm very happy with the result. I have never got a chance to explore the project overview.
Thanks for the help. This is what i was expecting.I'm eager to learn more about the ProjectOverview.sdf.
What does the TaskType = 6 means?
Is there some documents which we can use to explore and learn more?
Regards,
Sridhar
Hi Sridhar,
There is no documentation that I know of, I just picked it up by looking around.
The TaskType 6 indicates that the file has been deleted so that is why I exclude those as you could delete a file and then create a new file with the same name, if these are not excluded the query might pick-up the deleted file information instead.
Glad the results worked for you.
Brian