add_rows_from_eq_table_by_filter
Add rows to a table from a similar table whose values in columns correspond to the specified ones.
Call:
ts_table(int iTableDescr, "add_rows_from_eq_table_by_filter", int iTableFrom, bool bstoponfirstnoteq, bool bsum, int icolumnindex1, string value1, ... string scolumnnameN, double valueN);
Here:
iTableDescr - table descriptor to add rows to;
iTableFrom - table descriptor from which to take these rows;
bstoponfirstnoteq - stop the selection as soon as the first non-matching row appears after the found rows (i.e. assume that all the necessary rows are localized in one place in the table);
bsum - if true, then add rows as add_row_sum (i.e. if there is a row matching the key column, then simply sum the values in the numeric columns);
icolumnindex1...N - numbers of columns in which to search for a match;
scolumnname1...N - columns can be specified by their names;
svalue1... N - text value for selection;
dvalue2... N - numeric or other values to filter.
If the columns and their values are not specified for the filter, then the entire content is added.