#2006 closed enhancement (fixed)
Search for Web Orders and Orders Related to a User
| Reported by: | Martin Reisinger | Owned by: | Pete Cyr |
|---|---|---|---|
| Priority: | minor | Milestone: | CT (TBD) |
| Component: | CT Cooperator Wizard | Version: | N/A |
| Severity: | Keywords: | search | |
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
A nice to have: in the Coop Wizard, and/or the Order Wizard, a separate tab, with the capability to search for related web orders and orders. The search fields used in the 1.9.9.4 Coop Wizard can be used here.
Something similar to the following (see attached image):
SELECT wor.web_order_request_id, o.order_request_id, wor.ordered_date, wu.user_name, wc.last_name, wc.first_name
FROM web_order_request wor
JOIN web_cooperator wc
ON wor.web_cooperator_id = wc.web_cooperator_id
JOIN web_user wu
ON wor.created_by = wu.web_user_id
LEFT JOIN order_request o
ON wor.web_order_request_id = o.web_order_request_id
JOIN web_order_request_item wori
ON wor.web_order_request_id = wori.web_order_request_id
JOIN accession a
ON wori.accession_id = a.accession_id
JOIN cooperator c
ON a.owned_by = c.cooperator_id
JOIN site s
ON c.site_id = s.site_id
/* Edit date and site
WHERE wor.web_order_request_id = 23135 */
WHERE wu.user_name = 'mar@…'
GROUP BY wor.web_order_request_id, o.order_request_id, wor.ordered_date, wu.user_name, wc.first_name, wc.last_name
Attachments (1)
Change History (6)
by , 7 years ago
| Attachment: | web_orders_orders_list_2020-05-05_17-38-04.jpg added |
|---|
comment:1 by , 7 years ago
comment:3 by , 5 years ago
Per Marty's original post:
Something similar to the following (see attached image):
SELECT wor.web_order_request_id, o.order_request_id, wor.ordered_date, wu.user_name, wc.last_name, wc.first_name
FROM web_order_request wor
JOIN web_cooperator wc
ON wor.web_cooperator_id = wc.web_cooperator_id
JOIN web_user wu
ON wor.created_by = wu.web_user_id
LEFT JOIN order_request o
ON wor.web_order_request_id = o.web_order_request_id
JOIN web_order_request_item wori
ON wor.web_order_request_id = wori.web_order_request_id
JOIN accession a
ON wori.accession_id = a.accession_id
JOIN cooperator c
ON a.owned_by = c.cooperator_id
JOIN site s
ON c.site_id = s.site_id
/* Edit date and site
WHERE wor.web_order_request_id = 23135 */
WHERE wu.user_name = 'mar@…'
GROUP BY wor.web_order_request_id, o.order_request_id, wor.ordered_date, wu.user_name, wc.first_name, wc.last_name
STATUS: the Curator Tool is not allowed to submit SQL queries for searches - the GRIN-Global Middle Tier does not have an interface for the Curator Tool to submit such requests. In order to enable the Curator Tool to submit SQL queries the Middle Tier will need to be enhanced to provide a means of doing SQL based searches. Until the Middle Tier is enhanced, the current workaround is to submit SQL queries to the Public Website (which the Middle Tier allows)
Per Marty's comments from May 19, 2020:
"This feature needs to be enhance to web orders when they have been merged into an order."
STATUS: this is now addressed in CT v1.21.5.17
"It should also be enhance to simply find the weborder that has not been processed yet."
STATUS: the Order Tab cannot search for (nor display) Order Requests that have not been created yet. If the user is looking for a specific Web Order Request that has not been processed yet, please use the Web Order Tab designed specifically for this purpose.
"Also, the interface does not indicate that the find didn't work because the current condition wasn't met, that is, no order exists that came from the web order number indicated for the search."
STATUS: this is now addressed in CT v1.21.5.17
comment:4 by , 5 years ago
In v1.21.5.18
In the Order Wizard (OW), on the Orders tab, a message has been added to indicate when no orders are found when a specific Web Order is inputted in the Order Filter box. Also, the OW now finds orders into which the web order has been merged.
comment:5 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | addressed → closed |

Also, in the OW 1.9.9.4, a new feature allows the user to search for a web order at the Order tab. It will find the web order only when an order has been created for that weborder. This feature needs to be enhance to web orders when they have been merged into an order. It should also be enhance to simply find the weborder that has not been processed yet.
Also, the interface does not indicate that the find didn't work because the current condition wasn't met, that is, no order exists that came from the web order number indicated for the search.