On a classic dashboard grid, one of the fields is a drop down list fed by a BAQ. If the user starts typing in the field then it narrows the list down to choices that “start with” what they have typed. Is it possible to narrow it down to choices that “contain” what they have typed?
To add for more clarity since I also use this ‘where’ field quite often.
The following is from a helper function where I pass the outputFilter string directly into the ‘Where’ column:
var filters = new StringBuilder(); // Start with an empty string
if (filterLaser) filters.Append("JobOpDtl_OpDtlDesc LIKE '%Laser%'");
if (filterNakamura) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Nakamura%'" : "JobOpDtl_OpDtlDesc LIKE '%Nakamura%'");
if (filterDoosan) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Doosan%'" : "JobOpDtl_OpDtlDesc LIKE '%Doosan%'");
if (filterBand) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Band%'" : "JobOpDtl_OpDtlDesc LIKE '%Band%'");
if (filterManual) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Manual%'" : "JobOpDtl_OpDtlDesc LIKE '%Manual%'");
if (filterCitizen) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Citizen%'" : "JobOpDtl_OpDtlDesc LIKE '%Citizen%'");
if (filterMiyano) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Miyano%'" : "JobOpDtl_OpDtlDesc LIKE '%Miyano%'");
if (filterTornos) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Tornos - Twiss%'" : "JobOpDtl_OpDtlDesc LIKE '%Tornos - Twiss%'");
if (filterTornos) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 2%'" : "JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 2%'");
if (filterTornos) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 3%'" : "JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 3%'");
if (filterTornos) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 4%'" : "JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 4%'");
if (filterTornosMill) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Tornos - Millgrove%'" : "JobOpDtl_OpDtlDesc LIKE '%Tornos - Millgrove%'");
if (filterTornosMill) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 1%'" : "JobOpDtl_OpDtlDesc LIKE '%Tornos Machine 1%'");
if (filterClean) filters.Append(filters.Length > 0 ? " OR JobOpDtl_OpDtlDesc LIKE '%Twiss Clean%'" : "JobOpDtl_OpDtlDesc LIKE '%Twiss Clean%'");
// If no filters were applied, set a default value (optional)
if (filters.Length == 0)
filters.Append("JobOpDtl_OpDtlDesc = ''");
outputFilter = filters.ToString();
When this is finalized and ready for testing, use Actions → Promote Library to Production
Note, if any changes must be made to any functions in a library, you must demote the library from production in order to be able to make any changes. This will also break any applications you have made that call functions from this library or any scheduled functions etc while this is demoted.