Callback executed when a field is selected M Hewitson $Id: cb_fieldSelect.html,v 1.10 2008/03/31 10:27:44 hewitson Exp $
0001 function cb_fieldSelect(varargin) 0002 0003 % Callback executed when a field is selected 0004 % 0005 % M Hewitson 0006 % 0007 % $Id: cb_fieldSelect.html,v 1.10 2008/03/31 10:27:44 hewitson Exp $ 0008 % 0009 0010 %---- Set the order by field to the first in this list 0011 0012 % Get selected fields 0013 fieldList = findobj('Tag', 'fieldsList'); 0014 fieldsStr = get(fieldList, 'String'); 0015 vals = get(fieldList, 'Value'); 0016 fields = fieldsStr(vals); 0017 0018 orderBy = findobj('Tag', 'fieldOrderBy'); 0019 set(orderBy, 'Value', 1); 0020 set(orderBy, 'String', fields); 0021 0022 0023 % Build query 0024 buildquery(); 0025