PWB528: XML DataWindow Dean Jones CEO, PowerObjects August 15-19, 2004.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Script Session1 INTRODUCTION.
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
The Web Warrior Guide to Web Design Technologies
1 Chapter 12 Working With Access 2000 on the Internet.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Chapter 14 Introduction to HTML
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Web Design Basic Concepts.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Dynamic Web Pages (Flash, JavaScript)
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Building a UI with Zen Pat McGibbon –Sales Engineer.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
WORKING WITH XSLT AND XPATH
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
1 HTML References: A HTML Tutorial: /HTMLPrimer.html
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
DSpace UI Alexey Maslov. DSpace in general A digital library tool useful for storage, maintenance, and retrieval of digital documents Two types of interaction:
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 34 - Case Study: Active Server Pages and XML Outline 34.1 Introduction 34.2 Setup and Message.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Chapter 8 Cookies And Security JavaScript, Third Edition.
ECA 228 Internet/Intranet Design I XSLT Example. ECA 228 Internet/Intranet Design I 2 CSS Limitations cannot modify content cannot insert additional text.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
PowerBuilder Online Courses - by Prasad Bodepudi
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
DHTML.
Unit 4 Representing Web Data: XML
Chapter 1 Introduction to HTML.
Introduction to Internet Programming
Design and Consume DataWindows in Visual Studio 2005
Tutorial 7 – Integrating Access With the Web and With Other Programs
Presentation transcript:

PWB528: XML DataWindow Dean Jones CEO, PowerObjects August 15-19, 2004

Agenda  Who is PowerObjects  Overview of HTML DataWindow  Go into XML DataWindow  Build some XML DataWindows  Summary  Questions

Overview of PowerObjects?  Multi-Million dollar company  Custom Systems Developer  Complete Solution Provider  Distributed Development  Sybase Partner  iAnywhere Partner  Symbol Partner  On the Federal GSA Schedule  Certified Developers  Microsoft, Sybase and Java

Review HTML DataWindow Design JSP Page Server-Side Client-Side User request page HTMLGenerator component DataStore HTML Page Client-Side

Review HTML DataWindow Design JSP Page Server-Side Client-Side User request page HTMLGenerator component DataStore Step 1 HTTP get HTML Page Client-Side

Review HTML DataWindow Design JSP Page Server-Side Client-Side User request page HTMLGenerator component DataStore Step 1 HTTP get Step 2 Entire DataWindow generation embedded in HTML document sent to client HTML Page Client-Side

Review HTML DataWindow Design JSP Page Server-Side Client-Side User request page HTMLGenerator component DataStore Step 1 HTTP get Step 2 Entire DataWindow generation embedded in HTML document sent to client Step 3 HTTP response HTML Page Client-Side

Review HTML DataWindow Design JSP Page Server-Side Client-Side User request page HTMLGenerator component DataStore Step 1 HTTP get Step 2 Entire DataWindow generation embedded in HTML document sent to client Step 3 HTTP response Step 4 User interacts with DataWindow and entire process repeated HTML Page Client-Side

HTML Web DataWindow Limitations  DataWindow generated entirely in static HTML on page  Regeneration required on every round-trip to server  Most of this regeneration is duplicate work  HTML structural layout of DataWindow rendering  CSS style of DataWindow elements as displayed in browser  Almost all client-side JavaScript functionality & control object  Customization of generated HTML or CSS not supported  Nested and composite DataWindows not supported

Next Generation Web DataWindow

XML Web DataWindow  The XML Web DataWindow builds upon the existing HTML Web DataWindow plus:  XML-based architecture  latest client-side XML technologies including XHTML, XML, XSLT and CSS  Improved performance using less bandwidth on round trips to the server

XML Web DataWindow  The XML Web DataWindow generates DataWindow content(XML), layout(XSLT), and style(CSS) separately and renders in the browser a fully-functional DataWindow in XHTML.  Since the XSLT (the layout) and the CSS (the stylesheet) may be cached on the client, only the relatively small XML content (dynamic/displayed data) consumes bandwidth on subsequent downloads as the user ‘browses’ the data

The DataWindow engine generates each of these components at runtime. XML Web DataWindow XHTML XML Content XSLT CSS Determines style of elements as displayed in browser Determines structural layout

