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

9 posts / 0 new
Last post
Ahmed
Offline
Joined: 09/20/2017 - 05:45
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.

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57
Ahmed
Offline
Joined: 09/20/2017 - 05:45

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's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

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

Ahmed
Offline
Joined: 09/20/2017 - 05:45

Thank you Brian, it seems little be hard to do it for me, but I'll try.
Regards.

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

I am updating it for you.

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

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
Offline
Joined: 09/20/2017 - 05:45

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

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

No problem, glad I could help.