69
John Strano Technology Evangelist PowerBuilder 11.5 Geared Up for Accelerated Development

PowerBuilder 11.5 GA Overview v02

Embed Size (px)

Citation preview

Page 1: PowerBuilder 11.5 GA Overview v02

John StranoTechnology Evangelist

PowerBuilder 11.5 Geared Up for Accelerated Development

Page 2: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Capabilities and Features Since PowerBuilder 11.0

PowerBuilder 11.1 Incremental rebuild for .NET Targets

PowerBuilder 11.2 Certificate Store Support for Smart Client-published applications Usability and UI Enhancements Database Connectivity Enhancements Enabling the DEBUG Condition for ORCA and OrcaScript Application Pools for Web Forms in IIS7 Telerik RadControls Support EAServer Support for .NET-deployed PowerBuilder Clients AJAX Functionality for WebForm-Deployed Applications

Page 3: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

PowerBuilder Videos

For more PowerBuilder 11.x detail…

http://www.sybase.com/products/development/powerbuilder/videos

http://www.sybase.com/products/development/powerbuilder/webcasts

Page 4: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5 Overview

Page 5: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Products Packaged with PowerBuilder 11.5!

Premiums Packaged with PowerBuilder 11.5!

Page 6: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Packaged with PowerBuilder 11.5!

PocketBuilder 2.5 PowerBuilder Application Server Plug-in 1.1

PowerBuilder Skills for Heterogeneous EnvironmentsMobileJEE.NETClient/Server

Page 7: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5 Features

Page 8: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NETCode Access Security

Page 9: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Brief Introduction of Code Access Security (CAS)

Code Access Security is for .NET applications at runtime

It’s complementary to Role-Based securityhttp://msdn.microsoft.com/en-us/library/aa302422.aspx

While Role-Based security answers the questions of "Who is the user and what can the user do?" …

Page 10: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Brief Introduction of Code Access Security (CAS)

…Code security answers the questions of: Where is the code from? Who wrote the code? What can the code do?

CAS is a resource constraint model

PowerBuilder 11.5 supports CAS for: Windows Form (and Smart Client) Web Form applications NVOs (as Web Services or as Assemblies)

Page 11: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Security in Windows Form–Design time

Security settings for code groups are designated in the project painters

Four levels of trust Full Trust (default) Local Intranet Trust Can be customized

Internet Trust Can be customized

Custom

Page 12: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Security in WebForm / Web Service

By default, WebForm and Web Services are deployed and running with “Full trust” level Can choose “Custom” level in project painter A new configuration file web_customtrust.config

is generated and referred in application’s web.config

Application will be running in custom trust level Security setting in web.config and

web_customtrust.config will take effect in runtime

Page 13: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Security in WebForm / Web Service

WebForm security in project painter

WebForm deployed with custom trust

Page 14: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Strong Name Support for .NET Applications

You can ensure that a name is globally unique by signing an assembly with a Strong Name

Strong Names attempt to guarantee authorship of code

Strong Names satisfy the following requirements: Strong Names guarantee name uniqueness by relying on

unique key pairs Strong Names protect the version lineage of an assembly Strong Names provide a strong integrity check

http://msdn.microsoft.com/en-us/library/wd40t7ad.aspx

Page 15: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

PowerBuilder 11.5 can generate Strong Named assemblies for all

.NET applications

Can be put into GAC and shared by multiple Applications

Can protect the assembly from tampering

NVOs as .NET Web Services and as .NET Assemblies can be called

by partially trusted callers if they’re signed with Strong Name Mark the assembly with

AllowPartiallyTrustedCallerAttribute

Note: Select this property unless you trust the callers

Strong Name Support for .NET Applications

Page 16: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Sign an assembly as strong name assembly

Strong Name Support for .NET Applications

Page 17: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

PowerBuilder .NET Security Summary

CAS provides you more security control on system resources

However, it makes the developer’s work and administrator’s work more complex, and may cause more problems for the end users when running the application if not adequately planned and managed

Need to work with system administrator to get the system’s security policy during development

Need thorough testing with intended security policy Always grant the minimal, not the most, permissions enough

for performing certain operation to reduce potential risks

Page 18: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

More resources on .NET CAS

.NET Framework Developer's Guide: Code Access Securityhttp://msdn.microsoft.com/en-us/library/930b76w0(VS.80).aspx