The DataWindow engine generates each of these components at runtime. XML Web DataWindow XHTML XML Content XSLT CSS Determines style of elements as displayed in browser Determines structural layout DataWindow content is generated in XML

The DataWindow engine generates each of these components at runtime. XML Web DataWindow XHTML XML Content XSLT CSS Determines style of elements as displayed in browser Determines structural layout DataWindow layout is generated in XSLT. XSLT also creates the structural layout of the page, saving bandwidth.

The DataWindow engine generates each of these components at runtime. XML Web DataWindow XHTML XML Content XSLT CSS Determines structural layout An XSLT transformation is performed to render in the browser a fully-functional DataWindow in XHTML. Determines style of elements as displayed in browser

The DataWindow engine generates each of these components at runtime. XML Web DataWindow XHTML XML Content XSLT CSS Determines structural layout DataWindow style is generated in CSS. Generating as many of the style rules in CSS as possible (including all absolute positions) increases page download speed because the style sheet is downloaded only once and cached. Determines style of elements as displayed in browser

XHTML  XHTML is an XML compliant version of HTML  Most popular web vocabulary, leveraging the power of XML  Supported by the vast majority of web browsers  XHTML 1.0 = HTML 4.01 in XML syntax

XHTML Benefits  Separation of presentation markup from content  DOM-based generation and parsing  Tree View-based editing  XHTML Web pages are processed and rendered more quickly in the browser than HTML pages due to valid,well-formedness rules of XHTML/XML

Client-Side XML Benefits  Reduces amount of data transferred back and forth between client and server  Increases speed of browsing  No longer have to download a complete HTML page on each request  More responsibility for processing page passed to client  Reduces server-side load; more scalable  XML data retrieved from server without having to regenerate and download entire DataWindow to browser  JavaScript used to take XML client-side and generate dynamic XHTML content  XML document stored in browser’s memory used as client-side data cache

XSLT  Extensible Style sheet Language Transformations  Provides a way of transforming XML documents into other document formats  For XHTML (which is fundamentally XML), XSLT can be used to transform an XML document into a styled XHTML web page for display in a browser  XSLT goes beyond CSS by allowing rules that change or infuse the content with layout and structure  XSLT also allows to define rules that not only alter the design, but also add, change, or remove elements of the content if appropriate

XSLT Benefits  Saves bandwidth  Clients only need to download and cache XSLT code once for DataWindow session  Server processing is reduced with more work being done on client

CSS  Allows style rules to be added to elements of a document, indicating how the content of those elements should be rendered  Helpful tool for separating the contents of an HTML, XHTML, or XML document from its visual presentation  Benefits include faster page download because the style sheet only needs to be downloaded once and cached  Ideally should contain all style rules (XHTML 1.0 Strict & 1.1+), maximizing separation and minimizing redundancy on every page

XML Web DataWindow Design JSP Page Server-SideClient-Side User request page XML Web DW component DataStore XML XSLT  XHTML JS rows Client-side JavaScript JS control CSS XHTML Page Client-Side

XML Web DataWindow Design JSP Page Server-SideClient-Side User request page XML Web DW component DataStore Step 1 HTTP get XML XSLT  XHTML JS rows Client-side JavaScript JS control CSS XHTML Page Client-Side

XML Web DataWindow Design JSP Page Server-SideClient-Side User request page XML Web DW component DataStore Step 1 HTTP get Step 2 DataWindow generated in separate XML, XSLT CSS, JS, with transform script sent to client XML XSLT  XHTML JS rows Client-side JavaScript JS control CSS XHTML Page Client-Side

XML Web DataWindow Design JSP Page Server-SideClient-Side User request page XML Web DW component DataStore Step 1 HTTP get Step 2 DataWindow generated in separate XML, XSLT CSS, JS, with transform script sent to client Step 3 HTTP response XML XSLT  XHTML JS rows Client-side JavaScript JS control CSS XHTML Page Client-Side

XML Web DataWindow Design JSP Page Server-SideClient-Side User request page XML Web DW component DataStore Step 1 HTTP get Step 2 DataWindow generated in separate XML, XSLT CSS, JS, with transform script sent to client Step 3 HTTP response XML XSLT  XHTML JS rows Client-side JavaScript JS control CSS Step 4 Client-side JavaScript uses XSLT to transform XML into XHTML and displays this in the in the browser XHTML Page Client-Side

