view m-toolbox/classes/@repogui2/cb_fieldSelect.m @ 1:2014ba5b353a database-connection-manager

Remove old code
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Sat, 03 Dec 2011 18:13:55 +0100
parents f0afece42f48
children
line wrap: on
line source

% CB_FIELDSELECT callback executed when a field is selected
%
% M Hewitson
%
% $Id: cb_fieldSelect.m,v 1.2 2011/04/08 08:56:36 hewitson Exp $
%
function cb_fieldSelect(varargin)


  mainfig = varargin{end};
  
  %---- Set the order by field to the first in this list

  % Get selected fields
  fieldList = findobj(mainfig.handle, 'Tag', 'fieldsList');
  fieldsStr = get(fieldList, 'String');
  vals      = get(fieldList, 'Value');
  fields    = fieldsStr(vals);

  orderBy = findobj(mainfig.handle, 'Tag', 'fieldOrderBy');
  set(orderBy, 'Value', 1);
  set(orderBy, 'String', fields);


  % Build query
  repogui2.buildquery(mainfig);

end