Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datawindow conversion from PB8 to PB7

Status
Not open for further replies.

kgillispie

Programmer
Jun 10, 2002
4
US
I have a complex datawindow that was created in PB8 and I need to
import it into PB7. I changed the release to 7, but it still won't
import.

Any ideas?


Thanks in advance,

 
Hi,

the problem is that from one PBVersion to the next some datawindow properties were added to the datawindowobject. most of them are for PDF-creation and for the web dw capabilities.

here is a sample code for a (external) datawindow this the same colummns in the exported sourse. it is from version 8 and version 10 as I don't have version 7. But the reasons for the problem to import into previous versions are the same.

VERSION 8

release 8;
datawindow(units=0 timer_interval=0 color=12632256 processing=0 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=280 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=col_1 dbname="col_1" )
column=(type=char(10) updatewhereclause=yes name=col_2 dbname="col_2" )
)
text(band=detail alignment="1" text="Col 1:" border="0" color="0" x="37" y="4" height="64" width="178" html.valueishtml="0" name=col_1_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="251" y="4" height="76" width="274" format="[general]" html.valueishtml="0" name=col_1 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Col 2:" border="0" color="0" x="37" y="140" height="64" width="178" html.valueishtml="0" name=col_2_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="0" x="251" y="140" height="76" width="274" format="[general]" html.valueishtml="0" name=col_2 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" )


VERSION 10

release 10;
datawindow(units=0 timer_interval=0 color=12632256 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=280 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=col_1 dbname="col_1" )
column=(type=char(10) updatewhereclause=yes name=col_2 dbname="col_2" )
)
text(band=detail alignment="1" text="Col 1:" border="0" color="0" x="37" y="4" height="64" width="178" html.valueishtml="0" name=col_1_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="251" y="4" height="76" width="274" format="[general]" html.valueishtml="0" name=col_1 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Col 2:" border="0" color="0" x="37" y="140" height="64" width="178" html.valueishtml="0" name=col_2_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="0" x="251" y="140" height="76" width="274" format="[general]" html.valueishtml="0" name=col_2 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
xhtmlgen() cssgen(sessionspecific="0" )
xmlgen(inline="0" )
xsltgen()
jsgen()
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
export.xhtml()

As you can see in the forst lines and last lines there are many diffrent properties like export.xhmnl() in the last line. Or print.canusedefaultprinter=yes in the forst line.

To import a datawindow into a prevous version of PB export a datawindow and compare the lines from the exported code between the two versions. the best is to create a test datawindow the same way in both PB Version. export both and compare the exported files. Than delete all code in your complex datawindoesyntax you want to import into PB 7 that does not appear in your test coded datawindow syntax.

hope this helps
 
In bernds44 example you could remove all the text from the export starting with 'htmltable' down to the end and then import it into pb7.

Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top