最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

查询函数:SysQueryRangeUtil 扩展 / Query Functions: SysQueryRangeUtil Extensions

网络文摘 William 1166浏览 0评论
Now that overlayering is a thing of the past, how does one add methods to SysQueryRangeUtil as explained in my old post from back in 2013? Simple. Create your own class, name it whatever you want. Add a static method as described in the old post. The only difference is that you just put an attribute on top of it indicating that it's a query range utility method... So the method used in the old post, would now just look like this:
[QueryRangeFunctionAttribute()]
public static str customerTest(int _choice = 1)
{
    AccountNum accountNum;
switch(_choice) { case 1: accountNum = '1101'; break; case 2: accountNum = '1102'; break; } return accountNum; }   If you're look for an example in the standard code, you can find class "SysQueryRangeUtilDMF" in the AOT.
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址