a16: prodatasets in the real world aka blood, sweat and tears revisited miles klettke clever fellow

17
A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

Upload: sheryl-richard

Post on 20-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

A16: proDataSets in the Real World

aka blood, sweat and tears revisited

Miles KlettkeClever Fellow

Page 2: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation2

Agenda

Knowing me – rumours abound Knowing you – Geeks or Managers? Capabilities by example Some Principles of ProDataset Design Other ProDataSet coding tips

Page 3: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation3

Knowing me – it is all true

Progress survivor Voracious appetite for the new Respect of the old A clinical eye for what works Anything else is just rumours…….

Page 4: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation4

Knowing you

Geek • already using proDataSets?

Manager • are the developers telling the truth?

Lagard • Need to get to proDataSets

Nothing else on Information overload …….

Be honest

Page 5: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation5

{include/ttuploadforms.i}.{include/ttformstatus.i}DEF DATASET dsApplication FOR ttUploadForms, ttUploadDetails,ttUploaderrors,ttProperty,ttApplication,ttApplicationParty,ttParty,ttEventhist Data-Relation dr-Forms-Details for ttUploadForms, ttUploadDetails relation-fields (uploadID, uploadID) .Data-Relation dr-Details-Party for ttUploadDetails, ttParty relation-fields (PartyID, PartyID).

What is a prodataset

Page 6: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation6

DEF TEMP-TABLE ttUploadForms NO-UNDO BEFORE-TABLE ttUploadFormsBefore FIELD uploadID AS INT FIELD loadDate AS DATETIME FIELD originalFilename AS CHARACTER FIELD partyID AS INTEGER FIELD processStatus AS CHARACTER FIELD sentToOCRDate AS DATETIME FIELD storedCopyOfFile AS BLOB {include/extrattfields.i} INDEX PK_uploadID IS PRIMARY UNIQUE uploadID.

Is it just a standard temp-table?

Page 7: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation7

Agenda

Capabilities by example• Share your Transport

• Travel by Public Transport

• Use the most appropriate transport package

• Just give me the Transport Link

• It gets your there fast

• But I like shankes pony

Page 8: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation8

Lets go to the code

Page 9: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation9

Agenda

Some Principles of ProDataset Design• Defining Temp Tables

• Name Variations

• What is Reference Only?

• Index ? What Index?

• ROWID

Page 10: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation10

{include/ttparty.i &ext={&ext}}{include/ttproperty.i &ext={&ext}}DEFINE DATASET dsparty{&ext} {&ReferenceOnly} FOR ttparty{&ext}, ttProperty{&ext}, Data-Relation dr-party-prop{&ext} for ttparty{&ext}, ttproperty{&ext} relation-fields (physpropid, propertyid)./* include/ttparty.i */DEFINE TEMP-TABLE ttparty{&ext} BEFORE-TABLE ttparty{&ext}before FIELD Given-Names AS CHARACTER FIELD Surname AS CHARACTER FIELD PartyID AS INTEGER {include/extrattfields.i} INDEX PartyIdx IS PRIMARY UNIQUE PartyID

Sample: 4GL Code Snippet

Page 11: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation11

Agenda

Other ProDataSet coding tips• Is there a Fill in the House?• Did you say Fill in the where string!• Pesky Housekeeping and performance• Save those changes• But I said output!• Generic or specific?• Useful routines and ideas• Did you say ADM2?

Page 12: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation12

Lets go to the code

Page 13: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation13

For More Information, go to…

Documentation:• ProDataSets by John Sadd

PSDN• Documentation also at

http://www.psdn.com/library/entry!default.jspa?categoryID=261&externalID=473&fromSearchPage=true

• OERA Latest Thinking! http://www.psdn.com/library/entry!default.jspa?categoryID=1415&externalID=3838&fromSearchPage=true

• Welcome to the Complete AutoEdge Kit http://www.psdn.com/library/entry!default.jspa?categoryID=298&externalID=1686&fromSearchPage=true

Page 14: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation14

Relevant PTW Sessions

A1: What's New in OpenEdge 10.1C A7: Architecting Your Application in OpenEdge 10 A14: What’s New with ProDataSets in 10.1C

Page 15: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation15

Questions?

Page 16: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation16

Thank You

Page 17: A16: proDataSets in the Real World aka blood, sweat and tears revisited Miles Klettke Clever Fellow

© 2008 Progress Software Corporation17