by Boris Makushkin
Риссия: (095) 918-3314, (095) 918-3111, USA: 1-630-961-5918, 1-866-528-0577
Today’s article topic is customization possibility demonstration for user web interface of Microsoft CRM. As an example we’ll use MS CRM integration with ASP.Net application, accessing customer data access, when customers are stored in Oracle 10g database. Let’s begin:
ORCL1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oraclehost.youtdomain.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL1)
)
)
OracleXaLib = "oracleclient8.dll"
OracleSqlLib = "orasql8.dll"
OracleOciLib = "oci.dll"
Note: in the Security tab we need to use security context with the credentials, having valid access to Oracle Database.
SET ANSI_NULLS ON
SET ANSI_WARNINGS ON
GO
CREATE PROCEDURE MyCustomersList AS
SELECT * FROM OPENQUERY(ORACLE, 'SELECT * FROM Customer')
RETURN
<quote>
<ToolBar ValidForCreate="0" ValidForUpdate="1">
<Button Title="Customers" ToolTip="Show customers list from Oracle DB" Icon="/_imgs/ico/16_convert.gif" Url="http://APOLLO/MyCustomersList.aspx" PassParams="1" WinParams="" WinMode="1"/>
</ToolBar>
<NavBar ValidForCreate="0" ValidForUpdate="1">
</NavBar>
</quote>
Change Url to your host name.
Sub Page_Load(Sender As Object, E As EventArgs)
Dim ConnectionString As String = "server=(local);database=Albaspectrum;trusted_connection=true"
Dim CommandText As String = "EXEC MyCustomersList"
Dim myConnection As New SqlConnection(ConnectionString)
Dim myCommand As New SqlCommand(CommandText, myConnection)
myConnection.Open()
DataGrid1.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
DataGrid1.DataBind()
End Sub
Happy programming, implementation, customization and modification! If you want us to do the job – call use 1-630-961-5918, 1-866-528-0577, Europe: +49 231 4387600! help@albaspectrum.com
Boris Makushkin is Lead Software Developer in Alba Spectrum Technologies – USA nationwide Oracle, Navision, Microsoft CRM, Microsoft Great Plains customization company, serving Chicago, Los Angeles, San Diego, San Francisco, Houston, Dallas, Austin, Phoenix, Atlanta, Seattle, Denver, Minneapolis, New York, Washington, Miami, Orlando, Fargo, Boston, Canada, Australia, UK, Russia, Europe and internationally ( http://www.albaspectrum.com ), he is Oracle, Unix, Microsoft CRM SDK, Navision, C#, VB.Net, SQL developer.
Риссия: (095) 918-3314, (095) 918-3111, USA: 1-630-961-5918, 1-866-528-0577