The daily Feed back Dynamic CRM

  • Home
  • Business
    • Internet
    • Market
    • Stock
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Home
  • Business
    • Internet
    • Market
    • Stock
  • Downloads
    • Dvd
    • Games
    • Software
      • Office
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Uncategorized

Filter a lookup field by javascript, Microsoft dynamics CRM 2015

 avril 11, 2017     No comments   


Today, i will talk about how to filter the result of a lookup field. Before we start note that you can filter your lookup field by the customisation that crm offer by double clicking on the lookup field on your form


But unfortuanlity, this customisation does not offer a lot of choices. To have hand free, you can implement what ever you want by javascript.



OnLoad
: function () {
//Filter source lookup field
FilterSourceField();
},
FilterSourceField: function () {
Xrm.Page.getControl("source").addPreSearch(SourceFilter);
},
SourceFilter: function () {

   var Filter = "<filter type='and'><condition attribute='sourceName'
operator='like' value='" %john% "' /></filter>";
Xrm.Page.getControl("source").addCustomFilter(Filter);
}
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Envoyer par e-mailBlogThis!Partager sur XPartager sur Facebook
Article plus récent Article plus ancien Accueil

0 commentaires:

Enregistrer un commentaire

Popular Posts

  • How to display the button "See the records associated " on subgrid in CRM
    Usually any sub-grid has a button to show the associated records to the main records, us shown :                                T...
  • Useful javascript methods in CRM 2015
    Recently I have a list of useful javascript methods, You will find in the list below some of the methods that I used in my work: //Get th...
  • Filter a lookup field by javascript, Microsoft dynamics CRM 2015
    Today, i will talk about how to filter the result of a lookup field. Before we start note that you can filter your lookup field by the cus...

Recent Posts

Flag Counter

Unordered List

Pages

  • Accueil

Text Widget

Blog Archive

  • ▼  2017 (4)
    • ▼  avril (2)
      • Useful javascript methods in CRM 2015
      • Filter a lookup field by javascript, Microsoft dyn...
    • ►  mars (2)

Rechercher dans ce blog

Fourni par Blogger.

Signaler un abus

Useful javascript methods in CRM 2015

Recently I have a list of useful javascript methods, You will find in the list below some of the methods that I used in my work: //Get th...

Sample Text

Copyright © The daily Feed back Dynamic CRM | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By blogger Templates