PowerBuilderOverview-JohnStrano

Embed Size (px)

Citation preview

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    1/70

    John Strano

    Technology Evangelist

    PowerBuilder 11.5Geared Up forAccelerated Development

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    2/70

    PowerBuilder 11.5

    Dedicated to Marilyn

    Marilyn Kotwal

    *Colleague and Friend*

    October 8, 1949 - January 21, 2008

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    3/70

    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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    4/70

    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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    5/70

    PowerBuilder 11.5Overview

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    6/70

    PowerBuilder 11.5

    Products Packaged with PowerBuilder 11.5!

    Premiums Packaged with

    PowerBuilder 11.5!

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    7/70

    PowerBuilder 11.5

    Packaged with PowerBuilder 11.5!

    PocketBuilder 2.5

    PowerBuilder Application Server Plug-in 1.1

    PowerBuilder Skil ls for Heterogeneous Environments

    MobileJEE

    .NET

    Client/Server

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    8/70

    PowerBuilder 11.5 Features

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    9/70

    PowerBuilder 11.5

    .NET

    Code Access Security

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    10/70

    PowerBuilder 11.5

    Brief Introduction of Code Access Security (CAS)

    Code Access Security is for .NET applications at

    runtime

    Its complementary to Role-Based security

    http://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?"

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    11/70

    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)

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    12/70

    PowerBuilder 11.5

    Security in Windows FormDesign time

    Security settings for code groups are designated in theproject painters

    Four levels of trust Full Trust (default)

    Local Intranet Trust

    Can be customized Internet Trust

    Can be customized

    Custom

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    13/70

    PowerBuilder 11.5

    Security in WebForm / Web Service

    By default, WebForm and Web Services aredeployed and running with Full trust level

    Can choose Custom level in project painter

    A new configuration file web_customtrust.configis generated and referred in applications

    web.configApplication will be running in custom trust level

    Security setting in web.config and

    web_customtrust.config will take effect in runtime

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    14/70

    PowerBuilder 11.5

    Security in WebForm / Web Service

    WebForm security in project painter

    WebForm deployed with custom trust

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    15/70

    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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    16/70

    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 calledby partially trusted callers if theyre signed with Strong Name

    Mark the assembly withAllowPartiallyTrustedCallerAttribute

    Note: Select this property unless you trust the callers

    Strong Name Support for .NET Applications

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    17/70

    PowerBuilder 11.5

    Sign an assembly as strong name assembly

    Strong Name Support for .NET Applications

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    18/70

    PowerBuilder 11.5

    PowerBuilder .NET Security Summary

    CAS provides you more security control on systemresources

    However, it makes the developers work and administratorswork more complex, and may cause more problems for theend users when running the application if not adequatelyplanned and managed

    Need to work with system administrator to get the systemssecurity 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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    19/70

    PowerBuilder 11.5

    More resources on .NET CAS

    .NET Framework Developer's Guide: Code Access Security

    http://msdn.microsoft.com/en-us/library/930b76w0(VS.80).aspx

    How to Add a Trusted Publisher to a Client Computer for Click OnceApplications

    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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    20/70

    PowerBuilder 11.5

    PNG Graphics

    Support

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    21/70

    PowerBuilder 11.5

    PNG Support

    PowerBuilder 11.5 supports the Portable NetworksGraphics (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 thebackground color gradient of the control to which they areassigned

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    22/70

    PowerBuilder 11.5

    FDCC

    Compliance

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    23/70

    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)

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    24/70

    PowerBuilder 11.5

    FDCC Compliance

    To meet the FDCC security requirements, PowerBuilder11.5 can be installed only by a system administrator

    However

    PowerBuilderApplications that you develop with PowerBuilder

    are designed to be run in a standard user context withoutelevated system administration privileges

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    25/70

    PowerBuilder 11.5

    FDCC Compliance

    Most PowerBuilder files install by default to ProgramFiles\Sybase subdirectories

    Write access to these subdirectories is restricted toadministrative users

    FDCC requires all writable files must be copied orinstalled to directories where standard users have writeaccess

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    26/70

    PowerBuilder 11.5

    FDCC Compliance

    Writable files that are shared by all users are installed in

    C:\Documents and Settings\AllUsers\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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    27/70

    PowerBuilder 11.5

    FDCC Compliance

    User-specific writable files are installed in the defaultProgram Files\Sybase subdirectories but:

    Are copied to different locations the first time a user startsPowerBuilder

    There will be as many copies of these files as there arestandard users who use PowerBuilder

    C:\Documents and Settings\UserNamesubdirectory

    Files copied or written

    Local Settings\Application

    Data\Sybase\PowerBuilder 11.5

    PBxxx.INI files

    License filesMy Documents\Sybase\PowerBuilder11.5\Tutorial

    PowerBuilder GettingStarted tutorial

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    28/70

    PowerBuilder 11.5

    Transaction Object

    Enhancement

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    29/70

    PowerBuilder 11.5

    Transaction Object Enhancement

    PowerBuilder 11.5 adds two new events for theTransaction object

    DBError

    SQLPreview

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    30/70

    PowerBuilder 11.5

    Transaction Object Enhancement

    With Embedded SQL

    Whenever an error occurs in the Transaction object, theDBError event is called

    The error code and error message are passed to the event

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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    31/70

    PowerBuilder 11.5

    Transaction Object Enhancement

    DBError in concert with a DataStore or a DataWindow

    DataWindow/DataStore DBError event is triggeredbefore the DBError event of the Transaction object

    To coordinate these two events

    Two additional return values have been added forthe DataWindow DBError event

    The meaning of the existing return values is

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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    32/70

    PowerBuilder 11.5

    Transaction Object Enhancement

    contd

    SQLPreview in concert with a DataStore or aDataWindow

    If the return value of the DataWindow or DataStoresSQLPreview event is 0:

    Continue processing

    The Transaction object's SQLPreview event istriggered

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    33/70

    PowerBuilder 11.5

    Remote Deployment

    of .NET Web Targets

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    34/70

    PowerBuilder 11.5

    Remote Deployment of

    .NET Web Targets

    PowerBuilder 11.5 .NET targets do not require you tohave 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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    35/70

    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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    36/70

    PowerBuilder 11.5

    Remote Deployment of

    .NET Web Targets

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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    37/70

    PowerBuilder 11.5

    Remote Deployment of

    .NET Web Targets

    The User Account

    Control (UAC) dialog boxdisplays

    This dialog box allowsyou to elevate yourprivileges for the purposeof deployment

    R D l f

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    38/70

    PowerBuilder 11.5

    Remote Deployment of

    .NET Web Targets

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

    UAC

    Windows firewall

    Distributed Component Object Model (DCOM) settings

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    39/70

    PowerBuilder 11.5

    Support for

    MS SQL Server 2008

    SQL S 2008 D i

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    40/70

    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

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    41/70

    PowerBuilder 11.5

    SQL Server 2008 Driver

    Mirroring Support

    New Data Types

    T-SQL Support

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    42/70

    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 forVarbinary(max) data

    SQL Server 2008 Driver :

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    43/70

    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

    SQL Server 2008 Driver:

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    44/70

    PowerBuilder 11.5

    The MS SQL Server 2008 release was delayed

    The GA version of our driver cannot be included in time forthe PowerBuilder 11.5 GA

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

    SQL Server 2008 Driver:

    Delayed for GA

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    45/70

    PowerBuilder 11.5

    Support for

    Oracle 11g

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    46/70

    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 FORUPDATE statements

    ROWIDno longerneeds to be explicitly added in the selectitems

    Client-side caching of SQL query result sets

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    47/70

    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 Oraclecursor

    Oracle 11g Support

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    48/70

    PowerBuilder 11.5

    .NET Interoperability

    LanguageEnhancements

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    49/70

    .NET Interoperability

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    50/70

    PowerBuilder 11.5

    .NET Interoperability

    Language Enhancements

    Function calls on .NET primitive and enumerated types:

    Must be made inside a conditional compilation blockfor a .NET target.

    .NET Interoperability

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    51/70

    PowerBuilder 11.5

    p y

    Language Enhancements

    Function calls on .NET Primitive Types:

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

    #if defined PBDOTNET then

    System.Int32 i1long i2

    i1.ToString()

    i2.ToString()

    #end if

    .NET Interoperability

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    52/70

    PowerBuilder 11.5

    p y

    Language 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

    }

    .NET Interoperability

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    53/70

    PowerBuilder 11.5

    p y

    Language Enhancements

    e.g.: PowerBuilder allows you to call the ToString()

    method on the .NET TimeOfDay enumerated type afteryou reference it in your target:

    #if defined PBDOTNET then

    ns1.ns2.TimeOfDay daytime

    daytime = ns1.ns2.TimeOfDay.Morning!

    daytime.ToString()

    #end if

    .NET Interoperability

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    54/70

    PowerBuilder 11.5

    p y

    Language Enhancements

    PowerBuilder 11.5 lets you use instance references to

    access static members of .NET classesstring s#if defined PBDOTNET then

    //OLD WAY

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

    //NEW WAY

    System.Web.HttpContext context

    context = System.Web.HttpContexts = context.Current.ToString()

    #end if

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    55/70

    PowerBuilder 11.5

    DataWindow

    Enhancements

    New DataWindow Features:

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    56/70

    PowerBuilder 11.5

    Supported Targets/Platforms

    Traditional Win32

    Windows Forms Target

    Smart Client-Published WinForm Applications

    InfoMaker 11.5

    Tooltips

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    57/70

    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

    Gradients/Translucency of Backgrounds

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    58/70

    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)

    Text Translucency

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    59/70

    PowerBuilder 11.5

    Text Translucency

    New Property on Font Properties tab

    Columns

    Text

    Buttons

    Group Boxes

    Computed Columns

    Expression-enabled

    New DataWindow

    Obj t L l P ti

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    60/70

    PowerBuilder 11.5

    Object-Level Properties

    Same as band/column/control background propertiesexcept

    Not expression-enabled

    Transparency is not really transparent

    Defaults to a white background

    Extras Images and Tiling

    New Properties for Picture Control

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    61/70

    PowerBuilder 11.5

    New Properties for Picture Control

    transparentcolor

    Designate a color in the image to be transparent

    Transparency

    Expression-enabled

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    62/70

    New Column Edit Style - RichText

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    63/70

    PowerBuilder 11.5

    y

    RichTextToolbarActivation

    New DataWindow control property Enumerated

    Enumerated values

    RichTextToolbarActivationNever!

    RichTextToolbarActivationOnEdit!

    RichTextToolbarActivationAlways!

    New Column Edit Style - RichText

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    64/70

    PowerBuilder 11.5

    y

    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

    New Column Edit Style - RichText

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    65/70

    PowerBuilder 11.5

    y

    New Functions for getting and setting text

    Style (bold/underline/italic)

    Color

    SizeAlignment

    Font

    New DirectX Rendering

    for 3D Graph Styles

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    66/70

    PowerBuilder 11.5

    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

    New DirectX Rendering

    for 3D Graph Styles

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    67/70

    PowerBuilder

    11.5

    for 3D Graph Styles

    New Functions

    GetSeriesTransparency/SetSeriesTransparency

    GetDataTransparency/SetDataTransparency

    GetSeriesLabelling/SetSeriesLabelling

    GetDataLabelling/SetDataLabelling

    SUMMARY: PowerBuilder 11.5

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    68/70

    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

    Advanced PowerBuilder 11.5 Education

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    69/70

    PowerBuilder

    11.5

    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) securityzones 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 PowerBuilders 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)

  • 8/10/2019 PowerBuilderOverview-JohnStrano

    70/70

    Q&AThank you.