PD9.5中,希望能够自己配置从某个字段读取数据,比如,希望将SQL SERVER中的字段描述读入PD中做为NAME,请问是否有地方能配置此种信息 问题点数:100、回复次数:5Top
":20R]VRHV*V:^2IDI~Phttp://www.itwz.net晕
无人响应???Top
还是没人吗
结贴都无法结贴啊Top
无此配置
可以写个vbs 将column.comment 赋给column.name
参考:
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model"
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model."
Else
ProcessFolder mdl
End If
' This routine copy name into code for each table, each column and each view
' of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
Dim col ' running column
for each col in tab.columns
col.name = col.comment
'col.name = col.code
next
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end subTop
pd11:
Tools ->Execute Commands->Edit/Run Script...
执行以上脚本即可!Top
虽然你理解错了我的意思
但是还是很感谢你的回复
Tags(标签):请问P
天天网摘 Copyright(版权所有) © 天天网摘 2001~2009 本站文章来源于网络,如果有侵犯你的权宜的地方,请指出我们会即时更正。 |