获取DW中显示的列的列表
如何获取 dw 中可以看到的列列表? 当我使用 dwobject.object.datawindow.column.count 循环遍历列时,我得到了 sql 中的所有列。至少有一种方法可以找出其中哪些未显示吗?
How do you get the list of columns that can be seen in a dw?
When I loop through the columns using dwobject.object.datawindow.column.count
, I get all the columns in sql. Is there at least a way to figure out which of them isn't displayed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
// 数组 lsa_ColNames[] 包含所有可见的列名称。
// The array lsa_ColNames[] contains all the visible columns names.
我自己设法找到了它:
I've managed to find it out by myself:
在最近的代码中,我通过查看编辑样式改进了(希望)上述内容。我不仅需要找到活动/显示的列,而且可能使用隐藏列(无视觉控制(VC))设置排序,并且无法指示它(请参阅“列排序指示器”上的线程)。
因此编辑样式为空,?或者 !当列没有 VC 时。一旦您知道它是 VC,然后检查它是否可见或需要什么。对于我的代码,我只保留 VC 的列表,然后检查是否可以/不指示...
In recent code I improved (hopefully) the above by looking at Edit Style. I needed to find not only the active/displayed columns but a sort might be set with a hidden column (no visual control(VC)) and it can't be indicated (see threads on "column sort indicators").
THUS Edit style is Empty, ? or ! when the column does not have a VC. Once you know it's a VC, THEN check if it's Visible or whatever is needed. For my code, I keep a list of VC's only, then check if it's OK/not to indicate...
我编写了以下函数来正确评估数据对象中对象的属性(列、计算、文本等)。
示例:如果 location_id 列当前可见,以下代码将返回“1”;如果当前不可见,则返回“0”。可见表达式是否包含复杂表达式并不重要。
多年来我一直以某种形式使用它。享受!
克里斯·多尔蒂
The I wrote the following function to properly evaluate the attribute of an object (column,compute,text, etc) in a dataobject.
Example: The following code will return '1' if the location_id column is currently visible or a '0' if it is not currently visible. It doesn't matter if the visible expression contains a complex expression or not.
I've been using it for years in one form or another. Enjoy!
Chris Daugherty