UpdateDataSet Sample
====================

This sample allows the user to specify the AppServer hostname,
AppServer Broker name, and the range of records to retrieve. 
It allows updates to the order lines of an order and reconciles
those updated with the Database and returns the updated results
back to the client. 

The application uses the Progress .NET Open Client to obtain Customers, 
Orders, and OrderLines records from an Progress AppServer that is 
connected to a sports2000 database


Steps to run the sample:  
======================== 

1) Run ProxyGen (Start->Programs->OpenEdge->Proxy Generator)
   a) Open the file UpdateDataSet.xpxg found in: 
	<yourInstallDir>\samples\open4gl\dotnet\AppService\UpdateDataSet

   b) Select File->Generate and press OK. 
      This will generate the .NET proxy dll in 
	<yourInstallDir>\samples\open4gl\dotnet\UpdateDataSet\UpdateProxy\UpdateAO.dll

   	If your install directory is different than C:\Progress\OpenEdge, you 	need to do the following changes before generating:

	- Select Tools->Change Propath
	  Change the propath component
		C:\Progress\OpenEdge\src\samples\dotnet\AppService
	  to:
		<yourInstallDir>\samples\dotnet\AppService

   	- Change the Output dir on the General tab of the Generate dialog to
		<yourInstallDir>\samples\dotnet\UpdateDataSet\

2) Setup a Progress AppServer that is connected to a 
   sports2000 database.

3) Copy the .p files from the ..\AppService\GetCustOrders directory 
   into the AppServer's work directory - typically C:\OpenEdge\WRK.
   Keep the 4GL files in the GetCustOrders subdirectory.

4) Open the 'GetCustOrders.sln' in Visual Studio .NET

5) Update the references in the project if necessary. This sample
   assumes that OpenEdge was installed to the default location
   C:\Progress\OpenEdge. If your install directory is different, 
   you must remove and re-add the following references:
	<yourInstallDir>\samples\dotnet\UpdateDataSet\UpdateProxy\Progress.o4glrt.dll
	<yourInstallDir>\src\samples\dotnet\UpdateDataSet\UpdateProxy\UpdateAO.dll
	
5) Build & run the sample.




Related Files:
==============

.NET Solution/Project Files
	UpdateDataSet.sln
	UpdateDataSet.suo
	UpdateDataSet.csproj

.NET Client Code
	MainForm.cs
	MainForm.resx
	EstablishConnection.cs
	EstablishConnection.resx


Proxy File (built in step 1)
	UpdateProxy\UpdateAO.dll
		Contains the .NET Open Client Object classes in the 
		UpdateProxy namespace:
		  	UpdateAO

		This also includes the .NET Strongly-typed DataSet class
		in the UpdateProxy.StrongTypesNS namespace:
			dsOrderDataSet
			dsOrderDataSet.ttOrderDataTable
			dsOrderDataSet.ttOrderRow
			dsOrderDataSet.ttOLineDataTable
			dsOrderDataSet.ttOLineRow

4GL Files 
	<yourInstallDir>\samples\open4gl\dotnet\AppService\UpdateDataSet\*

Open Client Runtime
	<yourInstallDir>\dotnet\deploy\signed\*
		Open Client Runetime files needed for deployment.
		By default OpenEdge is installed to C:\Progress\OpenEdge