How to Add a Trusted Publisher to a Client Computer for Click Once Applications http://msdn.microsoft.com/en-us/library/ms172241.aspx

.NET Framework tool: Code Access Security Policy Tool (caspol.exe) http://msdn.microsoft.com/en-us/library/cb6t8dtz(VS.80).aspx

Code Access Permissions from .NET Framework http://msdn.microsoft.com/en-us/library/h846e9b3.aspx

ASP.NET Code Access Security http://msdn.microsoft.com/en-us/library/87x8e4d1.aspx

Page 19: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

PNG Graphics Support

Page 20: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

PNG Support

PowerBuilder 11.5 supports the Portable Networks Graphics (PNG) file format for images in… Menus Toolbars Treeview controls DataWindow objects

PNG images have an “alpha” channel for transparency

Transparent portions of a PNG image display the background color gradient of the control to which they are assigned

Page 21: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

FDCC Compliance

Page 22: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

FDCC Compliance

The Federal Desktop Core Configuration (FDCC) is a security standard

Mandated by the US Office of Management and Budget (OMB)

Page 23: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

FDCC Compliance

To meet the FDCC security requirements, PowerBuilder 11.5 can be installed only by a system administrator

However…

PowerBuilder Applications that you develop with PowerBuilder

…are designed to be run in a standard user context without elevated system administration privileges

Page 24: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

FDCC Compliance

Most PowerBuilder files install by default to Program Files\Sybase subdirectories

Write access to these subdirectories is restricted to administrative users

FDCC requires all writable files must be copied or installed to directories where standard users have write access

Page 25: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

FDCC Compliance

Writable files that are shared by all users are installed in… C:\Documents and Settings\All Users\Documents\

Sybase\PowerBuilder 11.5

These include… The EASDemo databases All Code Examples directories and files All PowerBuilder Help files The Translation Toolkit directories and files

Page 26: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

FDCC Compliance

User-specific writable files are installed in the default Program Files\Sybase subdirectories but: Are copied to different locations the first time a user starts

PowerBuilder There will be as many copies of these files as there are

standard users who use PowerBuilder

C:\Documents and Settings\UserName subdirectory

Files copied or written

Local Settings\Application Data\Sybase\PowerBuilder 11.5

• PBxxx.INI files• License files

My Documents\Sybase\PowerBuilder 11.5\Tutorial

• PowerBuilder Getting Started tutorial

Page 27: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Transaction Object Enhancement

Page 28: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Transaction Object Enhancement

PowerBuilder 11.5 adds two new events for the Transaction object…

DBError

SQLPreview

Page 29: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Transaction Object Enhancement

With Embedded SQL…

Whenever an error occurs in the Transaction object, the DBError event is called The error code and error message are passed to the event

The SQLPreview event on the Transaction object is triggered before SQL statements are passed to the DBMS

Page 30: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Transaction Object Enhancement

DBError in concert with a DataStore or a DataWindow… DataWindow/DataStore DBError event is triggered

before the DBError event of the Transaction object

To coordinate these two events… Two additional return values have been added for

the DataWindow DBError event The meaning of the existing return values is

expanded to indicate whether the Transaction Object's DBError event should be fired

Page 31: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Transaction Object Enhancement

…cont’d…

SQLPreview in concert with a DataStore or a DataWindow…

If the return value of the DataWindow or DataStore’s SQLPreview event is 0:

Continue processing The Transaction object's SQLPreview event is

triggered

Page 32: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Remote Deployment of .NET Web Targets

Page 33: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Remote Deployment of .NET Web Targets

PowerBuilder 11.5 .NET targets do not require you to have IIS installed on the development computer

When you deploy directly to a remote computer…

System information about the deployment computer, including its OS and IIS versions, is passed to PowerBuilder…

…through the Windows Management Instrumentation (WMI) interface

Page 34: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Remote Deployment of .NET Web Targets

If you deploy to an MSI setup file…

Run the setup file on a deployment computer

PowerBuilder can use the Windows API to obtain information about the OS and IIS versions on that computer

Page 35: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Remote Deployment of .NET Web Targets

When you attempt to deploy Web Target projects on Vista or Windows 2008 under a standard user account…

Page 36: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Remote Deployment of .NET Web Targets

The User Account Control (UAC) dialog box displays

