在产品表中,数据是具有一定层次结构的

1. 在Content相应的package下面右键点击Attribute View,新建Attribute View

image

填写相关信息,注意:我们所建的依然是标准视图:

image

点击Finish后得到如下设计界面:

image

 

2. 添加数据对象

点击Data Foundation

image

点击绿色+号,进入数据对象查询窗体

image

输入数据对象关键字,找到相应的数据对象,点击OK,则数据对象添加到Data Foundation中:

image

 

3. 选择输出列

点中Data Foundation, 选择相应的列作为输出列

image

 

4. 设置Key Attribute

点中Semantics,设置ProductID为Key Attribute

image

 

5. 设置Hierarchies

点中Semantics,点击Hierarchies中的添加按钮

image

设置Hierarchy相关属性,指定层结构相关的字段

image

点击OK后,得到如下结果:

image

 

6. 激活并预览数据

image

posted on 2013-04-30 17:10  沧海-重庆  阅读(2037)  评论(0编辑  收藏  举报