Skip to content. | Skip to navigation

Sections
Personal tools
You are here: Home Accelerate Tutorials U2.NET -- Develop a native MultiValue style master-detail application

U2.NET -- Develop a native MultiValue style master-detail application

Page 1 of 7 Go to the next page

Discover rapid .NET application development using U2.NET's Visual Studio Integration

Level: Intermediate

Gopakumar Padmanabhan ( gpadmanabhan@rs.com), Software Engineer, Rocket Software

27 Mar 2008

This tutorial introduces Rocket U2 UniData® and UniVerse® (U2) MultiValue add-ins for Visual Studio (U2.NET), Rocket U2's new development tool for U2 MultiValue .NET applications. Develop a U2 MultiValue style master-detail application in C# in Visual Studio 2005. U2.NET’s Visual Studio integration is demonstrated. Then quickly put together a .NET purchase order application from a Visual Studio 2005 environment. The demo database that was installed as part of your standard U2.NET Developer installation is used.

Before you start

U2.NET prerequisites

In order to use U2.NET, you need to have the following environment:

  • Windows XP
  • UniData 7.1 or UniVerse 10.2
  • Microsoft .NET Framework 2.0
  • Visual Studio 2005



Back to top


Set up U2.NET

You should execute the following steps to get U2.NET set up and ready for this tutorial:

  1. Download and run U2NETDeveloper1.1.msi to install U2.NET on your system.
  2. Create server accounts. If you are using UniVerse, make sure these accounts are set to PICK flavor:
    • U2NETSYS
    • U2NETDEMO
  3. Use the Data Manager tool to:
    • Create a server profile called U2TESTSERVER, and download the server components onto your U2NETSYS account.
    • Create an account profile called U2NETDEMO to point to the U2NETDEMO account on the server, and install the demo database.
    • Enable the U2NETDEMO account for U2.NET access.
    • Create a login profile called U2NETDEMO that associates the server-profile,U2TESTSERVER, and account-profile, U2NETDEMO.
    • From the Data Manager left-pane tree view, expand the U2NETDEMO account and make sure you can see files in the account.
    • Close the Data Manager tool.

The completed tutorials are also supplied in the U2NET_Tutorials.zip file that you can find in the Download section of this tutorial.

Start Visual Studio 2005. U2.NET has a Data Manager window that integrates with Visual Studio 2005. If this window is not visible within Visual Studio, open it by navigating to View > IBMU2.U2NET Data Manager. You can dock the integrated Data Manager window like other Visual Studio windows.


Figure 1. Visual Studio Data Manager
Visual Studio Data Manager

Make sure that the U2.NET controls are also visible on the Visual Studio toolbox.


Figure 2. Visual Studio Toolbox
Visual Studio Toolbox

 



Back to top


 

Tutorial overview

This tutorial uses Visual Studio 2005 to create a Windows forms application in two stages. In Step 1, you create an application to browse the U2NETDEMO file, SALESORDER. The SALESORDER file has a three-level hierarchy of nested data: order, orderlines, and deliveries. You use U2.NET to create three logically connected grids to navigate through the Sales Order hierarchy in the SALESORDER file.

In Step 2, use U2.NET's linked data sources capability to extend the logical hierarchy beyond the three levels. The U2NETDEMO file, ORGANIZATION, holds both customers and suppliers. By using a select clause (SELECT ORGANIZATION WITH TYPE = "C"), you can fetch only customers. Also in Step 2, create a fourth grid control to browse the ORGANIZATION file, and then link this grid control to the other three you developed in Step 1, to create a four-level hierarchy that starts with customers and then drills down to customer orders, order lines, and deliveries.

 

Page 1 of 7 Go to the next page
Document Actions