#3106 closed enhancement (fixed)

Remove trailing space from accession column in Excel export

Reported by: Mark J. Millard Owned by: Kurt Endress
Priority: medium Milestone:
Component: Public Website App. Version: Server 2.3.1
Severity: Keywords: trailing space
Cc: lisa.burke@…, kurt.endress@… Database Engine: N/A
Operating System: N/A

Description

I noticed that the Excel export spreadsheet from a table of accessions presented in the public interface has a trailing space after the accession in the accession column. I discovered it when trying to do a vlookup compare from a accession column without a space that I generated looking for a match in the accession column that was exported. It would very much less troublesome to not to have a trailing space. The spaces are transparent and an inexperienced user would waste quite a bit of time trying to figure out what is happening.

The version of the public website observed is 2.3.12.

Attachments (2)

Ticket #3106 2025-07-07_15-12-15.jpg​ (239.1 KB ) - added by Mark J. Millard 17 months ago.
Location of Excel export button above accession table presented from any search on the Public Interface
Ticket 33106 2025-07-09_09-29-44.jpg​ (242.8 KB ) - added by Mark J. Millard 17 months ago.
How Notepad++ shows spaces in a column of accession numbers copied from a downloaded PW GRIN Excel Accession table

Download all attachments as: .zip

Change History (13)

comment:1 by Mark J. Millard, 17 months ago

I presented a an Excel export on 500 PVPs on npgsDEV after a fix on DEV was announced and the trailing spaces are gone.

The fix was to enhance the dataview to use this formula to put together the 3 fields needed to generate an accession number:

CONCAT_WS(' ', a.accession_number_part1, a.accession_number_part2, a.accession_number_part3)

I'll check production when the dataview is put in place. THANKS

comment:2 by Benjamin Haag, 17 months ago

Owner: changed from dbmulg to Benjamin Haag
Status: new → assigned

comment:3 by Benjamin Haag, 17 months ago

Tickets like this will be much more helpful if they are specific. The more you tell me about what you specifically saw, the more efficiently I can help.

1) How did you "notice" the whitespace in Excel? WHat exact steps did you take? Knowing this will allow me to replicate them to ensure that the issue is fixed.

comment:4 by Benjamin Haag, 17 months ago

Please name the exact dataview you are referring to.

Last edited 17 months ago by Benjamin Haag (previous) (diff)

comment:5 by Benjamin Haag, 17 months ago

Cc: kurt.endress@… added

comment:6 by Kurt Endress, 17 months ago

Changes made to dataview web_search_overview_2 and web_search_overview_noimages_2. Dataviews loaded to production after testing on npgsdev.

comment:7 by Benjamin Haag, 17 months ago

Owner: changed from Benjamin Haag to Kurt Endress

by Mark J. Millard, 17 months ago

Location of Excel export button above accession table presented from any search on the Public Interface

by Mark J. Millard, 17 months ago

How Notepad++ shows spaces in a column of accession numbers copied from a downloaded PW GRIN Excel Accession table

comment:8 by Mark J. Millard, 17 months ago

Sorry for not being as clear as needed. Being at this for a long time, I forget that many have not used Excel for decades. I thought the vlookup function described how I found the problem. The format I use is vlookup(cell somehere (example A2), Match the first item exactly in the first column of a range (example X:AA), Put in the location of this formula the cell from the column where A2=X? (Example 2), non-exact match (example FALSE). So cell formulat for this example =vlookup(A2,X:AA,2,FALSE). If there is no match found in the range then #N/A is presented.

Since I have some experience with EXCEL it dawned on me that there might be a space in the first column of accession number cells downloaded from GRIN being examined. I put my curser at the end of accession in the cell and used my arrow to go as far as I could to the right. I saw there might be a space there. I did a back space and yes there was a space there. You could verify by copying the column to a text editer that allows you to show spaces like Notepad++. I attach another picture to demonstrate what Notepad++ shows.

comment:9 by Mark J. Millard, 17 months ago

I did a PVP Zea search and downloaded the resulting Excel table. There does not appear to be spaces after the accession numbers.

comment:10 by Mark J. Millard, 17 months ago

Works on the accession table presented when clicking on the number of accessions cited in the accession OTHER tab presentation also. But perhaps this accession table is a different one from the one on the main accession page.

comment:11 by Mark J. Millard, 17 months ago

Resolution: → fixed
Status: assigned → closed
Note: See TracTickets for help on using tickets.