Presentation is loading. Please wait.

Presentation is loading. Please wait.

Design and Consume DataWindows in Visual Studio 2005

Similar presentations


Presentation on theme: "Design and Consume DataWindows in Visual Studio 2005"— Presentation transcript:

1 Design and Consume DataWindows in Visual Studio 2005
Geogy Zachariah, Staff Software Engineer Sybase Inc Abdul Azeez, Staff Software Engineer Sybase Inc.

2 Agenda What is DataWindow? DataWindow .NET 2.5 New Features.
DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005 Consume DataWindows in Visual Studio 2005 Web Service DataWindow

3 What is DataWindow? DataWindow .NET 2.5 New Features. DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005. Consume DataWindows in Visual Studio 2005. Web Service DataWindow.

4 What is DataWindow? Very popular Sybase patented technology.
Used by many tools to build data-driven applications PowerBuilder, Pocket Builder, DataWindow .NET, Sybase Workspace (JSF DataWindow) Based on heterogeneous data sources (viz. major RDBMS, ODBC, Flat files etc) Newly added data source is Web Service Can be designed in different presentation styles Freeform, Tabular, Grid, Graph, Cross Tab, Composite, Rich Text etc. DataWindow consists of 2 parts DataWindow Object, the METADATA describing data source and presentation DataWindow Control, the VISUAL CONTAINER for the DataWindow Object. (DataStore is NON VISUAL CONTAINER for DataWindow object)

5 What is DataWindow? DataWindow .NET 2.5 New Features. DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005. Consume DataWindows in Visual Studio 2005. Web Service DataWindow.

6 DataWindow .NET 2.5 New Features
DataWindow Designer Plug-in for Visual Studio 2005 Creating/Editing datawindow objects within VS 2005 IDE Manage DataWindow projects in VS 2005 IDE Solution Treeview Web DataWindow for ASP.NET Web Application Render data in a hierarchical (treeview) presentation formation in Web Page. WebService as a DataWindow source. Design datawindow objects based on Web Service methods.

7 What is DataWindow? DataWindow .NET 2.5 New Features. DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005 Consume DataWindows in Visual Studio 2005 Web Service DataWindow

8 DataWindow Designer in Visual Studio 2005
DataWindow Designer Visual Studio Plug-in Distributed as a set of Visual Studio packages DataWindow Project package. DataWindow Painter package. Database Painter package. Query Painter package. Note: package is a Microsoft terminology for plug-in

9 DataWindow Designer in Visual Studio 2005
DataWindow Designer Visual Studio Plug-in Architecture Packages Interop Layer Visual Studio IDE PB Internal Libraries DWDPlugout DW Project Package DW Painter Package DB Painter Package Query Painter Package

10 DataWindow Project Manage DataWindow Projects in VS 2005 IDE Solution Explorer New custom project type (.dwproj) is registered in VS 2005 DataWindow projects are created in VS 2005 like C# or VB project. Projects are hosted in the VS 2005 Solution Explorer..

11 DataWindow Project Continued…
Native Context menu items preserved for PowerBuilder and Standalone DataWindow Designer users. Additional Context menu items added to make it Visual Studio compliant. Example: UnloadProject, ReloadProject.

12 DataWindow Project Continued…
Features of DW Project package New or existing DataWindow Project files can be added to the VS 2005 Solution Explorer Create or add existing DataWindow repository file (.pbl) Create or Edit DataWindow/Query Objects Copy and Move datawindow, query objects across pbl files Export/Import datawindow, query objects to/from text files (.srd, .srq)

13 DataWindow Painter A functionality to visually design DataWindow objects in VS 2005 IDE. DataWindow Painter is hosted in VS 2005 as a Document Window. Contains all the design time views available in Standalone DataWindow Designer.

14 DataWindow Painter Continued…
Supports most of the DataWindow Presentation Styles Unsupported DataWindow Presentation Styles RichText, OLE.

15 DataWindow Painter Continued…
All the DataWindow Painter related menus integrated in VS IDE

16 DataWindow Painter Continued…
DW Properties View are completely rewritten to fit Visual Studio Properties Grid format Property naming follows the Visual Studio naming conventions . Alphabetical / Categorized View. New Categorization of properties. Expression dialog invocation mechanism changed. DW Graphical controls (Gobs) are registered with the Visual Studio ToolBox.

17 DataWindow Painter Continued…
DataWindow SQL Data Source is invoked in a Modal Dialog Supports both Graphical and Syntax view for the SQL Query

