OAF—MessageChoice(Poplist)的级联显示
下拉列表的级联显示是非常常用的一种界面显示效果,在FORMS中我常作,作法也很简单,可OAF中显然有点麻烦了…
现假定有张表,里面有两个字段,一个是Province(省),一个是City(市).
现需要在页面上放置两个下拉列表字段,一个选择省,一个选择市,当然,选择市的下拉列表值需要根据省的下拉列表的选择进行筛选.
实现思路:
实际上很简单,与FORMS差不多,就是要动态的指定选择市的下拉列表的查询.当选择完省后,立即更新市的查询…
实现步骤如下:
新建一个Project(方法略):
Name : OAPoplist
Path: abeam.oracle.apps.icx.poplist
新建一个Business Component Package(For AM and VO)
新建BC:
Package Name: abeam.oracle.apps.icx.poplist.server
新建AM:
AM Name: PoplistAM
AM Path: abeam.oracle.apps.icx.poplist.server
新建省的VO(基于SQL):
VO Name: ProvinceVO
VO Path: abeam.oracle.apps.icx.poplist.server
SQL: selectdistinctt.province fromtest_lovlist t
新建市的VO(基于SQL):
VO Name: CityVO
VO Path: abeam.oracle.apps.icx.poplist.server
SQL: select t.city fromtest_lovlist t
关联AM与VO(方法略)
新建Web Page及Item
新建Page:
Page Name: PoplistPG
Page Path: abeam.oracle.apps.icx.poplist.webui
Root Region: PageLayoutRN
Root Region Type: pagelayout
AM Definition: PoplistAM
新建Item:
Provincelist :
Property |
Value |
Item style |
MessageChoice |
Required |
Yes(optional) |
Add blank value |
False |
Picklist view Definition |
Abeam.oracle.apps.icx.poplist.server.ProvinceVO |
Picklist display attribute |
Province |
Picklist value attribute |
Province |
Property |
Value |
Item style |
MessageChoice |
Required |
相关新闻>>最新推荐更多>>>
您可能感兴趣的文章 |