This dialog box allows you to elevate your privileges for the purpose of deployment

Page 37: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Remote Deployment of .NET Web Targets

Deploying .NET targets to a remote Windows Vista or Windows 2008 computer might require changes to…

UAC Windows firewall Distributed Component Object Model (DCOM) settings

Page 38: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Support for MS SQL Server 2008

Page 39: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

SQL Server 2008 Driver:Transaction Object Syntax

New Database Connection Parameter “Provider” Use the “SQLNCLI10” Provider value Required to take advantage of new features Default Provider value is SQLNCLI

Only supports SQL Server 2005 features

Example:

SQLCA.DBParm = “Provider='SQLNCLI10‘”

Page 40: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

SQL Server 2008 Driver

Mirroring Support New Data Types T-SQL Support

Page 41: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

SQL Server 2008 Driver

New Data Types TIME & DATETIME2 types

Have 0-7 fractional seconds precision. PowerBuilder supports 0-6 fractional seconds precision.

DATETIMEOFFSET Not supported in PowerBuilder 11.5

CLR Types HIERARCHYID SPATIAL DATA – GEOGRAPHY & GEOMETRY UDT – User defined CLR Types

FILESTREAM NOT strictly a new data type but a new storage mechanism for

Varbinary(max) data

Page 42: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Row Constructors INSERT INTO Employees VALUES ('tom', 25, 5), ('jerry', 30, 6); ESQL / DSQL

FORCESEEK – Table Hint Forces the query optimizer to use only an index seek ESQL / DSQL and DataWindow data source

MERGE Statement Dynamic SQL only

GROUPING SETS ESQL / DSQL and DataWindow data source

SQL Server 2008 Driver :T-SQL Support

Page 43: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

The MS SQL Server 2008 release was delayed The GA version of our driver cannot be included in time for the PowerBuilder 11.5 GA

Resolution: We will release PowerBuilder 11.5 with the SQL Server 2008 RC driver and support its GA in an EBF

SQL Server 2008 Driver:Delayed for GA

Page 44: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Support for Oracle 11g

Page 45: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Oracle 11g Support

Client Access through Proxy• New DBParm “ConnectAs” is used to set the End User

• Session and Connection Pooling New “Pooling” DBParm "CnnPool='Yes'“ …is now… "Pooling='Connection Pooling‘“

Implicit Fetching ROWID with SELECT … FOR UPDATE statements “ROWID” no longer needs to be explicitly added in the select

items Client-side caching of SQL query result sets

Page 46: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

OCI Driver Name Diagnostic aid “AppDriverName” DPBARM parameter allows you to set your

own client driver name XML data type support Oracle XMLType data type - introduced with Oracle 9i Supports returning single XMLType values from an Oracle

cursor

Oracle 11g Support

Page 47: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET Interoperability Language

Enhancements

Page 48: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET InteroperabilityLanguage Enhancements

PowerBuilder 11.5 will now…

Support method calls on PowerBuilder and .NET primitive types

Support method calls on PowerBuilder and .NET enumerated types

Support accessing static members of .NET classes with instance references

Page 49: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET InteroperabilityLanguage Enhancements

Function calls on .NET primitive and enumerated types:

Must be made inside a conditional compilation block for a .NET target.

Page 50: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET InteroperabilityLanguage Enhancements

Function calls on .NET Primitive Types:

Functionality of the primitive types is now merged with the functionality of their corresponding PowerBuilder primitives

#if defined PBDOTNET thenSystem.Int32 i1long i2i1.ToString()i2.ToString()…

#end if

Page 51: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET InteroperabilityLanguage Enhancements

Function calls are also supported on .NET enumerated types that you import into a .NET target

An enumerated type from an imported assembly:

namespace ns1.ns2;Public enum TimeOfDay{Morning = 0,AfterNoon = 1,Evening = 2}

Page 52: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET InteroperabilityLanguage Enhancements

e.g.: PowerBuilder allows you to call the ToString() method on the .NET TimeOfDay enumerated type after you reference it in your target:

#if defined PBDOTNET thenns1.ns2.TimeOfDay daytimedaytime = ns1.ns2.TimeOfDay.Morning!daytime.ToString()#end if

Page 53: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

.NET InteroperabilityLanguage Enhancements

PowerBuilder 11.5 lets you use instance references to access static members of .NET classes

