go to post Chris Eslinger · May 31 Set QueryClass = "GMECC.DocmanConnect.Tables.vwNewGPs" Set QueryName = "GetRows" Set tResult = ##class(%Library.ResultSet).%New(QueryClass_":"_QueryName) Set tResult.RuntimeMode = 1 Set:Params="" status = tResult.Execute() Set:Params'="" status = tResult.Execute(Params) 0 0 go to post Chris Eslinger · Oct 29, 2021 Hi Chip, I believe you need to create a function that extends Ens.Rule.FunctionSet which should then give you the option to select this function within the UI or for usage within the DTL as well depending on your preference of course. Let me see if I can find an example for you. Note: I simplified my code to fit closer to your ask, but I did not test it. Thanks, Chris Appendix) Figure 1) SimplePid3Filter Function call within when clause Figure 2) SimplePid3Filter function being called via DTL where the return type is As %String (clipped from screenshot) 2 0 go to post Chris Eslinger · Oct 29, 2021 Hello, I would double check the spelling as your question and code snippet have different values e.g. "Relation" vs "Relatie". Generally, I would create and call a custom ObjectScript function to accomplish what you are looking to do as that would allow you greater flexibility and greater control as well in my opinion. Thanks, Chris 0 0 Followers:Chris has no followers yet.Following:show all 6Vitaly F.Robert C.Anton U.Dmitry M.Eduard L.Evgeny S.Global Masters badges:Chris has no Global Masters badges yet.