/// <summary> /// Clears a value from the DateTimeControl provided /// </summary> /// <param name="control"></param> public void ClearValue(DateTimeControl control) { _client.ClearValue(control); }
/// <summary> /// Sets the value of a Date Field. /// </summary> /// <param name="control">Date field control.</param> public void SetValue(DateTimeControl control) { _client.SetValue(control); }
/// <summary> /// Gets the value of a Lookup. /// </summary> /// <param name="control">The lookup field name of the lookup.</param> public DateTime?GetValue(DateTimeControl control) { return(_client.GetValue(control)); }
/// <summary> /// Sets the value of a Date Field. /// </summary> /// <param name="control">Date field control.</param> public void SetValue(DateTimeControl control) { _client.SetValue(control, FormContextType.Dialog); }
/// <summary> /// Clears a value from the DateTimeControl provided /// </summary> /// <param name="control"></param> public void ClearValue(DateTimeControl control) { _client.ClearValue(control, FormContextType.Entity); }
/// <summary> /// Gets the value of a DateTime Control from the header /// </summary> /// <param name="control">The date time field name of the lookup.</param> /// <example>xrmApp.Entity.GetValue(new DateTimeControl { Name = "estimatedclosedate" });</example> public DateTime GetHeaderValue(DateTimeControl control) { return(_client.GetHeaderValue(control)); }