IT Monkey:   Join the Cireson Community today for your chance to win $50!
Cireson Partners, Customers and Community members share your customizations and examples here to help benefit the community as a whole to earn Kudos and badges.

DISCLAIMER

All files and projects located here are provided and come "as-is" and without any warranty or support. Use at your own risk. Your use of Community Uploads is subject to our Terms of Use.

Cireson does not and will not support or maintain these enhancements, extensions, and scripts.

For Team Cireson uploads click here.

Filter on Announcement access group or other query-result lists

Morten_MeislerMorten_Meisler Premier Partner Advanced IT Monkey ✭✭✭

I got a request to filter on the access group when creating/editing new annoucements, thought I share it here. You can reuse the logic for other comboboxes, like Affected or Assigned User.

I had to make a timeout to make sure the input-control was loaded. Maybe someone out there can do it a little more elegant :)

To be placed in custom.js:

/* Announcements */
$(document).ready(function (formObj){
 if ($(".annoucncement-control-wrapper").length)
 {
  setTimeout(function(){
    $($("input[data-role='combobox']")[1]).data("kendoComboBox").dataSource.filter({ field: "name", operator: "startswith", value: "SG_SP" });
   
  },4000);
  
 } 
});

Cheers

Morten

Sign In or Register to comment.