oracle oaf lov 验证,OAF Lov基本知识

JavaDoc

getLovCriteriaItemspublic Dictionary getLovCriteriaItems()Used from an LOV region's controller to find out all the values of the passive criteria mappings for that LOV. The returned dictionary is keyed by the name of the LOV region's item.从一个LOV区域的控制器找到为该LOV设置的被动的标准映射的所有值。返回的Dictionary 以LOV region的Item作为Key。Returns:Dictionary containing all the names of the LOV region's items that are specified in passive criteria mappings. The corresponding values are what were typed in by the user in the mapped base item. The item name is the key.Dictionary 包含LOV region的item的名字,这些Item被指定在被动的标准映射里。item的名字是key。

getLovCriteriaViewAttrNamespublic Dictionary getLovCriteriaViewAttrNames()Used from an LOV region's controller to find out all the values of the passive criteria mappings for that LOV. The returned dictionary is keyed by the view attribute name of the LOV region's item.

从LOV region的控制器找到该LOV的被动的标准映射的所有值。返回的dictionary 是以LOV region的item的视图属性名为key的。Returns:Dictionary containing all the view attribute name of the LOV region's items that are specified in passive criteria mappings. The corresponding values are what were typed in by the user in the mapped base item. The view attribute name is the key.

注意,这两个方法必须写在LOV region的控制器里:

Java代码Dictionary dictionary = pageContext.getLovCriteriaViewAttrNames();

// Dictionary dictionary = pageContext.getLovCriteriaItems();

intnum = dictionary.size();

Enumeration keys = dictionary.keys();

Enumeration elements = dictionary.elements();

System.out.println( " dictionary.size() = "+ num +",");

inti =0;

while(keys.hasMoreElements()) {

System.out.println( " key["+ i +"] = "+ keys.nextElement().toString() +",");

i++;

}

System.out.println(" out key loop i = "+ i +",");

i = 0;

while(elements.hasMoreElements()) {

System.out.println(" element["+ i +"] = "+ elements.nextElement().toString() +",");

i++;

}

System.out.println(" out element loop i = "+ i +",");

在Base Page上获得Lov是否触发,使用pageContext .isLovEvent(),可以通过pageContext.getLovInputSourceId()获得触发该事件的页面上LovInput的名称。

可以通过pageContext.getLovResultsFromSession(lovInputSourceId)获得Lov的返回值,用一个HashTable来传递。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值