Você está na página 1de 69

John 8trano

Techno|ogy Evange||st
PowerBuiIder 11.5
Ceared 0p for
Accelerated 0evelopment
PowerBuiIder
^
11.5
CapabiIities and Features Since PowerBuiIder 11.0
PowerBuiIder 11.1
ncremental rebuild for .NET Targets
PowerBuiIder 11.2
ertificate Store Support for Smart lient-published applications
Usability and U Enhancements
Database onnectivity Enhancements
Enabling the DEBUG ondition for OR and OrcaScript
pplication Pools for Web Forms in S7
Telerik Radontrols Support
EServer Support for .NET-deployed PowerBuilder lients
Functionality for WebForm-Deployed pplications
PowerBuiIder
^
11.5
PowerBuiIder Videos
For more PowerBuiIder 11.x detaiI.
http://www.sybase.com/products/deveIopment/powerbuiIder/videos
http://www.sybase.com/products/deveIopment/powerbuiIder/webcasts
PowerBuiIder 11.5
Overview
PowerBuiIder
^
11.5
Products Packaged with PowerBuiIder 11.5!
Premiums Packaged with
PowerBuiIder 11.5!
PowerBuiIder
^
11.5
Packaged with PowerBuiIder 11.5!
PocketBuiIder 2.5
PowerBuiIder AppIication Server PIug-in 1.1
PowerBuilder Skills for Heterogeneous Environments
obile
EE
.NET
lient/Server
PowerBuiIder 11.5 Features
PowerBuiIder
^
11.5
.NET
Code Access Security
PowerBuiIder
^
11.5
Brief ntroduction of ode ccess Security (S)
Code Access Security is for .NET appIications at
runtime
It's compIementary to RoIe-Based security
http://msdn.microsoft.com/en-us/library/aa302422.aspx
hiIe RoIe-Based security answers the questions of
"ho is the user and what can the user do?" .
PowerBuiIder
^
11.5
Brief ntroduction of ode ccess Security (S)
.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 modeI
PowerBuiIder 11.5 supports CAS for:
Windows Form (and Smart lient)
Web Form applications
NVOs (as Web Services or as ssemblies)
PowerBuiIder
^
11.5
Security in Windows FormDesign time
Security settings for code groups are designated in the
project painters
Four IeveIs of trust
FuII Trust (defauIt)
LocaI Intranet Trust
an be customized
Internet Trust
an be customized
Custom
PowerBuiIder
^
11.5
Security in WebForm / Web Service
By defauIt, ebForm and eb Services are
depIoyed and running with "FuII trust" IeveI
Can choose "Custom" IeveI in project painter
new configuration file web_customtrust.config
is generated and referred in application's
web.config
pplication will be running in custom trust level
Security setting in web.config and
web_customtrust.config will take effect in runtime
PowerBuiIder
^
11.5
Security in WebForm / Web Service
ebForm security in project painter
ebForm deployed with custom trust
PowerBuiIder
^
11.5
Strong Name Support for .NET pplications
ou can ensure that a name is gIobaIIy unique by
signing an assembIy with a Strong Name
Strong Names attempt to guarantee authorship of code
Strong Names satisfy the foIIowing 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
PowerBuiIder
^
11.5
PowerBuilder 11.5 can generate Strong Named assemblies for all
.NET applications
an be put into G and shared by multiple pplications
an protect the assembly from tampering
NVOs as .NET Web Services and as .NET ssemblies can be called
by partially trusted callers if they're signed with Strong Name
ark the assembIy with
AIIowPartiaIIyTrustedCaIIerAttribute
ote: Select this property unless you trust the callers
Strong Name Support for .NET pplications
PowerBuiIder
^
11.5
Sign an assembly as strong name assembly
Strong Name Support for .NET pplications
PowerBuiIder
^
11.5
PowerBuiIder .NET Security Summary
S 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
lways grant the minimal, not the most, permissions enough
for performing certain operation to reduce potential risks
PowerBuiIder
^
11.5
ore resources on .NET CAS
.NET Framework DeveIoper's Guide: Code Access Security
http://msdn.microsoft.com/en-us/library/930b76w0(VS.80).aspx
ow to Add a Trusted PubIisher to a CIient Computer for CIick Once
AppIications
http://msdn.microsoft.com/en-us/library/ms172241.aspx
.NET Framework tooI: Code Access Security PoIicy TooI (caspoI.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
PowerBuiIder
^
11.5
PNG Graphics
Support
PowerBuiIder
^
11.5
PNG Support
PowerBuilder 11.5 supports the Portable Networks
Graphics (PNG) file format for images in.
enus
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
PowerBuiIder
^
11.5
FDCC
CompIiance
PowerBuiIder
^
11.5
FDCC CompIiance
The Federal Desktop ore onfiguration (FD) is a
security standard
andated by the US Office of anagement and Budget
(OB)
PowerBuiIder
^
11.5
FD ompliance
To meet the FD security requirements, PowerBuilder
11.5 can be installed only by a system administrator
However.
PowerBuilder
pplications that you develop with PowerBuilder
.are designed to be run in a standard user context without
elevated system administration privileges
PowerBuiIder
^
11.5
FD ompliance
ost PowerBuilder files install by default to !rogram
Files\Sybase subdirectories
Write access to these subdirectories is restricted to
administrative users
FD requires all writable files must be copied or
installed to directories where standard users have write
access
PowerBuiIder
^
11.5
FD ompliance
Writable files that are shared by all users are installed in.
:\Documents and Settings\All
Users\Documents\Sybase\!owerBuilder 11.5
These include.
The ESDemo databases
ll ode Examples directories and files
ll PowerBuilder Help files
The Translation Toolkit directories and files
PowerBuiIder
^
11.5
FD ompliance
User-specific writable files are installed in the default
!rogram Files\Sybase subdirectories but:
re 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
:\Documents and Settings\UserName
subdirectory
Files copied or written
LocaI Settings\AppIication
Data\Sybase\PowerBuiIder 11.5
PBxxx.INI fiIes
License fiIes
y Documents\Sybase\PowerBuiIder
11.5\TutoriaI
PowerBuiIder Getting
Started tutoriaI
PowerBuiIder
^
11.5
Transaction Object
Enhancement
PowerBuiIder
^
11.5
Transaction Object Enhancement
PowerBuiIder 11.5 adds two new events for the
Transaction object.
DBError
SQLPreview
PowerBuiIder
^
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 DBS
PowerBuiIder
^
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
PowerBuiIder
^
11.5
Transaction Object Enhancement
cont'd
SQLPreview in concert with a DataStore or a
DataWindow.
f the return value of the DataWindow or DataStore's
SQLPreview event is 0:
ontinue processing
The Transaction object's SQLPreview event is
triggered
PowerBuiIder
^
11.5
Remote DepIoyment
of .NET eb Targets
PowerBuiIder
^
11.5
Remote Deployment of
.NET Web Targets
PowerBuilder 11.5 .NET targets do not require you to
have S installed on the development computer
When you deploy directly to a remote computer.
System information about the deployment computer,
including its OS and S versions, is passed to
PowerBuilder.
.through the Windows anagement nstrumentation
(W) interface
PowerBuiIder
^
11.5
Remote Deployment of
.NET Web Targets
f you deploy to an S setup file.
Run the setup file on a deployment computer
PowerBuilder can use the Windows P to obtain
information about the OS and S versions on that computer
PowerBuiIder
^
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.
PowerBuiIder
^
11.5
Remote Deployment of
.NET Web Targets
The User ccount
ontrol (U) dialog box
displays
This dialog box allows
you to elevate your
privileges for the purpose
of deployment
PowerBuiIder
^
11.5
Remote Deployment of
.NET Web Targets
Deploying .NET targets to a remote Windows Vista or
Windows 2008 computer might require changes to.
U
Windows firewall
Distributed omponent Object odel (DO) settings
PowerBuiIder
^
11.5
Support for
S SQL Server 2008
PowerBuiIder
^
11.5
SQL Server 2008 Driver:
Transaction Object Syntax
New Database Connection Parameter "Provider"
Use the "SQLNCLI10" Provider vaIue
Required to take advantage of new features
Default Provider value is SQLNL
Only supports SQL Server 2005 features
Example:
SQLA.DB!arm = "!rovider='SQLLI10'"
PowerBuiIder
^
11.5
SQL Server 2008 Driver
irroring Support
New Data Types
T-SQL Support
PowerBuiIder
^
11.5
SQL Server 2008 Driver
New Data Types
TE & DTETE2 types
Have 0-7 fractional seconds precision.
PowerBuilder supports 0-6 fractional seconds precision.
DTETEOFFSET
Not supported in PowerBuilder 11.5
LR Types
HERRHYD
SPTL DT GEOGRPHY & GEOETRY
UDT User defined LR Types
FLESTRE
NOT strictly a new data type but a new storage mechanism for
Varbinary(max) data
PowerBuiIder
^
11.5
Row Constructors
ISERT ITO Employees VALUES ('tom', 25, 5), ('jerry', 30, 6);
ESQL / DSQL
FORCESEEK - TabIe int
Forces the query optimizer to use only an index seek
ESQL / DSQL and DataWindow data source
ERGE Statement
Dynamic SQL only
GROUPING SETS
ESQL / DSQL and DataWindow data source
SQL Server 2008 Driver :
T-SQL Support
PowerBuiIder
^
11.5
The S SQL Server 2008 release was delayed
The G version of our driver cannot be included in time for
the PowerBuilder 11.5 G
Resolution:
We will release PowerBuilder 11.5 with the SQL Server
2008 R driver and support its G in an EBF
SQL Server 2008 Driver:
DeIayed for GA
PowerBuiIder
^
11.5
Support for
OracIe 11g
PowerBuiIder
^
11.5
OracIe 11g Support
CIient Access through Proxy
W New DBParm "onnects is used to set the End User
W Session and Connection PooIing
New "Pooling DBParm
"nnPool='Yes'" .is now. "Pooling='onnection Pooling'"
ImpIicit Fetching ROID with SELECT . FOR
UPDATE statements
"ROWD no longer needs to be explicitly added in the select
items
CIient-side caching of SQL query resuIt sets
PowerBuiIder
^
11.5
OCI Driver Name
Diagnostic aid
"ppDriverName DPBR parameter allows you to set your
own client driver name
L data type support
Oracle LType data type - introduced with Oracle 9i
Supports returning single LType values from an Oracle
cursor
OracIe 11g Support
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language
Enhancements
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language Enhancements
PowerBuiIder 11.5 wiII 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
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language Enhancements
Function caIIs on .NET primitive and enumerated types:
ust be made inside a conditionaI compiIation bIock
for a .NET target.
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language Enhancements
Function caIIs on .NET Primitive Types:
FunctionaIity of the primitive types is now merged with the
functionaIity of their corresponding PowerBuiIder primitives
#if defined PBDOTNET then
System.Int32 i1
Iong i2
i1.ToString()
i2.ToString()
.
#end if
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language Enhancements
Function caIIs are aIso supported on .NET enumerated
types that you import into a .NET target
An enumerated type from an imported assembIy:
namespace ns1.ns2;
PubIic enum TimeOfDay
{
orning = 0,
AfterNoon = 1,
Evening = 2
}
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language Enhancements
e.g.: PowerBuiIder aIIows you to caII the ToString()
method on the .NET TimeOfDay enumerated type after
you reference it in your target:
#if defined PBDOTNET then
ns1.ns2.TimeOfDay daytime
daytime = ns1.ns2.TimeOfDay.orning!
daytime.ToString()
#end if
PowerBuiIder
^
11.5
.NET InteroperabiIity
Language Enhancements
PowerBuiIder 11.5 Iets you use instance references to
access static members of .NET cIasses
string s
#if defined PBDOTNET then
//OLD A
//s=System.eb.ttpContext.Current.ToString()
//NE A
System.eb.ttpContext context
context = System.eb.ttpContext
s = context.Current.ToString()
#end if
PowerBuiIder
^
11.5
Dataindow
Enhancements
PowerBuiIder
^
11.5
New Dataindow Features:
Supported Targets/PIatforms
TraditionaI in32
indows Forms Target
Smart lient-Published WinForm pplications
Infoaker 11.5
PowerBuiIder
^
11.5
TooItips
Supported in aII Dataindow presentation styIes
Except RichText and OLE
New property tab - New properties
olumns and all ontrol types
ll new properties are expression-enabled
PowerBuiIder
^
11.5
Gradients/TransIucency of Backgrounds
Supported in aII Dataindow presentation styIes
Except RichText and OLE
New property tab - New properties
Bands
olumns and all ontrol types
ll are expression-enabled (except for DWO scope/level)
PowerBuiIder
^
11.5
Text TransIucency
New Property on Font Properties tab
olumns
Text
Buttons
Group Boxes
omputed olumns
Expression-enabIed
PowerBuiIder
^
11.5
New Dataindow
Object-LeveI Properties
Same as band/coIumn/controI background properties
except.
Not expression-enabled
Transparency is not really transparent
Defaults to a white background
Extras
mages and Tiling
PowerBuiIder
^
11.5
New Properties for Picture ControI
transparentcoIor
Designate a color in the image to be transparent
Transparency
Expression-enabled
PowerBuiIder
^
11.5
New CoIumn Edit StyIe - RichText
Supported in aII Dataindow presentation styIes
Except RichText and OLE
Comes with FIoating Font TooIbar
an be disabled
Roll your own using new events, functions
PowerBuiIder
^
11.5
New CoIumn Edit StyIe - RichText
RichTextTooIbarActivation
New DataWindow control property Enumerated
Enumerated vaIues
RichTextToolbarctivationNever!
RichTextToolbarctivationOnEdit!
RichTextToolbarctivationlways!
PowerBuiIder
^
11.5
New CoIumn Edit StyIe - RichText
New Events
RichTextCurrentStyIeChanged
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
PowerBuiIder
^
11.5
New CoIumn Edit StyIe - RichText
New Functions for getting and setting text.
Style (bold/underline/italic)
olor
Size
lignment
Font
PowerBuiIder
^
11.5
New DirectX Rendering
for 3D Graph StyIes
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
InstaIIed by PowerBuiIder 11.5 for the deveIoper on
"first use"
Anti-aIiasing shouId be disabIed
PowerBuiIder
^
11.5
New DirectX Rendering
for 3D Graph StyIes
New Functions
GetSeriesTransparency/SetSeriesTransparency
GetDataTransparency/SetDataTransparency
GetSeriesLabelling/SetSeriesLabelling
GetDataLabelling/SetDataLabelling
PowerBuiIder
^
11.5
SUAR: PowerBuiIder 11.5
DeIivers Core FunctionaIity Enhancements
DataWindow Look and Feel
Support for Newer DBS versions
.NET nteroperability Language Enhancements
.NET ode ccess Security
S7 and Vista
PowerBuiIder
^
11.5
Advanced PowerBuiIder 11.5 Education
oving to PowerBuiIder 11.5 (DEV545)
PoWer8u||der 11.1, 11.2 ard 11.5 crarges
ard errarcererls
.NET errarcererls ard largel |rlegral|or W|lr
EA3erver .1
Corl|gure CA3 (Code Access 3ecur|ly) secur|ly
zores lor .NET largels
Advarced weo 3erv|ces |r w|rForr ard weoForr
app||cal|ors
Fast Track to PowerBuiIder Part II
(DEV633)
Taugrl or PoWer8u||der 11.5
Focus or advarced c||erl/server app||cal|or
deve|oprerl
0a|r r|grer-|eve| experl|se lo ou||d ard dep|oy lu||y
lurcl|ora| app||cal|ors us|rg PoWer8u||der's rore
advarced lealures
Sybase Education: provides a wide
range of training delivery options:
Onsite, SyberLearning LVE, SyberLearning
OnDemand and Learning enter
www.sybase.com/professional-services/education
ttend a class by December 31, 2008 and
receive a 20% discount (N & N only)
Q&A
Thank you.

Você também pode gostar