Home > m > gui > ltpdaRepoGUI > callbacks > cb_fieldSelect.m

cb_fieldSelect

PURPOSE ^

Callback executed when a field is selected

SYNOPSIS ^

function cb_fieldSelect(varargin)

DESCRIPTION ^

 Callback executed when a field is selected
 
 M Hewitson
 
 $Id: cb_fieldSelect.m,v 1.3 2008/02/07 19:27:37 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cb_fieldSelect(varargin)
0002 
0003 % Callback executed when a field is selected
0004 %
0005 % M Hewitson
0006 %
0007 % $Id: cb_fieldSelect.m,v 1.3 2008/02/07 19:27:37 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

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003