How to Change Search Records in Component Interface

There are times when coding with Component Interface that you need a different search record that the one defined on the component. For example, you may have an application engine that is run by some “batch” user id that may not have the appropriate row level security to access to component data. Alternatively, you may have some code that calls a component interface where the user who is in context may not normally have access to the data. However, the the code behind the scenes at save time needs to update the data as the user. For example, let’s you have have an student who performs some action in the database and you need to log that action to the 3C component which has pretty stringent row level security.

You can’t change the search records at the component interface definition. This is how I normally get around that in PeopleSoft.

  1. Change the search record on the component to your desired Search Record.
  2. Open the CI definition and look for any red "x"s over the properties on the right hand side.
    • Delete those as needed.
    • This could potentially break other pieces of code using this CI so be sure to do your research on where this is used and if possible use the same properties names on the new search record properties to minimize the impacts.
  3. On all menus where that component is placed, put a menu level search record override back to the original with row level security search record.

The end result is that the code calling the CI will result in your desired behavior (No Row Level Security) but any online web users will still have the row level security functionality.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值