Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

Unable to set the CRM field using silver light control

$
0
0

Hello,

I am trying to learn silverlight with CRM 2011.

I have created 1 basic SL application , in which i took a slider control & when

slider1_ValueChanged event fire, i am setting the CRM field (Decimal) by using dynamic object. using below code lines:

dynamic xrm = (ScriptObject)HtmlPage.Window.GetProperty("Xrm");             
var numAttr = xrm.Page.getAttribute("new_test");
numAttr.setValue(Math.Round(slider1.Value, 0));

But when i am going to set the CRM field value, i am getting  below exception :

Unhandled Error in Silverlight Application Object reference not set to an instance of an object. at CRMSliderControl.MainPage.slider1_ValueChanged(Object sender, RoutedPropertyChangedEventArgs`1 e)

when i debug the app, i found this ,

"Cannot perform runtime binding on a null reference"

I am not able to getting , whats the actual issue.


Viewing all articles
Browse latest Browse all 10280


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