025552d441bacf5bad36164260240d79d51bdac5
galt
Tue Oct 15 17:06:08 2019 -0700
fixes #23228. Added a reset button. I also fixed the limit to work right by passing the limit to the SQL query which was oddly not done -- it had only been limiting the drawing of results rather than the fetching of results. It now runs nice and fast.
diff --git src/hg/cirm/cdw/cdwWebBrowse/cdwWebBrowse.c src/hg/cirm/cdw/cdwWebBrowse/cdwWebBrowse.c
index 4f89154..2dc134c 100644
--- src/hg/cirm/cdw/cdwWebBrowse/cdwWebBrowse.c
+++ src/hg/cirm/cdw/cdwWebBrowse/cdwWebBrowse.c
@@ -1504,30 +1504,35 @@
fieldedTableAdd(table, row, fieldCount, ++i);
}
char returnUrl[PATH_LEN*2];
safef(returnUrl, sizeof(returnUrl), "../cgi-bin/cdwWebBrowse?cdwCommand=browseLabs&%s",
cartSidUrlString(cart) );
struct hash *outputWrappers = hashNew(0);
hashAdd(outputWrappers, "web page", wrapExternalUrl);
webSortableFieldedTable(cart, table, returnUrl, "cdwLab", 0, outputWrappers, NULL);
fieldedTableFree(&table);
}
void doAnalysisQuery(struct sqlConnection *conn)
/* Print up query page */
{
+if (cartNonemptyString(cart, "cdwQueryReset"))
+ {
+ cartRemovePrefix(cart, "cdwQuery");
+ }
+
/* Do stuff that keeps us here after a routine submit */
printf("Enter a SQL-like query below. ");
printf("In the box after 'select' you can put in a list of tag names including wildcards. ");
printf("In the box after 'where' you can put in filters
based on boolean operations between ");
printf("fields and constants. Select one of the four formats and press view to see the matching data on ");
printf("this page.
The limit can be set lower to increase the query speed.
");
printf("