string s#if defined PBDOTNET then

//OLD WAY//s=System.Web.HttpContext.Current.ToString()

//NEW WAYSystem.Web.HttpContext contextcontext = System.Web.HttpContexts = context.Current.ToString()#end if

Page 54: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

DataWindow Enhancements

Page 55: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New DataWindow Features: Supported Targets/Platforms

Traditional Win32

Windows Forms Target Smart Client-Published WinForm Applications

InfoMaker 11.5

Page 56: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Tooltips

Supported in all DataWindow presentation styles Except RichText and OLE

New property tab – New properties Columns and all Control types All new properties are expression-enabled

Page 57: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Gradients/Translucency of Backgrounds

Supported in all DataWindow presentation styles Except RichText and OLE

New property tab – New properties Bands Columns and all Control types All are expression-enabled (except for DWO scope/level)

Page 58: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Text Translucency

New Property on Font Properties tab Columns Text Buttons Group Boxes Computed Columns

Expression-enabled

Page 59: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New DataWindow Object-Level Properties

Same as band/column/control background properties except… Not expression-enabled Transparency is not really transparent

Defaults to a white background

Extras Images and Tiling

Page 60: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New Properties for Picture Control

transparentcolor Designate a color in the image to be transparent

Transparency Expression-enabled

Page 61: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New Column Edit Style - RichText

Supported in all DataWindow presentation styles Except RichText and OLE

Comes with Floating Font Toolbar Can be disabled Roll your own using new events, functions

Page 62: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New Column Edit Style - RichText

RichTextToolbarActivation New DataWindow control property – Enumerated

Enumerated values RichTextToolbarActivationNever! RichTextToolbarActivationOnEdit! RichTextToolbarActivationAlways!

Page 63: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New Column Edit Style - RichText

New Events

RichTextCurrentStyleChanged pbm_dwnrichtextcurrentstlechanged (long row, DWObject dwo) RichText column has focus The current style of the selection or cursor position has

changed

RichTextLoseFocus pbm_dwnrichtextlosefocus (long row, DWObject dwo) RichText column loses focus

RichTextLimitError pbm_dwnrichtextlimiterror (long row, DWObject dwo, string text) RichText data exceeds column size The “text “ argument is the plain text of the current column

Page 64: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New Column Edit Style - RichText

New Functions for getting and setting text…

Style (bold/underline/italic) Color Size Alignment Font

Page 65: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New DirectX Rendering for 3D Graph Styles

DirectX 9.0c (Direct3D) – Prerequisite Depends on drivers supporting Direct3D Graceful degradation to traditional rendering in case Direct3D is

absent Support can be checked by running DXDIAG.exe from a

command prompt

Installed by PowerBuilder 11.5 for the developer on “first use” Anti-aliasing should be disabled

Page 66: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

New DirectX Rendering for 3D Graph Styles

New Functions

GetSeriesTransparency/SetSeriesTransparency

GetDataTransparency/SetDataTransparency

GetSeriesLabelling/SetSeriesLabelling

GetDataLabelling/SetDataLabelling

Page 67: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

SUMMARY: PowerBuilder 11.5

Delivers Core Functionality Enhancements

DataWindow Look and Feel

Support for Newer DBMS versions

.NET Interoperability Language Enhancements

.NET Code Access Security

IIS7 and Vista

Page 68: PowerBuilder 11.5 GA Overview v02

PowerBuilder 11.5

Advanced PowerBuilder 11.5 Education

Moving to PowerBuilder 11.5 (DEV545) PowerBuilder 11.1, 11.2 and 11.5 changes and enhancements .NET enhancements and target integration with EAServer 6.1 Configure CAS (Code Access Security) security zones for .NET targets Advanced Web Services in WinForm and WebForm applications

Fast Track to PowerBuilder Part II (DEV633)

Taught on PowerBuilder 11.5 Focus on advanced client/server application development Gain higher-level expertise to build and deploy fully functional applications using PowerBuilder’s more advanced features

Sybase Education: provides a wide range of training delivery options: Onsite, SyberLearning LIVE, SyberLearning OnDemand and Learning Center

www.sybase.com/professional-services/education

Attend a class by December 31, 2008 and receive a 20% discount (NA & CAN only)

Page 69: PowerBuilder 11.5 GA Overview v02

Q&AThank you.