PowerBuilder Online Courses - by Prasad Bodepudi DataWindow Painter DataWindow Painter/Control Data...
-
Upload
theodora-ward -
Category
Documents
-
view
232 -
download
0
Transcript of PowerBuilder Online Courses - by Prasad Bodepudi DataWindow Painter DataWindow Painter/Control Data...
PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
DataWindow PainterDataWindow Painter DataWindow Painter/Control
Data Sources
Presentation Styles
DataWindow Options
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
DataWindow Painter/ControlDataWindow painter allows creating
DataWindow objects.DataWindow control acts as a container to
the DataWindow object.DataWindow object contains data source
definition and presentation details.Functions/Scripts are written to the
DataWindow control.
PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
DataWindow PainterDataWindow Painter DataWindow Painter/Control
Data Sources
Presentation Styles
DataWindow Options
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Data SourceQuick SelectSQL SelectQueryExternalStored Procedure
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Quick SelectAllows defining data source quickly for a
single or multiple tables that have relation.Rarely used data source.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
SQL SelectAllows defining complex SQL statements.Most widely used data source.Allows WHERE, ORDER BY, GROUP BY,
HAVING clauses.Allows Computed Columns, Retrieval
arguments, UNIONs. Can convert to Syntax mode.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Query as Data SourceAllows using a defined query as a data
source.After definition, it is similar to the SQL
Select data source. The Query and DataWindow data source
are not dynamically linked, the query is copied to the DataWindow definition.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
External Data SourceAllows you to take advantage of
DataWindow’s powerful features --such as sort, filter, find, print preview, print, data sharing, presentation styles, etc. without using database as a data source.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Stored Procedure as Data SourceMost widely used data source with SQL Server.Reduces network traffic, improves performance.DataWindow can’t handle multiple result sets,
return status, OUTPUT parameters.DataWindows are not updatable by default.Feature not available in desktop editions.
PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
DataWindow PainterDataWindow Painter DataWindow Painter/Control
Data Sources
Presentation Styles
DataWindow Options
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Presentation StylesFree FormTabularGridLabelN-UpCrosstab
GraphRichTextEditCompositeOLE
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Free Form Presentation StyleAll data is placed in the detail band.Looks similar to a form and is good for data
entry and queries.Labels are placed left side to the fields.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Tabular Presentation StyleData is placed in the detail band and
headings are in the header band.Labels are not used, instead headings are
used.Each record occupies one line.Good for displaying long record reports.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Grid Presentation StyleProvides spreadsheet like interface.At run-time, columns can be moved/ resized by
the user.Behaves like tabular style when grid is turned
off.Fields can’t be moved at painting time in the
design view.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Label Presentation StyleGood to generate labels.Labels can be customized.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
N-Up Presentation StyleProvides news paper/telephone directory
like interface.Allows good space utilization while printing
few fields.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Crosstab Presentation StyleProvides two-dimensional spreadsheet like
interface.Reduces 100s of lines of coding.Can create columns dynamically on the fly.One of the great report style that no other
tool provides.External Data Source can’t be used.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Graph Presentation StylePresents data in graphical format with no
or very little programming.Supports bar, column, stack, area, pie,
time graphs.Supports 2D and 3D graphs.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
RichTextEdit Presentation StyleDisplays data in rich text format including different
font attributes for each letter or word --such as bold, italic, strike, underline, font, color.
It also includes special characters such as tabs, new line, etc.
Supports toolbar, popup menu.Reads/ Saves in RTF format.Not supported in distributed computing.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Composite Presentation StyleAllows to create a DataWindow using two
DataWindows objects.DataWindow is not updatable.Useful when two reports are related.Good for printing two reports side by side
or a report followed another with no extra pages.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
OLE Presentation StyleDisplays data using any OLE 2.0 server.OLE 2.0 presentation style DataWindow is
not updatable.
PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
DataWindow PainterDataWindow Painter DataWindow Painter/Control
Data Sources
Presentation Styles
DataWindow Options
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
DataWindow OptionsRetrieve As Only NeededRetain DataAuto Size HeightSuppress Repeating ValuesValidation RuleInitial Values
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Retrieve As Only NeededUseful to simulate quick response queries.Retrieves only those rows that fit in the
DataWindow control at a time.Holds up lot of resources on the server
side and might be a bottle-neck for performance.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Retain DataCan store data as part of the DataWindow
definition in the library painter.Displays the stored data without issuing
Retrieve().Useful for prototype applications.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Auto Size Height OptionAdjusts the row size automatically
depending on the data.Good feature to save a lot of space in
reports.The detail band set to ‘Auto Size Height’
when a nested DataWindow object is inserted in the detail band.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Suppress Repeating ValuesSuppresses repeating values of the
specified fields.Gives ‘Group’ presentation style affect
without using ‘Group’ presentation style.Does not affect DataWindow update
properties.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Validation RulesIf defined in extended attributes, validation rule
is imported into DataWindow automatically.Can be defined for each DataWindow field.Any DataWindow painter function, user-defined
function can be used.Datatype is automatically converted in
comparisons, if not converted.Has no relation with the server-side rules.
PowerBuilder Online PowerBuilder Online CoursesCourses
Http://www.applied-software.com© Prasad Bodepudi. All rights reserved.
DataWindow PainterDataWindow Painter
Initial ValuesIf defined in extended attributes, initial value
is imported into DataWindow automatically.Can be specified for each DataWindow
field.Has no relation with the server-side initial
value.
PowerBuilder Online Courses - by Prasad PowerBuilder Online Courses - by Prasad
BodepudiBodepudi
DataWindow PainterDataWindow Painter DataWindow Painter/Control
Data Sources
Presentation Styles
DataWindow OptionsQuestions? Drop an e-mail at [email protected]
The End