社区
DataWindow
帖子详情
请问我在原来的datawindow的加了同一个数据表的余下的一个字段,可是这个新出来的Textbox 的数据存不到数据库中?
fjc8888
2005-01-04 03:51:44
请问我在原来的datawindow的加了同一个数据表的余下的一个字段,可是这个新出来的Textbox 的数据存不到数据库中?要怎么办呀?谢谢
...全文
40
4
打赏
收藏
请问我在原来的datawindow的加了同一个数据表的余下的一个字段,可是这个新出来的Textbox 的数据存不到数据库中?
请问我在原来的datawindow的加了同一个数据表的余下的一个字段,可是这个新出来的Textbox 的数据存不到数据库中?要怎么办呀?谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hygougou
2005-01-04
打赏
举报
回复
把该字段选上
重新生成这个数据窗口
zhangdatou
2005-01-04
打赏
举报
回复
update properties 属性没有改
qianfl
2005-01-04
打赏
举报
回复
update properties菜单里设一下更新属性,把这一列加上去
fjc8888
2005-01-04
打赏
举报
回复
原来的有的是可以存进去的,我用的是pb6.5
PB
数据
窗口根据
字段
内容设置
字段
宽度
PB9、PB12.5
数据
窗口根据每个
字段
内容再设置相应
字段
宽度!
PB 刷
新
datawindow
当前行的
数据
当
数据
存
在主次表时,当更
新
了次表
数据
后,主表
数据
在后台有更变时。可利用刷
新
主表当前行的方法重显主表
数据
。 /************************************************************ 函数名称: f_refresh_currentrow(adw) 功 能: 刷
新
DW当前行
数据
,不可刷
新
NO update or 带arguments的DW 参数说明: adw 目标DW 返 回 值: integer 成功返回1,失败返回-1 作 者: sean 创建时间: 2010年8月18日 ************************************************************/ string ls_dataobject string ls_keys[] //key Column Name string ls_dbname[] //key field Name string ls_coltype[] //field style string ls_tablenm //table name string ls_condition //sql Condition long ll_currentrow //Current Row numeric long ll_column //Column count integer i
datawindow
ldw datastore ldatastore ldw=adw if ldw.rowcount( )=0 then return -1 elseif trim(ldw.describe( "
datawindow
.table.arguments"))<>'?' then messagebox('','刷
新
数据
窗口当前行失败!,
数据
窗口需要参数',exclamation!) return -1 else ll_currentrow=ldw.getrow( ) FOR ll_column = 1 TO long(ldw.object.
datawindow
.column.count)//key names If ldw.Describe("#"+string(ll_column)+".key") ='yes' Then i++ ls_keys[i]=ldw.Describe("#"+string(ll_column)+".name") ls_dbname[i]=ldw.Describe("#"+string(ll_column)+".dbname") ls_coltype[i]=ldw.Describe("#"+string(ll_column)+".coltype") End If NEXT if upperbound(ls_keys[])=0 then messagebox('','刷
新
数据
窗口当前行失败!,没有主键',exclamation!) return -1 else ls_tablenm=left(ls_dbname[1],pos(ls_dbname[1],'.') -1) //table name for i=1 to upperbound(ls_keys[]) if pos('numb,deci,long,',LeftA(ls_coltype[i],4) +',')>0 then ls_condition+="and "+ls_dbname[i]+"="+string(f_getitem(ldw,ll_currentrow,ls_keys[i])) else ls_condition+="and "+ls_dbname[i]+"='"+string(f_getitem(ldw,ll_currentrow,ls_keys[i]))+"'" end if next ls_condition=mid(ls_condition,4) //sql Condition ldatastore=create datastore ldatastore.dataobject=ldw.dataobject ldatastore.settransobject( sqlca) if f_addwhere_retrieve(ldatastore,ls_condition)=1 then if ldatastore.rowcount( )=1 then ldw.object.data[ll_currentrow]=ldatastore.object.data[1] ldw.setitemstatus( ll_currentrow, 0, primary!, NotModified!) //if ldw.getrow( )<>ll_currentrow then ldw.scrolltorow( ll_currentrow) end if else messagebox('','刷
新
数据
窗口当前行失败!,条件语法错误',exclamation!) return -1 end if destroy ldatastore end if end if
同步所有
数据
窗口
中
字段
长度
在pb的
数据
窗口
字段
长度修改后,批量同步所有
数据
窗口
中
相关
字段
DataWindow
数据
窗口资料
DataWindow
数据
窗口资料
pb
中
用
DataWindow
实现对多表的修改.doc
pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;pb
中
用
DataWindow
实现对多表的修改;
DataWindow
609
社区成员
20,469
社区内容
发帖
与我相关
我的任务
DataWindow
PowerBuilder DataWindow
复制链接
扫一扫
分享
社区描述
PowerBuilder DataWindow
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章