Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Automatically retrieve the name of the web resource control in forms

$
0
0

Hello,

I am creating a control for my Dynamics CRM forms. This control is basically a simple HTML web resource with some JS. In the JS code, I would like to do the following:

parent.Xrm.Page.getControl(currentControlName);


As the currentControlName is something that may change depending on who adds it the form, I do not want to hardcode in my resource:

var currentControlName = "WebResource_[a control name]";

Is there a way to automatically determine in which control my JS is running?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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