Quantcast
Channel: Sam's Activities
Viewing all articles
Browse latest Browse all 3363

Difference between Xrm.Page.getControl(‘xyz’).getValue() and Xrm.Page.getAttribute(‘xyz’).getValue() in Dynamics 365 CRM

$
0
0

Many times while working in Dynamics 365 CRM we found small clues tips which sometimes becomes life saver for us. Today in this blog I will share one of such small tip.

If we enter special characters like # $ % & ( ‘ in text input the GetControl & Getattribute will give different result.

Example:

Xrm.Page.getControl(ikl_folderpath).getValue() = /folderpath

Xrm.Page.getAttribute(ikl_folderpath).getValue() = /folderpath#

Both the statement above will give different results as shown in the below screenshot.

Difference between Getcontrol and getAttribute

GetControl() method replaces the special characters # $ %  & ( ‘  to blank if it is placed at the end whereas GetAttribute() method doesn’t remove any special characters from the end and displays it as it is.

Hope this helps!

Get-started-with-QuickBooks-and-Dynamics-365-Integration


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>