Odd thing here, and poorly described.
I have four filters attached to a dataview called FilterDV. I have this whereclause on the kinetic-baq widget. The whereclause is built in a row update because it quits working when the whereclause gets too long stuffed directly inside the Where field.
So, in the row update, FilterDV.CalculateWhere =
“InvcHead_FiscalYear >= '” + ({FilterDV.FiscalYearFrom} || “0”) + “’ AND InvcHead_FiscalYear <= '” + ({FilterDV.FiscalYearTo} || “9999”) + “’ AND InvcHead_FiscalPeriod >= '” + ({FilterDV.FiscalPeriodFrom} || “00”) + “’ AND InvcHead_FiscalPeriod <= '” + ({FilterDV.FiscalPeriodTo} || “99”) + “'”
That works great UNTIL I enter a value in a filter and then go back and clear that value and hit the refresh. The dashboard never works again, at least the baq get doesn’t work.
I’ve seen a reference or two that says sometimes when you clear data from a string field it will go null. The control doesn’t gray out, so I don’t know.
Anyway, I’ve tried to come up with a way to sanitize the filters right before the whereclause calculation. If I try to modify the value in a row update like this:
Binding: FilterDV.FiscalYearFrom Expression: String({FilterDV.FiscalYearFrom}
or
Binding: FilterDV.FiscalYearFrom Expression: ??{FilterDV.FiscalYearFrom}
The row update hangs – trying to change itself, maybe. ??
I might be forced to add an event with a bunch of condition blocks, but I have a bunch of dashboards to recreate and that’s a lot more work.
Anyone have an idea here? Surely someone’s been down this road.
And I know the search is imperfect, but it’s what they’re already using.
Thanks,
Joe

