PeopleCode events: SearchInit, SearchSave and RowSelect

深入探讨PeopleCode事件中的组件处理器如何检查事件上的代码是否存在,以及如何在搜索初始化、搜索保存、行选择事件中进行代码编写以实现特定功能。

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

 Remember:
One thing you must know about peoplecode events is that component processor has some mean to check whether any peoplecode is written on an event or not and if there is no code written on an event, that event is not executed.

SearchInit:
Component processor determines search record, search keys, search mode and displays the search page accordingly in SearchInit event. That is why we can write the code for skipping the search pge on SearchInit event.
Following functions can be used in SearchInit:
  1. SetSearchEdit
  2. ClearSearchEdit
  3. SetSearchDefault
  4. ClearSearchDefault
  5. SetSearchDialogBehavior

SearchSave:
SearchSave event happens when we click on search button of search page after entering the search values. We can write validations to check whether any search criteria is entered on the search page on SearchSave event. In SearchSave event itself search values appear listed in a grid on search page. If any error is issued on this event using peoplecode processing stops and no search result are listed on the page.

RowSelect:
After SearchSave event Rowselect event occures when we click on one of the result row listed on search page, But when in SearchSave if there is only one row returned then that row is automatically selected for RowSelect processing. In RowSelect processing we can check the values of row being selected and can discard that row using DiscardRow() or can stop fetching using StopFetching() function.

One must remember following things about that DiscardRow() and StopFetching():
  1. DiscardRow() stops current row from being added to page scroll and StopFetching() stops the fetching data to page.
  2. DiscardRow() acts as a warning and StopFetching() acts as an error in RowSelect event not by giving some prompt but by its functionality.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值