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.