How to use GetDataSetEx to retrieve customer information
private void GetCustomerInfo()
{
string dataSet = string.Empty;
string response = string.Empty;
string filter = String.Format("CreationDate > '2023-03-01'");
lv.QlmLicenseObject.GetDataSetEx(string.Empty, "qryCustomerInfo", filter, ref dataSet, out response);
ILicenseInfo licenseInfo = new LicenseInfo();
string message = string.Empty;
if (lv.QlmLicenseObject.ParseResults (response, ref licenseInfo, ref message))
{
DataSet ds = new DataSet("NewDataSet");
XmlReader reader = new XmlTextReader(dataSet, XmlNodeType.Document, null);
if (!String.IsNullOrEmpty(dataSet))
{
ds.ReadXml(reader);
if ((ds.Tables.Count > 0) && (ds.Tables[0].Rows.Count > 0))
{
DataRowCollection drc = ds.Tables[0].Rows;
if (drc != null)
{
foreach (DataRow dr in drc)
{
string email = dr["Email"].ToString();
Console.WriteLine(email);
}
}
}
}
}
}PreviousHow to allow specific customers to work offline indefinitelyNextHow to implement a pay-per-use model with QLM
Last updated