
PRO
rz90208
USA
Asked
— Edited

I have went thru the tutorial for the plugin and have successfully created a basic plugin. Now I want to go the next step and create a plugin that has a configuration page that is accessed by clicking the gear icon but can not figure out how to do it.
The plugin I hope to create will allow the user to create a connection to a database using a DSN.
RichardZ
Update: One Step Closer - I found the UCConfigurationButton
Update2: Stumbled upon ptp's testplugin on github and creating a ConfigForm.cs using it as my example.
That is a neat goal! I took the lazy way and just added a plan button to make configuration forms.
Does there appear to be a big difference or advantage?
I have been working on a robot brain database and with this plugin I hope to have one variable to send the SQL query and a variable array for the returned data. Then do all the coding in ARC. One of the first things I am going to try is to put in the database an excel spreadsheet of data I have of music. This spreadsheet has every song that hit the top 100, how long it charted, who wrote it, the artist, flip side, album, ..... from 1890 to 2011. (The Whitburn project).
But not being a .net programmer, the work is slow. My programming skills came from my work with Z80 assembly language, GWBasic, VBScript and Arduino C++ and of course ARC.
But with the help of the Community and Google, I think I can do it.
Take a look at creating your own functions by extending EZ-Script capability.
Then you could have something like....
or return an array like..
Look at this example in the plugin tutorial: https://synthiam.com/Community/Tutorials/146/23
@Dj Oh I like that idea, time for another cup of java and go thru this tutorial. I might be in over my head (as I usually am) with this database brain idea. I currently have a script running populating the database with every word in the english language.
Thank you DJ, I was hoping you would post something.
Ok new plan, thank you again DJ. Plugin that adds 2 new EZ-Script commands. DSNConnect and QueryDB
Thanks for writing this. Creating a database plugin is on my long list of things I will probably never get to, but there are so many potential uses for it.
Alan
@DJ Or anyone else who has the answer
Ok I think I am close but need a little help; Once the DSNConnect("DSNName", 1) is executed and I am ready to do a Query
How can I reference in my code the DSNName variable? Consider the following code. The line 5 from the bottom cn = new OdbcConnection("dsn=" + myDSN); The myDSN variable will not be defined. That parameter was supplied with the DSNConnect() command.
thank you for the information for my final assignment