2010-12-08 11 views
0

私の会社では、ソロモンでカスタム画面を作成してデータベースのテーブルからデータを読み込むことを希望しました。ダイナミクスソロモンのカスタマイズ

彼らはVisual Studio .netを使用していると私はVBAを使用して説明書を参照してください。

どうすればよいですか? VBAまたはビジュアルスタジオ5?

新しいアプリケーションを作成するにはどうすればよいですか?

答えて

0

お客様から同様の要望がありました。我々はDynamics Solomon 2011を使用しています。いくつかの調査をした後、最初にVS 2008をインストールして開発環境を作成し、それにSolomonをインストールする必要があることがわかりました。 VSの後にSolomonをインストールすると、Visual Studioでソロモン開発用のいくつかのプロジェクトテンプレートがセットアップされます。

https://community.dynamics.com/product/sl/f/35/t/80585.aspx

いくつかの協議がダイナミクスソロモンのために開発する場合、VS 2010が使用することは推奨されていないこともあります。

私はあなたのアプリケーションの中でSolomonデータベースに接続してデータオブジェクトを使用するために使用できるSDK for Dynamics Solomonもあると考えています。まだ試してみませんでしたが、このSDKを使用してコードを開発することについての参考文献があります。以下

http://www.microsoftdynamicsforums.com/forums/forum_posts.asp?TID=191&title=solomon-Object-model-code

ソロモンSDKを使用するサンプルコードである:

using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Text; 
using System.Windows.Forms; 
using Microsoft.Dynamics.SL.ObjectModel; 
using System.Threading; 
using System.Runtime.InteropServices; 




namespace LoginSL 
{ 
    class Program 
    { 
     [DllImport("kernel32")] 
     static extern void Sleep(uint dwMilliseconds); 
     public static Microsoft.Dynamics.SL.ObjectModel.SIVToolbar sivTB; 
     public static Microsoft.Dynamics.SL.ObjectModel.SIVApplication sivApp; 

     static void Main(string[] args) 
     { 

      sivTB = new SIVToolbar(); 


      sivTB.Login("servername", "systemdb", "company", "username", "password"); 

      sivApp = sivTB.StartApplication("9850000.exe"); 
      sivApp.Visible = true; 

      string datafile = "C:\\0101000.DTA"; 
      string ctrlfile = "C:\\0101000.ctl"; 
      string outfile = "C:\\0101000.log"; 
      //In C# "\\" is the predefined escape sequence for backslash. 

      sivApp.Controls["cdata"].Value = (datafile.ToUpper()); 
      sivApp.Controls["cfiletype"].Value = "ASCII"; 
      sivApp.Controls["cscreen"].Value = "0101000"; 

      sivApp.Controls["ccontrol"].Value = (ctrlfile.ToUpper()); 
      sivApp.Controls["coutput"].Value = (outfile.ToUpper()); 
      sivApp.Controls["cBegProcessing"].Value = true; 

      Sleep(5000); //remove the comment marks at the beginning of this line for workaround 


      sivApp.Quit(); 
      sivApp.Dispose(); 

      //GC.Collect(); 
      //GC.WaitForPendingFinalizers(); 
      //GC.Collect(); 

      Sleep(5000); //remove the comment marks at the beginning of this line for workaround 

      sivTB.Logout(); 
      sivTB.Quit(); 
      sivTB.Dispose(); 


      //GC.Collect(); 
      //GC.WaitForPendingFinalizers(); 
      //GC.Collect(); 
      //MessageBox.Show("TI is complete"); // Displays complete message 

     } 
    } 

    } 
関連する問題