Skip a Search Record Prompt When You Know the Keys

本文介绍了一种使用PeopleCode函数SetSearchDialogBehavior优化搜索视图的方法,通过设置skipifpossible参数,可以跳过已知关键字的搜索对话框,提高系统效率。文章提供了具体的PeopleCode示例代码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Here is a worthy tip to take note of. If you are going into a new page and using a search view, yet you already know the keys of that search view, you can use the PeopleCode function SetSearchDialogBehavior. This function is called from the SearchInit PeopleCode of the actual search record and can overide the default behavior. You have two settings to choose from: skip if possible (0) and force display (1).

 

If you use the skip if possible setting, then you need to have the keys. Assume your keys are EMPLID, EMPL_RCD, and EFFDT. Here is what the SearchInit PeopleCode would look like:


SetSearchDialogBehavior(0);
EMPLID = %EmployeeID;
EMPL_RCD = 0;
EFFDT = &DateVariable;

转载于:https://www.cnblogs.com/GoDevil/archive/2009/01/09/1372666.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值