數據窗口的 updatewhereclause 屬性在哪設置?

xhwly 2004-12-13 05:10:51
release 9;
datawindow(units=0 timer_interval=0 color=1073741824 processing=1 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 grid.lines=0 )
header(height=76 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=88 color="536870912" )
table(column=(type=char(100) update=yes updatewhereclause=yes key=yes name=argitno dbname="SYS_Arg.ArgItNo" )
column=(type=char(100) update=yes updatewhereclause=yes name=argname dbname="SYS_Arg.ArgName" )
column=(type=char(100) update=yes updatewhereclause=yes name=argval dbname="SYS_Arg.ArgVal" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"SYS_Arg~" ) COLUMN(NAME=~"SYS_Arg.ArgItNo~") COLUMN(NAME=~"SYS_Arg.ArgName~") COLUMN(NAME=~"SYS_Arg.ArgVal~")) " update="SYS_Arg" updatewhere=1 updatekeyinplace=no )
text(band=header alignment="2" text="Argitno" border="0" color="33554432" x="9" y="8" height="60" width="411" html.valueishtml="0" name=argitno_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Argname" border="0" color="33554432" x="430" y="8" height="60" width="338" html.valueishtml="0" name=argname_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Argval" border="0" color="33554432" x="777" y="8" height="60" width="2309" html.valueishtml="0" name=argval_t visible="1" font.face="Arial" font.height="-9" 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="0" color="33554432" x="9" y="8" height="72" width="411" format="[general]" html.valueishtml="0" name=argitno visible="1" edit.limit=100 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" 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="430" y="8" height="72" width="338" format="[general]" html.valueishtml="0" name=argname visible="1" edit.limit=100 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="33554432" x="777" y="8" height="72" width="2309" format="[general]" html.valueishtml="0" name=argval visible="1" edit.limit=100 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" 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" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )


以上數據窗口腳本中, updatewhereclause = yes 這個屬性在圖形界面有沒有地方設置?
...全文
235 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
hygougou 2004-12-15
  • 打赏
  • 举报
回复
我觉得这跟表中字段类型改变后,数据窗口不能自适应是一个道理吧,要重新生成了,因为建数据窗口的时候PB只记忆刚建立时的构造信息,后台更新后并不能自适应
xhwly 2004-12-15
  • 打赏
  • 举报
回复
to:hygougou(狗狗)
我是說當存儲過程返回的字段增加或減少后,在前臺數據窗口也做相應的調整,而不是重新生成數據窗口.
xhwly 2004-12-14
  • 打赏
  • 举报
回复
有沒有高手知道?
bunnysky 2004-12-14
  • 打赏
  • 举报
回复
在rows→update properties→updateable columns选择就可以了!!
呵呵!
hygougou 2004-12-14
  • 打赏
  • 举报
回复
存储过程的参数设定不是固定的么?
一般只设置传入的参数呀,传出来的跟你的存储过程有关系,存储过程设了几个,传出来就几个,
不明白你新增和减一个字段是什么意思?
aichangfeng 2004-12-13
  • 打赏
  • 举报
回复
这应该与后面的锁机制有关系
xhwly 2004-12-13
  • 打赏
  • 举报
回复
to: lzp_lrp(lzp)
你這設置的是update 屬性
xhwly 2004-12-13
  • 打赏
  • 举报
回复
請大家用存儲過程數據源試試...

發現一個這樣的問題 , 用存儲過程數據源做的數據窗口, 保存后查看源代碼 updatewhereclause 全部是yes ,
而只要存儲過程新增或減少一個字段再反映到前臺, 則源代碼中updatewhereclause 全部變成了no ,
這樣,在更新個數據窗口時, update 屬性不論選 三個中的哪一個, 在數據窗口sqlpreview 事件中得到
的sql 語句where 后面總是只有主鍵..
WorldMobile 2004-12-13
  • 打赏
  • 举报
回复
在rows -> update properties -> updateable columns里可以设置
WorldMobile 2004-12-13
  • 打赏
  • 举报
回复
有的

1,109

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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