pb8.0有别人写的数据窗口,如何查看数据源

dragonsuc 2007-07-11 11:00:51
pb8.0有别人写的数据窗口,如何查看数据源??
...全文
351 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
adhere 2007-07-12
  • 打赏
  • 举报
回复
这种是无数据源的数据窗口
属于外部数据源的数据窗口,即与数据库无关系
如果是有数据源的数据窗口,在TABLE中,COLUMN后面会有与数据库关系的内容。
比如:
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"TABLE1~" ) COLUMN(NAME=~"TABLE1.期号~") COLUMN(NAME=~"TABLE1.?料修改?明~") WHERE( EXP1 =~"TABLE1.期号~" OP =~"=~" EXP2 =~":a_id~" ) ) ARG(NAME = ~"a_id~" TYPE = string) " arguments=(("a_id", string)) )
或者
存储过程
procedure="1 execute procedure procedure1 (:a_1,:a_2)" arguments=(("a_1", string),("a_2", string))
DST_good 2007-07-12
  • 打赏
  • 举报
回复
table(column=(type=char(10) updatewhereclause=no name=displayver dbname="displayver" )
column=(type=char(100) updatewhereclause=no name=remark dbname="Remark" )
column=(type=decimal(0) updatewhereclause=no name=ver_no dbname="ver_no" )
)
他定义了一个外部数据源
字段 类型 长度
displayver char 10
Remark char 100
ver_no decimal
dragonsuc 2007-07-11
  • 打赏
  • 举报
回复
$PBExportHeader$dw_ver_list.srd
release 8;
datawindow(units=0 timer_interval=0 color=1073741824 processing=1 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 grid.lines=0 grid.columnmove=no selected.mouse=no )
header(height=136 color="536870912" )
summary(height=0 color="536870912" )
footer(height=8 color="536870912" )
detail(height=88 color="536870912" height.autosize=yes)
table(column=(type=char(10) updatewhereclause=no name=displayver dbname="displayver" )
column=(type=char(100) updatewhereclause=no name=remark dbname="Remark" )
column=(type=decimal(0) updatewhereclause=no name=ver_no dbname="ver_no" )
)
text(band=header alignment="2" text="期号" border="6" color="33554432" x="9" y="8" height="64" width="370" html.valueishtml="0" name=totalver_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="15780518" )
text(band=header alignment="2" text="资料修改说明" border="6" color="33554432" x="389" y="8" height="64" width="1563" html.valueishtml="0" name=remark_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="15780518" )
column(band=detail id=1 alignment="2" tabsequence=10 border="0" color="33554432" x="9" y="8" height="76" width="370" format="[general]" html.valueishtml="0" name=displayver visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=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" )
column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="33554432" x="389" y="8" height="76" width="1563" format="[general]" html.valueishtml="0" name=remark visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.imemode=0 edit.displayonly=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" netscapelayers="0" )

这里面存储了格式等,但没有向其中赋数据源的代码呀
DST_good 2007-07-11
  • 打赏
  • 举报
回复
你在数据窗口对象上点鼠标右键会出现右键菜单,其中有edit source 这一项,点鼠标左键会出现数据窗口对象出的源码,你可以找到自定义的字段,
adhere 2007-07-11
  • 打赏
  • 举报
回复
export出来看纯码
dragonsuc 2007-07-11
  • 打赏
  • 举报
回复
数据窗口是连接.txt中的数据,不是一般的数据连接
leniz 2007-07-11
  • 打赏
  • 举报
回复
看 sql

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