XML Web DataWindow Design JSP Page Server-SideClient-Side User request page XML Web DW component DataStore Step 1 HTTP get Step 2 DataWindow generated in separate XML, XSLT CSS, JS, with transform script sent to client Step 3 HTTP response XML XSLT  XHTML JS rows Client-side JavaScript JS control CSS Step 5 User interacts with DataWindow, but next request only requires download of XML and JS rows Step 4 Client-side JavaScript uses XSLT to transform XML into XHTML and displays this in the in the browser XHTML Page Client-Side

Server-side Activity  The XML Web DataWindow generator is invoked in the DataWindow engine from server-side code.  An XHTML rendering of the DataWindow in a DOM tree.  A CSS style sheet, using a DOM tree, that includes all the styling information of the DataWindow object's elements, including absolute positions in the cascade.  Separate client-side JavaScript files for instantiating the control object and an array of row elements.  A set of static client-side JavaScript files.  A reverse transformation of the XHTML DOM tree into XML and XSLT DOM trees for Web publishing.  The XML tree contains the DataWindow data content for the page, and the XSLT tree contains the DataWindow object's structural layout.  A small amount of script to perform explicit transformation on the client side.

Client-side Activity  Downloads the XML source file that contains the DataWindow data content for the page and the XSLT style sheet, which is cached locally.  Performs a transformation using the XSLT processor.  Outputs the XHTML result into a section on the page.  Downloads, caches, and applies the CSS style sheet for display in the browser.  Downloads and caches the JavaScript files.

XML Web DataWindow Properties  CSSGen.ResourceBase - URL of the generated CSS style sheet to be referenced in a link element in the XHTML page ( href attribute value) dw_1.Object.DataWindow.CSSGen.ResourceBase= & '  CSSGen.PublishPath - Physical path of the Web site folder to which PowerBuilder publishes the generated CSS style sheet dw_1.Object.DataWindow.CSSGen.PublishPath = & 'C:\work\outputfiles\xmlsource‘  The PublishPath folder must correspond to the URL specified in the ResourceBase property. At runtime, after PowerBuilder generates the CSS style sheet to the PublishPath folder, it includes it in the final XHTML page by referencing it with the ResourceBase property in a element.

XML Web DataWindow Properties  JSGen.ResourceBase - URL of the generated JavaScript for performing client-side XSLT transformation and instantiation of client-side data. ( src attribute value) dw_1.Object.DataWindow.JSGen.ResourceBase = & '   JSGen.PublishPath - Physical path of the Web site folder to which PowerBuilder publishes the generated JavaScript. dw_1.Object.DataWindow.JSGen.PublishPath = & 'C:\work\outputfiles\xmlsource‘ …it includes it in the final XHTML page by referencing it with the value of the ResourceBase property in a element.

XML Web DataWindow Properties  XSLTGen.ResourceBase - URL referenced by transformation script. dw_1.Object.DataWindow.XSLTGen.ResourceBase = & '  XSLTGen.PublishPath - Physical path of the Web site folder to which PowerBuilder publishes the generated XSLT style sheet. dw_1.Object.DataWindow.XSLTGen.PublishPath = & 'C:\work\outputfiles\xmlsource‘  Client-side JavaScript in a generated page downloads it using a reference to the ResourceBase property. The JavaScript transforms the XML content to XHTML using the generated XSLT style sheet.

XML Web DataWindow Properties  XMLGen.ResourceBase - URL of the generated XML document that contains the XML Web DataWindow content. dw_1.Object.DataWindow.XMLGen.ResourceBase = & '  XMLGen.PublishPath - Physical path of the Web site folder to which PowerBuilder publishes the generated XML document that contains the XML Web DataWindow content. dw_1.Object.DataWindow.XMLGen.PublishPath = & 'C:\work\outputfiles\xmlsource'

