Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#1890 closed defect (fixed)

Picker When Opened Displays a Random Character

Reported by: Martin Reisinger Owned by: Pete Cyr
Priority: minor Milestone: CT (TBD)
Component: Curator Tool Version: N/A
Severity: Keywords: lookup
Cc: Database Engine: N/A
Operating System: N/A

Description

A user write: "When in the AW / Source tab after adding a Source Type, then clicking on New Cooperator brings up the Cooperator Picker. Every time I have done this the Cooperator Picker comes up with a character in the first space (appears to be some random letter or number). So, I have to first backspace to clear this character before entering the name I am searching for."

[I believe this is beyond the Accession Wizard. I will look for this and add images. -mar]

Change History (4)

comment:1 by Pete Cyr, 6 years ago

Status: new → addressed

Addressed in CT v1.21.5.17

comment:2 by Mark J. Millard, 5 years ago

The lookup problem in attach wizard seems to have been addressed, but a problem has arisen with an exception when one tries to edit in the grid view of the attachement record. Here is a summary of what happened and the exception:

I want a particular display sequence of the images on the public interface. That requires me to enter that sequence into the grid view on the wizard. I got this error when I first type in a sequence number. I have not seen this on earlier wizards. I hit continue and go to the next record and type in my sequence and get the error again. I continue. I then save the records with the sequence I want. The save ok. I close the wizard. I open the wizard and see what saved. All is there including the sequences. I edit the sequence and I again get the error.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Exception Text
System.InvalidCastException: Unable to cast object of type 'System.Data.DataTable' to type 'System.Windows.Forms.BindingSource'.

at InventoryAttachmentWizard.InventoryAttachmentWizard.ux_datagridview_PreviewKeyDown(Object sender, PreviewKeyDownEventArgs e)
at System.Windows.Forms.Control.OnPreviewKeyDown(PreviewKeyDownEventArgs e)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

Loaded Assemblies
mscorlib

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: ​file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll


GRINGlobal-CuratorTool

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/GRINGlobal-CuratorTool.exe


System.Windows.Forms

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


System.Drawing

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


System.Data

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll


System.Core

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll


System.Xml

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


GRINGlobal.Client.Common

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/GRINGlobal.Client.Common.DLL


System.Configuration

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Web.Services

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll


Microsoft.GeneratedCode

Assembly Version: 1.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


Accessibility

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll


System.Numerics

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll


System.ServiceProcess

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll


System.Transactions

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll


System.EnterpriseServices

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll


AccessionWizard

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/AccessionWizard.dll


CooperatorWizard

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/CooperatorWizard.dll


InventoryAttachmentWizard

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/InventoryAttachmentWizard.dll


OrderWizard

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/OrderWizard.dll


ViabilityWizard

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/ViabilityWizard.dll


AccessionForm

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/AccessionForm.dll


ImageForm

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/ImageForm.dll


InventoryForm

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/InventoryForm.dll


OrderForm

Assembly Version: 1.21.5.18
Win32 Version: 1.21.5.18
CodeBase: ​file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/OrderForm.dll


System.Web

Assembly Version: 4.0.0.0
Win32 Version: 4.8.4330.0 built by: NET48REL1LAST_B
CodeBase: ​file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll


JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

One can continue through the error and things seem to be saved ok. The developer indicates the problem has occurred due to the program code added to address this ticket. I quote:

"The datagridview needs to 'trap' the keyboard key that was pressed in order to properly use that in the lookup picker filter textbox. So to trap that key press the datagridview must trigger the KEYPRESS event no matter which cell the keyboard key was pressed in (be it a LU Picker cell or plain text cell - the key press is 'remembered'). In the case of a cell where a LU Picker is required the key press is manually passed along to the LU Picker dialogbox to pre-filter the results - but for all the other cell types the keypress is handled directly by the control. So the code fixes I put in place to handle 'weird text' showing up in the LU Picker filter textbox 'broke' wizards that use a DataTable directly (instead of a BindingSource that is attached to a DataTable). The only two wizards that use DataTables directly (instead of a BindingSource) are the Viability Wizard and the Inventory Attachment Wizard."

comment:3 by Mark J. Millard, 5 years ago

Appears to now work without the exception in attach wizard.

comment:4 by Martin Reisinger, 5 years ago

Resolution: → fixed
Status: addressed → closed

Accepting as verified working properly now as decribed by the original error in the ticket. Accession Wizard - Source Cooperator (v 1.29.5.18)

Last edited 5 years ago by Martin Reisinger (previous) (diff)
Note: See TracTickets for help on using tickets.