예제 #1
0
 /// <summary>
 /// Gets the value of a LookupItem from the header
 /// </summary>
 /// <param name="control">The lookup field name of the lookup.</param>
 /// <example>xrmApp.Entity.GetValue(new Lookup { Name = "primarycontactid" });</example>
 public string GetHeaderValue(LookupItem control)
 {
     return(_client.GetHeaderValue(control));
 }
예제 #2
0
 /// <summary>
 /// Searches records in a lookup control
 /// </summary>
 /// <param name="control">LookupItem with the name of the lookup field</param>
 /// <param name="searchCriteria">Criteria used for search</param>
 public void Search(LookupItem control, string searchCriteria)
 {
     _client.SearchLookupField(control, searchCriteria);
 }
예제 #3
0
 /// <summary>
 /// Sets the value of a Lookup.
 /// </summary>
 /// <param name="control">The lookup field name, value or index of the lookup.</param>
 public void SetValue(LookupItem control, int index = 0)
 {
     _client.SetValue(control, index);
 }
예제 #4
0
 /// <summary>
 /// Clears a value from the LookupItem provided
 /// </summary>
 /// <param name="control"></param>
 public void ClearValue(LookupItem control)
 {
     _client.ClearValue(control);
 }
예제 #5
0
 /// <summary>
 /// Selects a Lookup Field
 /// </summary>
 /// <param name="control">LookupItem with the schema name of the field</param>
 public void SelectLookup(LookupItem control)
 {
     _client.SelectLookup(control);
 }
예제 #6
0
 /// <summary>
 /// Sets the value of a Lookup in the header
 /// </summary>
 /// <param name="control">The lookup field name, value or index of the lookup.</param>
 public void SetHeaderValue(LookupItem control)
 {
     _client.SetHeaderValue(control);
 }
예제 #7
0
 /// <summary>
 /// Retrieves the value of a Lookup field
 /// </summary>
 /// <param name="field">LookupItem with the schema name of the field to retrieve</param>
 public string GetValue(LookupItem field)
 {
     return _client.GetValue(field);
 }
예제 #8
0
 /// <summary>
 /// Sets the value of a LookupItem field
 /// </summary>
 /// <param name="field">LookupItem with the schema name of the field to retrieve</param>
 public void SetValue(LookupItem control)
 {
     _client.SetValue(control, FormContextType.BusinessProcessFlow);
 }
 /// <summary>
 /// Sets the value of a Lookup.
 /// </summary>
 /// <param name="control">The lookup field name, value or index of the lookup.</param>
 public void SetValue(LookupItem control)
 {
     _client.SetValue(control, FormContextType.Dialog);
 }
예제 #10
0
 /// <summary>
 /// Clears a value from the LookupItem provided
 /// Can be used on a lookup, customer, owner, or activityparty field
 /// </summary>
 /// <param name="control"></param>
 /// <example>xrmApp.Entity.ClearValue(new LookupItem { Name = "parentcustomerid" });</example>
 /// <example>xrmApp.Entity.ClearValue(new LookupItem { Name = "to" });</example>
 public void ClearValue(LookupItem control)
 {
     _client.ClearValue(control, FormContextType.Entity);
 }
예제 #11
0
 /// <summary>
 /// Clears a value from the LookupItem provided
 /// Can be used on a lookup, customer, owner, or activityparty field
 /// </summary>
 /// <param name="control"></param>
 /// <example>xrmApp.QuickCreate.ClearValue(new LookupItem { Name = "parentcustomerid" });</example>
 /// <example>xrmApp.QuickCreate.ClearValue(new LookupItem { Name = "to" });</example>
 public void ClearValue(LookupItem control)
 {
     _client.ClearValue(control, FormContextType.QuickCreate);
 }