alert("This page has a MasterKey widget that needs a query specified by the '" + name + "' variable");
}
}
- }
- if (query) {
var sortOrder = widget.config.sort;
var maxrecs = widget.config.maxrecs;
var perpage = widget.config.perpage;
var targetfilter = widget.config.targetfilter;
widget.team.queue("ready").subscribe(function() {
+ // Postpone testing for the target configuration item: this is
+ // not set at compile-time for Record subclass widgets that set
+ // it in the subclass, as widget.autosearch is called in the
+ // superclass, before the subclass fiddles with the configuration.
var target = widget.config.target;
if (target) targetfilter = 'udb=="' + target + '"';