Skip to main content

Add the name of the file imported by creating a new field

Dear All,
I would like to know if is it possible to add the name of the file imported by creating a new field in idea.
Thank you.

Ahmed Mon, 12/10/2018 - 04:14

Hi Brian,
thank you for your answer. However, I've many files and each one of them have a specific name. So how can I do this automatically ? 
 

Brian Element Mon, 12/10/2018 - 07:32

Hi Ahmed,

You would have to automate the script so it reads the imd files you want this added and then loop through each one adding the filename.

Thanks

Brian

Brian Element Mon, 12/10/2018 - 14:57

In reply to by Ahmed

Hi Admed,

Try this script.  You will need to place all your files into the same folder under your project.  Once the script starts it will ask you for the folder that the files are stored, if you select the folder all the imd files will be updated with a filename field.

Brian

Ahmed Tue, 12/11/2018 - 04:09

Hi Brian,
I run it and it works as I wanted it.
Thank you so much.