前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

如何使动态创建的DataWindow可修改--PowerBuilder-数据库-计算机学习网-育龙网 在职研究生 英语 会计 资格 医学 建筑 计算机 考研 高考 自考 亲子 全部考试 英语 托 福 雅 思 英语四级 英语六级 专四专八 BEC PETS 职称英语 GRE 二级翻译 三级翻译 LSAT CET3 GMAT 新概念 职称日语 实用英语 金融英语 TOEIC ICFE 口译笔译 经典译文 生活英语 MSE 自考英语 博思 在职申硕英语 在职攻硕英语 成人英语 资格 司法考试 导游资格 报关员 国际商务师 管理咨询师 公务员 物流师 市场营销师 保险从业考试 单证员 秘书资格考试 出版专业技术 电子商务资格考试 企业法律顾问 内审员 项目管理资格考试 报检员 外销员 教师资格 注册计量师 跟单员 人力资源师 网络编辑员 化工工程师 心理咨询师 企业培训师 广告设计师 企业文化师 棉花质量检验 地震安全师 营养师 国际货运代理人 会计 会计资格 注册会计师 国际内审师 注册经济师 ACCA/CAT 银行从业 初级职称 注册税务师 资产评估师 审计师 统计师 价格鉴证师 中级职称 高级会计师 证券从业 期货从业 理财规划师 精算师 金融分析师 CIMA MPACC 医学 执业药师 临床医师 临床助理 中医医师 中医助理 中西医医师 中西医助理 口腔医师 口腔助理 公卫医师公卫助理医师 主管技师 内科主治 外科主治 药士 药师 主管药师 护士 护师 主管护师 中药士 主管中药师 医学检验技士 卫生资格 医师实践技能 中药师 技师 妇产科 建筑 造价工程师 监理工程师 咨询工程师 一级建造师 二级建造师 房地产估价师 质量工程师 造价员 安全工程师 土地估价师 城市规划师 房产经纪人 投资管理 安全评价师 环保师 结构工程师 岩土工程师 设备监理 土地代理人 环境影响评价 物业管理 公路监理 公路造价工程师 室内设计师 注册建筑师 设备工程师 电气工程师招标师 计算机 计算机一级 计算机二级 JAVA认证 网络工程师 程序设计 Linux认证 计算机三级 计算机四级 网络技术 Oracle认证 WEB开发 思科认证 微软认证 数据库 媒体动画 图形图像 安全 职称计算机 软件水平 学历 在职研究生 在职博士 在职硕士 考 研 考 博 M B A E M B A 研 修 班 管理培训 留 学 高 考 自 考 成人高考 专 升 本 会议论坛 计算机 职称计算机 计算机二级 计算机一级 JAVA认证 网络工程师 程序设计 计算机三级 计算机四级 网络技术 Oracle认证 WEB开发 Linux认证 思科认证 微软认证 数据库 媒体动画 图形图像 全部计算机 职称计算机 计算机二级 计算机一级 JAVA认证 网络工程师 程序设计 Linux认证 计算机三级 计算机四级 网络技术 Oracle认证 WEB开发 思科认证 微软认证 数据库 媒体动画 图形图像 安全 软件水平 有问必答 模拟考试计算机论坛 查 分 计算机博客 网络课程计算机专题 您现在的位置:育龙网 > 计算机 > 数据库 > PowerBuilder 如何使动态创建的DataWindow可修改 育龙网 WWW.CHINA-B.C0M 2009年08月31日 来源:互联网 育龙网核心提示: aking Dynamically Created DataWindows Updateable SUMMARY: To make a dynamic datawindow updateable, several settings are aking Dynamically Created DataWindows Updateable SUMMARY: To make a dynamic datawindow updateable, several settings are necessary before calling dw_control.Update(). This document explains the way to do this. Document ID: 47794 Last Revised: 03/13/98 Topic: DataWindows Document Type: Tip Product: PowerBuilder Version: 6.0 Platform: PC Operating System: Windows 3.1, Windows 95, Windows NT Document: To make a dynamic datawindow updateable, several settings are necessary before calling dw_control.Update(). First you set the column(s) as updateable: dw_control.Object..update or dw_control.Modify(".Update=Yes") This is similar to selecting a column in the "Updateable Columns" listbox in the Update Properties dialogue box. It is assumed that all the updateable columns are in the same table. Call this line for each column you want to be able to update. Next you set which column is the primary key: dw_control.Object..key = "yes" This is similar to selecting a column in the "Unique Key Columns" listbox in the Update Properties dialogue box. Then you set a WHERE clause update method: dw_1.Object.DataWindow.Table.UpdateWhere = 0 or 1 or 2 This sets key, key & updateable, key & modified respectively. Notice we are setting a table property here. Then you can call dw_control.Update() Optionally, you can set Update Key In Place with: Dw_control.object.DataWindow.Table. UpdateKeyInPlace = "yes" or "no" This is the same as the two radio buttons in the Update Properties box>Key Modification group box. From PowerBuilder Help: "Whether the key column can be updated in place or whether the row has to be deleted and reinserted. This value determines the syntax PowerBuilder will generate when a user modifies a key field. Yes - Use the UPDATE statement when the key is changed so that the key is updated in place. No - Use a DELETE and an INSERT statement when the key is changed Caution When there are multiple rows in a DataWindow object and the user switches keys or rows, updating in place may fail due to DBMS duplicate restrictions." Here is sample code I used in a command button with the PB Demo DB, Department table. It makes the dept_name column updateable, updating on key only and identifies the dept_id column as the key: dw_1.Object.DataWindow.Table.UpdateWhere = 0 dw_1.object.dept_name.update = "yes" dw_1.Object.dept_id.key = "yes" dw_1.update() 首页上一页 1下一页尾页 相关热词搜索: 数据库 Sybase 更多... 数据库日常维护(参考)数据库 Sybase数据备份工具:BCP简要说明 Sybase数据库的死锁问题 Sybase的数据定义语言 国税总局CTAIS世贷项目 SYBASE补丁安装指南 如何批准或拒绝现有订单 在unixware7.1.1下安装sybase MySQL 更多... MYSQL数据库入门 如何安装并测试MySQL MySQL索引分析和优化(二)[转载] MySQL查询优化--查询优化器 如何修护MYSQL数据表 菜鸟课堂:玩转MySQL数据库性能优化八法 MySQL数据库技术(30) 采取有效的安全措施远程使用MySQLGUI工具 -- 本站部分信息来源于互联网,不代表本站观点或立场,如有侵权,请来电告知,我们将及时处理 -- 育龙网