Browser Dialog error with DateTime fields range


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi,

I have a Browser Dialog in which I need to search on a DateTime field (using the date portion only) using a range condition >= and <=.  I added the same field CallDateTime twice with the >= and <= condition (see attached image), and when doing the search I got the following error:

ArgumentException
  An item with the same key has already been added.

Source     : mscorlib

Stack Trace:
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogSearchingEventArgs..ctor(BrowseDialog Browse, WhereStatementCollection WhereStatements)
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.ExecuteSearch()
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

As I understand, this error may be generated by adding the field twice in the browser dialog, so if this is the case, how can I handle a search on the CallDateTime field using a range date for the same field?

Edhy Rijo

Reply
DanMetcalf
DanMetcalf
StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)
Group: Forum Members
Posts: 7, Visits: 442
I had a similar problem with DateTime. Glad to see this post -- thought I was going crazy!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 18 Years Ago
StrataFrame Team - 18 Years Ago
Edhy Rijo - 18 Years Ago
                 Hehe, nope, I just looked right past it... sorry.
StrataFrame Team - 18 Years Ago
StrataFrame Team - 18 Years Ago
                         Hi Ben, Thanks for the zip file, the new dlls fixed the exception...
Edhy Rijo - 18 Years Ago
                             [quote][b]Edhy Rijo (10/16/2007)[/b][hr]Hi Ben, Thanks for the zip...
Edhy Rijo - 18 Years Ago
                                 Edhy, I think I know what is going on here. If you change the ending...
Trent L. Taylor - 18 Years Ago
                                     [quote][b]Trent L. Taylor (10/19/2007)[/b][hr]There probably needs to...
Edhy Rijo - 18 Years Ago
                                         [quote]About the enhancement, I would prefer to deal only with the...
Trent L. Taylor - 18 Years Ago
                                             Hi Trent, Since when using a DateTime search field in the Browser...
Edhy Rijo - 18 Years Ago
                                                 Hi Trent, Ben, Is there any news on this issue? I really need to...
Edhy Rijo - 18 Years Ago
                                                     Hi Trent, Ben, Well, there is not need to answer my previous request...
Edhy Rijo - 18 Years Ago
                                                         [quote]... you guys took me by surprise, I almost have a heart attach,...
Ivan George Borges - 18 Years Ago
                                                             I wasn't try to give anyone Cardiac Arrest :) I just knew that we have...
Trent L. Taylor - 18 Years Ago
DanMetcalf - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search