Page 1 of 1

Configuration/settin file

Posted: Tue Dec 18, 2012 7:19 am
by andrea
Hello,

I am new to Ix Developer.
I ask you if there is one or more file of settings / config / ini (similar to Visual Studio) where I could put some string / parameters such as connection string to an external database, query and so on.

Thank you very much

Re: Configuration/settin file

Posted: Tue Dec 18, 2012 8:59 am
by mark.monroe
If you want to connect to an external database you need to write scripts to do that. There are a number of posts on this forum that discuss databases and how you might connect to one that is located on another system.

Re: Configuration/settin file

Posted: Tue Dec 18, 2012 9:22 am
by andrea
I have already wrote script for connecting and having the data from remote server.
My question is where I can save/store the parameters (example connection string) for not hardcoding it in the script and could change it without having to modify the code and recompiling.

Thank you

Re: Configuration/settin file

Posted: Tue Dec 18, 2012 2:18 pm
by mark.monroe
You could put that information in a Tag and mark the tag as non-volatile. Otherwise you would have to write your own C# script that reads a file that you put in your project's "Project Files" folder.