ノーコードでクラウド上のデータとの連携を実現。
詳細はこちら →無償トライアル:
無償トライアルへ製品の情報と無償トライアルへ:
Bullhorn CRM データに連携する.NET アプリケーションを素早く、簡単に開発できる便利なドライバー。
加藤龍彦
ウェブデベロッパー
ADO.NET Adapter
データバインドによって、UI コントロールからデータに接続できます。 CData ADO.NET Provider for BullhornCRM を使って、Visual Studio 上でWindows Forms およびWeb Forms とBullhorn CRM をデータバインドできます。この記事で、Bullhorn CRM を、ウィザードから変更をリアルタイムで反映するチャートにデータバインドする方法を説明します。 Code Walk-through セクションではチャートはほんの10行のコードで作成します。
データバインドは3つのステップから構成されます;コントロールのインスタンス作成、データソースの設定、データバインドです。
下の手続きにより、データソース構成ウィザードを使ってチャートコントロールとBullhorn CRM との接続を作成します。ウィザード上でデータバインドをするBullhorn CRM エンティティを使います。
データ接続の選択ダイアログで、「変更」をクリックして、CData Bullhorn CRM データソースを選択して、接続プロパティを入力します。下は代表的な接続文字列ですです。:
DataCenterCode=CLS33;OAuthClientId=myoauthclientid;OAuthClientSecret=myoauthclientsecret;
Begin by providing your Bullhorn CRM account credentials in the following:
If you are uncertain about your data center code, codes like CLS2, CLS21, etc. are cluster IDs that are contained in a user's browser URL (address bar) once they are logged in.
Example: https://cls21.bullhornstaffing.com/BullhornSTAFFING/MainFrame.jsp?#no-ba... indicates that the logged in user is on CLS21.
Bullhorn CRM uses the OAuth 2.0 authentication standard. To authenticate using OAuth, create and configure a custom OAuth app. See the Help documentation for more information.
データソースの追加とデータベースオブジェクトを選択したら、チャートにオブジェクトをバインドします。この例では、X軸に Id をY軸に CandidateName を設定します。
チャートはこれでBullhorn CRM にデータバインドされました。チャートを実行して最新のデータを表示させましょう。
Bullhorn CRM へのデータバインドはほんの数行のコードのみが必要で、3つの簡単なステップで完了できます。
下に完全なコードを示します:
BullhornCRMConnection conn = new BullhornCRMConnection("DataCenterCode=CLS33;OAuthClientId=myoauthclientid;OAuthClientSecret=myoauthclientsecret;");
BullhornCRMCommand comm = new BullhornCRMCommand("SELECT Id, CandidateName FROM Candidate WHERE CandidateName = 'Jane Doe'", conn);
BullhornCRMDataAdapter da = new BullhornCRMDataAdapter(comm);
DataSet dataset = new DataSet();
da.Fill(dataset);
chart1.DataSource = dataset;
chart1.Series[0].XValueMember = "Id";
chart1.Series[0].YValueMembers = "CandidateName";
// Insert code for additional chart formatting here.
chart1.DataBind();