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

Useful javascript methods in CRM 2015

 avril 11, 2017     No comments   

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 the current language code(LCID) :
Xrm.Page.context.getUserLcid();

//Get the organization base language code (LCID)
Xrm.Page.context.getOrgLcid();

//Get the current user id (GUID)
Xrm.Page.context.getUserId();

//Get the current user name
Xrm.Page.context.getUserName();

//Get the associated roles to the current user([]GUID)
Xrm.Page.context.getUserRoles();

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

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);
}
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

How to display the button "See the records associated " on subgrid in CRM

 mars 21, 2017     1 comment   



Usually any sub-grid has a button to show the associated records to the main records, us shown :


                              


The visibility of this button is managed in the navigation area in the form editor of the main record.
For example if you have a sub-grid of DISPLAY & SAMPLES on the form of the ACCOUNT, to show the button "See the records associated" on the sub-grid you should add the DISPLAY & SAMPLES relationship to the navigation links in the main form editor's ACCOUNT,


1 - As you can see the button is hided and also the in the top navigation the DIPLAY & SAMPLES is missing.
NB : The top navigation was in the left in CRM 2011.





2 - To display the "See the records associated" button, you go to the main form of the Record that countain the sub-grid, in our case it's the main form of the ACCOUNT.
  - Next on the Home Tab, select Navigation, and drag and drop The "Display & Samples". In my case, I placed under the marketing area.
  - Save and publish.


3 - After the previous modification, two changes take place : 
   a. The "See the records associated" button is displayed.
   b. The DIPLAY & SAMPLES is displayed in the top navigation.





Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Detect the changed attributes After a Form Save [InputParameters – Dynamic CRM]

 mars 20, 2017     No comments   

After the user clicks on the save button, the PreUpdate Plugin is executed to prepare all the necessary operation before the save method takes action; after that, the PostUpdate is here to do its job. So how can we detect or catch only the updated/changed attributes of the entity?
The answer of the previous question is really easy ðŸ˜‰ … You can visualize the changed attributes by using the :
var context = localContext.PluginExecutionContext;
var order = (Entity) context.InputParameters[“Target”];
So in every Request we will get a different entity, and this is normal because each request will update a different properties, so our entity will contain the data that is currently used in the current message.
The InputParameters property contains the data that is in the request message currently being processed by the event execution pipeline. [MSDN]
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Articles plus récents Accueil

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)
      • How to display the button "See the records associa...
      • Detect the changed attributes After a Form Save [I...

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