Configuration/settin file

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
andrea
Posts: 72
Joined: Tue Dec 11, 2012 5:44 am

Configuration/settin file

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Configuration/settin file

Post 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.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

andrea
Posts: 72
Joined: Tue Dec 11, 2012 5:44 am

Re: Configuration/settin file

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Configuration/settin file

Post 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.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply