Hello
I try to filter the connection role for connections. It actually works with "addCustomView" by other tables, but with the connectionroles the view is always defaulting to 'Applicable connection Roles' even after setting setDefaultView on this control. Is there anyway I can default to my custom view ?
If i check networktraffic in my browser, i can see that my custom fetch is loading, but the default system fetch also is loading and my custom fetch is not added in the lookup
here is my code:
function setConnectionRoles(executionContext) { var formContext = executionContext.getFormContext(); var viewID = "66c0bb1e-90e1-4d56-8497-f1b8eae420c1"; var entity = "connectionrole"; var fetchData = { "statecode": "0", "category": "5" }; var fetchXml = [ "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "" ].join(""); var grid = "" " " " " " " ""; formContext.getControl("record2roleid").addCustomView(viewID, entity, "Connection-Roles", fetchXml, grid, true); }