18 DataWindow Painter Continued…
Code View (Edit Source) is shown in a newly developed Visual Studio File Editor.

19 DataWindow Painter Continued…
Quick Demo

20 Database Painter Database Painters is invoked from View  Database Painter menu item. Hosted in the Visual Studio as a dockable/ floating/ tabbed Window. Has all the functionalities of the Standalone DataWindow Designer’s Database Painter. All the menus are integrated with the Visual Studio 2005 IDE.

21 Database Painter Continued…
Most of the database work can be done using Database painter Tasks you can perform in Database painter are Create or Modify Database profile Connect to a database Modify database objects Graphically Display Tables Manipulate Data Execute SQL statements (Create Stored Procedures etc.) Define or Modify Extended Attributes Access Database Utilities

22 Query Painter in Visual Studio 2005
Query Painter is hosted in the Visual Studio 2005 as a Document Window. Has all the functionalities of the Standalone DataWindow Designer’s Query Painter. All the menus are integrated with the Visual Studio 2005. Supports code view.

23 What is DataWindow? DataWindow .NET 2.5 New Features. DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005. Consume DataWindows in Visual Studio 2005. Web Service DataWindow.

24 Designing DataWindows in Visual Studio 2005
Typical workflow to create DataWindow Objects in Visual Studio 2005. Create a new DataWindow Project in Visual Studio solution similar to any C# or VB project Create a new DataWindow Repository file (.pbl) in the DataWindow Project. Configure database connections needed using Database painter. Create the DataWindow objects of your choice of style and based on the required criteria.

25 Designing DataWindows in Visual Studio 2005
Typical workflow – continued. Make many different customizations to the DataWindow object’s appearance (viz. Fonts, TextColor, Column Border etc). Also, add an existing DataWindow repository file (.pbl) to an existing open DataWindow Project Migrating previous versions of DataWindow projects (.dwp) created in Standalone DataWindow Designers 1.0/1.5 or 2.0 is also possible.

26 Designing DataWindows in Visual Studio 2005
Designing DataWindows – In Action

27 What is DataWindow? DataWindow .NET 2.5 New Features. DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005. Consume DataWindows in Visual Studio 2005. Web Service DataWindow.

28 Consume DataWindows in Visual Studio 2005
“Consume” would mean how the DataWindow object is utilized in the .NET Windows application or ASP.NET Web Form application

29 Consume DataWindows in Visual Studio 2005
To consume in .NET Windows Application Create a new C# or VB.Net Windows Application in VS 2005. Drag & Drop a DataWindow Control from DataWindow .NET tab of VS 2005 Tool Box on the Windows Form. Set the LibraryList and DataWindowObject properties for the DataWindow Control. Drag & Drop Transaction object from the ToolBox on the Windows Form and set appropriate database properties. Write few lines of C# or VB.Net code to connect to the database and call the retrieve method.

30 Consume DataWindows in Visual Studio 2005
Editing the DataWindow object in VS NET Windows Application Launches the DataWindow painter containing the underlying data window object, if the (.dwproj) project exists in the same Solution. If there is no dependent DataWindow project, it creates a project on the fly and launches the DataWindow painter.

31 Consume DataWindows in Visual Studio 2005
To Consume DataWindow in ASP.NET Web Application Create new ASP.NET WebSite in VS 2005 Drag & Drop WebDataWindowControl from DataWindow .NET tab of VS 2005 ToolBox on the Web Page. Import the required DataWindow repository file (.pbl) into the WebSite project. Set the LibraryList and DataWindowObject properties. Write few lines of code to connect to the database and retrieve.

32 Consume DataWindows in Visual Studio 2005
Consuming DataWindow – In Action

33 What is DataWindow? DataWindow .NET 2.5 New Features. DataWindow Designer in Visual Studio 2005. Designing DataWindows in Visual Studio 2005. Consume DataWindows in Visual Studio 2005. Web Service DataWindow.

34 Web Service DataWindow
New feature in DataWindow .NET 2.5 Create DataWindows based on Web Service method’s Return Value In Out Parameter Most Presentation styles are supported, except Crosstab and Graph Also ,supports DataWindow WebService Update to update database through appropriate web service methods. At runtime, WebService Connection object is used to retrieve Web Service datawindow (a.k.a Transaction object for database).

35 Web Service DataWindow
Web Service DataWindow – In Action

36 Further Information For Further Information,
Please Visit Us in the PowerBuilder/DataWindow.NET Booth You can find useful information at

37 Q&A ??


Download ppt "Design and Consume DataWindows in Visual Studio 2005"

Similar presentations


Ads by Google