new JavaScript Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/new-javascript/ Microsoft Dynamics CRM . Microsoft Power Platform Fri, 19 Dec 2014 13:43:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32&ssl=1 new JavaScript Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/new-javascript/ 32 32 176351444 Change label of fields using javascript in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 https://microsoftdynamics.in/2014/12/19/change-label-of-fields-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/ Fri, 19 Dec 2014 13:43:00 +0000 http://microsoftdynamics.in/2014/12/19/change-label-of-fields-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/ We can change the label of a field using JavaScript by following : function changeLabel() {     var labelname = “newname” ;     Xrm.Page.ui.controls.get( “fieldname” ).setLabel(labelname); } SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Change label of fields using javascript in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
We can change the label of a field using JavaScript by following :

function changeLabel() {

    var labelname = “newname” ;
    Xrm.Page.ui.controls.get( “fieldname” ).setLabel(labelname);


}


SOURCE : JUST2CODE.IN
Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Change label of fields using javascript in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
2815
NEW JAVASCRIP METHOD FOR MS CRM 2013 AND MS CRM 2015 https://microsoftdynamics.in/2014/12/19/new-javascrip-method-for-ms-crm-2013-and-ms-crm-2015/ Fri, 19 Dec 2014 13:29:00 +0000 http://microsoftdynamics.in/2014/12/19/new-javascrip-method-for-ms-crm-2013-and-ms-crm-2015/ THERE ARE SOME NEW JAVA SCRIPT METHOD WITH MS CRM 2013 AND 2015 , SOME THEM ARE BELOW : • Xrm.Page.context.client.getClient() – Returns client type i.e. outlook, web or mobile.• Xrm.Page.context.client.getClientState() – Returns client state i.e. online or offline.• Xrm.Page.data.refresh() – This is one interesting as it refreshes the data on the form without even reloading the page....

The post NEW JAVASCRIP METHOD FOR MS CRM 2013 AND MS CRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
THERE ARE SOME NEW JAVA SCRIPT METHOD WITH MS CRM 2013 AND 2015 , SOME THEM ARE BELOW :

• Xrm.Page.context.client.getClient() – Returns client type i.e. outlook, web or mobile.
• Xrm.Page.context.client.getClientState() – Returns client state i.e. online or offline.
• Xrm.Page.data.refresh() – This is one interesting as it refreshes the data on the form without even reloading the page. This also enables developers to pass a callback method.
• Xrm.Page.data.save() – Save the form

• Xrm.Page.data.getIsValid() – Returns true is form is valid for save else false
• Xrm.Page.data.setFormDirty() – Sets the form dirty for force save.
• Xrm.Page.data.entity.getPrimaryAttributeValue() – Returns the value of primary attribute
• Xrm.Page.ui.setFormNotification(message,level,uniqueId) – Sets the notification on top of the form.
• Xrm.Page.ui.clearFormNotification() – Clears the form notification
• Xrm.Page.ui.refreshRibbon() – Refreshes the ribbon. This method does not work on CRM for tablets
• Xrm.Page.getControl(“field_name”).setNotification(“Notification”) – Sets the notification for a specific field right next to the field label. This can often be used as a custom tool tip.
• Xrm.Page.getControl(“new_name”).clearNotification() – Clears the notification
• Xrm.Page.getAttribute(“new_precision”).setPrecision(2) – Override field precision
• Xrm.Page.getControl(“createdon”).setShowTime(true) – Toggle show time at form
• Xrm.Page.getControl(“field_name”).addCustomFilter(fetchFilter, entityType) – Allows developer to add custom filter to a lookup view.
• Xrm.Page.getControl(“field_name”).addPreSearch(handler) – adds pre trigger filter to the lookup
• Xrm.Page.getControl(“ownerid”).removePreSearch(handler) – removes the trigger
• Xrm.Utility.openWebResourceDialog(webResourceName, webResourceData, width, height) – opens a sepecified webresource as a web dialog window.

source : msdn.com


SOURCE : JUST2CODE.IN
Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post NEW JAVASCRIP METHOD FOR MS CRM 2013 AND MS CRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
2816