erdomke / InnovatorAdmin

A tool for managing Aras Innovator installations focusing on improving the import/export experience.
http://erdomke.github.io/InnovatorAdmin/
MIT License
58 stars 42 forks source link

Add an "explore" button to Connection Manager and AML Studio #48

Closed rneuber1 closed 8 years ago

rneuber1 commented 8 years ago

An "explore" button which opens the selected connection in the browser would be a nice to have feature:

image

image

Something like the code below, perhaps? (I'm still having problems with VS Design Editor, so no pull request from my side for this, yet). :weary:

 private void btnExplore_Click(object sender, EventArgs e)
    {
        try
        {
            lblMessage.Text = "Opening Browser...";
            Application.DoEvents();
            string arasUrl;
            ConnectionData cd = (ConnectionData)_bs.Current;

            arasUrl = cd.Url + "?database=" + cd.Database + "&username=" + cd.UserName + "&password=" + ConnectionData.ScalcMD5(cd.Password);
            System.Diagnostics.Process.Start(arasUrl);
            lblMessage.Text = "";
        }
        catch (Exception ex)
        {
            Utils.HandleError(ex);
        }
    }
rneuber1 commented 8 years ago

Maybe we should add "?bypass_logon_form=1" to the URL. This will make IE login automatically. And what about systems, where IE or (Firefox SE for newer Aras versions) is not the default browser!? ;-)

DavidSpackman commented 8 years ago

bypass_logon_form=1 didnt work for me I had to change this to bypass_logon_form=true