XML Web DataWindow Properties  XHTMLGen.Browser - Browser in which XHTML generated within an XSLT style sheet is displayed.  Data.XMLWeb - A string containing browser-specific JavaScript that performs the XSLT transformation on the browser after the XML Web DataWindow generator generates all necessary components. The resulting XHTML contains a element.  The generated XHTML also includes:  XHTML input elements.  XHTML and JavaScript for navigation based on DataWindow button controls with scrolling actions.  State information about the modification status of data items.  Other properties shared with existing HTML Generation (HTMLGen) properties like ObjectName, SelfLink, RowsPerPage etc.

Supported and unsupported features CategoryWhat is supported Presentation styles All except Graph, RichText, OLE, Composite. Unsupported presentation styles retrieve data but display nothing. Nested reports Not supported Controls Supported controls: Column, Computed Field, Text, Picture, Button. These controls are ignored: Graph, OLE Object, OLE Database Blob, Report, Line,Rectangle,RoundRectangle,Oval,GroupBox. Retrieving data Up to 16 retrieval arguments. Filtering and sorting are supported by setting properties with the Modify method or calling methods on the server component. Sorting can also be specified via a client control method. User-specified queries using the QueryMode property are not supported. Updating data Same as PowerBuilder DataWindow control. The DataWindow object must contain editable columns.

Supported and unsupported features CategoryWhat is supported Edit styles All edit styles are supported except EditMask. If the DataWindow uses the EditMask edit style, the styles specified are treated as though they were specified as a display format.. DropDown DataWindows A drop-down DataWindow must be in the same PBL as the DataWindow in which it is used. Data for drop-down DataWindows is retrieved on the server and the values for the display column are converted to HTML Select list boxes. Display formats Supported, including the use of color. Validation rules The expression may be evaluated on the client or the server, depending on the expression. Property expressions Evaluated on the server.

Supported and unsupported features CategoryWhat is supported Layout Properties that specify autosizing of height and width or allow the user to resize or move controls are ignored. Properties The following properties are not supported: Sparse (Suppress Repeating Values) DataWindow object property· RightToLeft DataWindow control property Tab order Supported in HTML 4 browsers.

Browser requirements for XML Web DataWindow The XML Web DataWindow requires browsers that support the latest client-side technologies — XML, XSLT, XHTML, CSS and JavaScript. BrowserXML parser/XSLT processorXSLT version Internet Explorer 5, 5.5MSXML 2.0, 2.5 (update required)XSL-WD Internet Explorer 6.0MSXML 3.0XSLT 1.0 Netscape 6+TransforMiiXXSLT 1.0 Mozilla 1.0TransforMiiXXSLT 1.0

XML Web DataWindow Customization  XHTML that is generated at runtime by the XML Web DataWindow can be customized using an XHTML export template in the DataWindow painter's Export Template view for XHTML.  The user can reference:  DataWindow Column  Computed Field  Text controls  Independent DataWindow Expressions for each row in XHTML, wherever character data is allowed, to be replaced with text at runtime

XHTML Template View in DataWindow Painter

XHTML Template Customization  At design time, you can customize each of these XML Web DataWindow components:  Structural layout  Adding or removing basic XHTML document elements in the  Style rules of input field elements of the  Overriding default CSS stylesheet property values  Adding or removing CSS stylesheet declarations  Other XHTML element attributes  Overriding attribute values  Removing or adding attributes specific to these elements  JavaScript event handlers  Overriding/redirecting script handlers  Removing or adding event handlers, e.g. beyond the default PowerBuilder DataWindow emulation

Element Context Menus  Tree View items offer a context-sensitive pop-up menu for  customizing the XHTML Template or element.  Structural layout:  Edit  Add Child  Insert Before  Delete

Element Context Menus  Presentational and functional specifications:  Style Declarations

Element Context Menus  Presentational and functional specifications:  Element Attributes

Element Context Menus  Presentational and functional specifications:  JavaScript Event Handlers

XML Web DataWindow Customization  As with the XML DW template, multiple named versions of these XHTML Templates can be defined for each DataWindow object  The template to be used may be designated as a default at design time or by setting the Export.XHTML.UseTemplate DataWindow property at runtime

Demo  Lets look at more code….

Summary  HTML DataWindow  What worked and what didn’t  XML DataWindow  How its changed  Moving forward

Questions

Contact PowerObjects  Send and Questions:   Visit our Web-site:   Call Us:  Office (612)