零雨其蒙's Blog

做优秀的程序员
随笔 - 59, 文章 - 13, 评论 - 58, 引用 - 0
数据加载中……

OAF Lov基本知识

JavaDoc

getLovCriteriaItems

public 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。

getLovCriteriaViewAttrNames

public 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代码 
  1. Dictionary dictionary = pageContext.getLovCriteriaViewAttrNames();  
  2.     // Dictionary dictionary = pageContext.getLovCriteriaItems();  
  3.      int num = dictionary.size();  
  4.      Enumeration keys = dictionary.keys();  
  5.      Enumeration elements = dictionary.elements();  
  6.   
  7.     System.out.println( " dictionary.size() = " + num + ",");  
  8.     int i = 0;  
  9.     while (keys.hasMoreElements()) {  
  10.       System.out.println( " key[" + i + "] = " + keys.nextElement().toString() + ",");  
  11.       i++;  
  12.     }  
  13.     System.out.println(" out key loop i = " + i + ",");  
  14.     i = 0;  
  15.     while (elements.hasMoreElements()) {  
  16.       System.out.println(" element[" + i + "] = " + elements.nextElement().toString() + ",");  
  17.       i++;  
  18.     }  
  19.    System.out.println(" out element loop i = " + i + ",");  

 

 

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

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

posted on 2011-08-02 13:31 零雨其蒙 阅读(839) 评论(0)  编辑  收藏 所属分类: Oracle EBS


只有注册用户登录后才能发表评论。


网站导航: