【发布时间】:2014-08-20 07:58:11
【问题描述】:
是否可以将在 Powerbuilder 10.5 中实现的数据窗口导入 Powerbuilder 6.5?
必须对导出代码进行哪些更改?
【问题讨论】:
是否可以将在 Powerbuilder 10.5 中实现的数据窗口导入 Powerbuilder 6.5?
必须对导出代码进行哪些更改?
【问题讨论】:
这是 PB 6 数据窗口的简略导出。将列的属性和数据窗口本身与 10.5 的属性进行比较,并删除任何不在 6.5 版本中的属性。
HA$PBExportHeader$d_mr_trs_approved_trs.srd
$PBExportComments$Datastore: Info for print/fax from approved transcriptions
release 6;
datawindow(units=0 timer_interval=0 color=12632256 processing=0 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=148 color="536870912" )
table(column=(type=long update=yes updatewhereclause=yes identity=yes name=vst_int_id dbname="vst_int_id" )
retrieve="SELECT VISIT.vst_int_id
FROM VISIT (NOLOCK)
, TRANSCRIPTION_DTL (NOLOCK)
, TRANSCRIPTION_HDR (NOLOCK)
, TRANSCRIPTION_RPT_TYP (NOLOCK)
WHERE VISIT.vst_int_id = ...
" arguments=(("al_trs_int_id", numberlist),("al_status", numberlist)) )
column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="0" x="2985" y="8" height="56" width="160" format="[general]" name=pat_ty edit.limit=0 edit.case=any edit.autoselect=yes font.face="Arial" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes")
【讨论】:
首先将第一行更改为“release 6”,然后将第二行砍掉,直到它只包含颜色和处理。
release 6;
datawindow( color=16777215 processing=1 )
然后转到文件底部,删除所有以 html 或 xml 开头的行。
这应该可以处理大部分项目。尝试导入并修复它发现的任何错误。重复直到它导入干净。
【讨论】:
我需要将 DW 从 12.5 转换为 10.5,因此我进行了此更改 除了 Roland Smith 的回答(这是一个很好的开始):
-更改版本号。
-像 Roland 所说的那样更改数据窗口行 ('datawindow( color=16777215 processing=1)')
-您需要删除每一行的所有“透明度”和“渐变”属性,几乎所有 DW 行都像这样('gradient.color=8421504' OR 'header.transparency="0"')
-在您找到的每个计算机字段中删除属性 'enable="0"'
就是这样。
【讨论】: