FORMS进阶之——LOV式手电筒查询

1、新建参数header_id(引用时写 :parameter.header_id

2、新建LOV:QF_HEADER_ID_LOV
 
    
SELECT cohv.header_id,
cohv.order_number,
cohv.order_date,
cohv.customer_number,
cohv.customer_name,
cohv.telephone,
cohv.order_status_desc
FROM cux_om_headers_10000_v cohv
ORDER BY cohv.order_number DESC

3、给对应的块新建触发器:QUERY_FIND
触发器名字一定要是这个,点击电筒时只会找这个触发器
 
    
:parameter.g_query_find := 'TRUE';
app_find.query_find('QF_HEADER_ID_LOV');
:parameter.g_query_find := 'FALSE';
4.编写PRE-QUERY:
触发器内容:
 
    
IF :parameter.g_query_find = 'TRUE' THEN
:headers.header_id := :parameter.header_id;
END IF;


猜你喜欢

转载自blog.csdn.net/Hehuyi_In/article/details/52210176