製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Oracle Financials Cloud ADO.NET Provider

Oracle Financials Clouds データと連携するパワフルな.NET アプリケーションを短時間・低コストで作成して配布できます。

Oracle Financials Cloud データをDevExpress Data Grid にデータバインドする。


Oracle Financials Cloud 用の CData ADO.NET プロバイダーをDevExpress Windows Forms とWeb コントロールとともに使用し、Oracle Financials Cloud をチャートに入力します。


加藤龍彦
ウェブデベロッパー

oracleerp ロゴ画像

ADO.NET Adapter

ado ロゴ画像
DevExpress ロゴ画像

Oracle Financials Cloud 用の CData ADO.NET プロバイダーはサードパーティーコントロールで使うことのできる通常のADO.NET データベースアクセスコンポーネントを実装しています。データバインドするための通常のADO.NET プロセスに従うことで、UI コントロールから実データへの双方向アクセスを可能にします。 この記事では、CData を使ってDevExpress Windows Forms とウェブコントロールにデータバインドする方法を説明します。ここでは、最新のデータを表示するチャートにデータバインドします。

Using Basic Authentication

Oracle ERP への認証には、以下を設定する必要があります。

  • Url:接続するアカウントのURL。通常はOracle Cloud サービスのURL です。例:https://servername.fa.us2.oraclecloud.com
  • User:アカウントのユーザー名。
  • Password:アカウントのパスワード。

Windows Forms コントロール

下のコードでは、Oracle Financials Cloud でDevExpress のチャートに追加する方法を説明します。OracleERPDataAdapter はチャートコントロールのSeries プロパティにバインドします。コントロールのDiagram プロパティはx 軸とy 軸をカラム名として定義します。

using (OracleERPConnection connection = new OracleERPConnection( "Url=https://abc.oraclecloud.com;User=user;Password=password;")) { OracleERPDataAdapter dataAdapter = new OracleERPDataAdapter( "SELECT InvoiceId, Amount FROM Invoices WHERE Supplier = 'CData Software'", connection); DataTable table = new DataTable(); dataAdapter.Fill(table); DevExpress.XtraCharts.Series series = new DevExpress.XtraCharts.Series(); chartControl1.Series.Add(series); DataTable table = new DataTable(); series.ValueDataMembers.AddRange(new string[] { "Amount" }); series.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative; series.ArgumentDataMember = "InvoiceId"; series.ValueScaleType = DevExpress.XtraCharts.ScaleType.Numerical; chartControl1.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False; ((DevExpress.XtraCharts.SideBySideBarSeriesView)series.View).ColorEach = true; } The complete code example and the resulting chart.

Web コントロール

下のコードではOracle Financials Cloud でDevExpress Web を操作するための設定方法を説明します。OracleERPDataAdapter はチャートのSeries プロパティにバインドします。Diagram プロパティはx 軸とy 軸をカラム名として定義します。 using DevExpress.XtraCharts; using (OracleERPConnection connection = new OracleERPConnection( "Url=https://abc.oraclecloud.com;User=user;Password=password;")) { OracleERPDataAdapter OracleERPDataAdapter1 = new OracleERPDataAdapter("SELECT InvoiceId, Amount FROM Invoices WHERE Supplier = 'CData Software'", connection); DataTable table = new DataTable(); OracleERPDataAdapter1.Fill(table); DevExpress.XtraCharts.Series series = new Series("Series1", ViewType.Bar); WebChartControl1.Series.Add(series); DataTable table = new DataTable(); series.ValueDataMembers.AddRange(new string[] { "Amount" }); series.ArgumentScaleType = ScaleType.Qualitative; series.ArgumentDataMember = "InvoiceId"; series.ValueScaleType = ScaleType.Numerical; ((DevExpress.XtraCharts.SideBySideBarSeriesView)series.View).ColorEach = true; } An ASP.NET application created with the ADO.NET Provider and the DevExpress Web Forms control.(Salesforce is shown.)