StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
I am not positive when the next release will be... we are currently getting our finishing out the rest of the posted bugs and getting the install ready for VS2008 and 64-bit.
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi,
Thank you answer.
When would next SF release? I am using SF 1.6.1 (posted at forum) which doesn't have source code. Therefore, I am not able to change my source code.
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
The processing of the where element for GUID was assuming that the type could be cast or converted to a Guid, so I changed it so that it would use the Guid constructor and pass over the value.ToString() (the Guid constructor will then parse the value back into a valid Guid). So, it should fix the problem you're having. However, if you need the fix before then, then you can change your source code: BrowseDialogwindow.vb line 2207: loFieldValue.Add( New Guid(_CurrentValue.ToString()))Instead of the: loFieldValue.Add( CType(_CurrentValue, Guid))
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi,
I found that this issue has been fixed in version 1.6.1.
I specified {00000000-0000-0000-0000-000000000000} in Top Most Value under Combo-General.
After I select item from combobox and click search, I hit error error below. Any ideas?
InvalidCastException
Conversion from type 'Guid' to type 'String' is not valid.
Source : Microsoft.VisualBasic
Stack Trace:
at Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value)
at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.BuildWhereElement(SearchFieldItem SearchField)
at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.BuildSearchWhereClause()
at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.ExecuteSearch()
at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.tsiSearch_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.OnMessage(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)
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Ben Chase (02/22/2007) To add your own item, you would need to handle the DataSource changed event on the ComboBox. Within the event, you can add a new record to the top of the data table (.Insert() it rather than .Add() it). You can check the structure of the table for the field names, but it should only havetwo columns... a "display" column and a "value" column. Then, just set the values in the new record and insert it into the table.Hi, Since the combobox in browsedialog is created at runtime while ShowDialog() method been called, how could I handle its DtaaSourceChanged event? Also, FYI, the error is occured at ListControl.PopulateComboFromBusinessObject(). loNewRow.Item(VALUE) = MicroFour.StrataFrame.Data.ObjectConverter.ConvertValue(.TopMostItem.TopMostValue, loBO.GetPropertyDescriptor(.PopulationDataSourceSettings.ValueMember).PropertyType)
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi
Sorry, I still don't know how to solve this problem.
Where should I put my code? How to set Browsedialog combobox.topmost to Guid.Empty instead if '-1'?
Thank you
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi, May I know if this issue been handled natively in upcoming update? Thank you
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
To add your own item, you would need to handle the DataSource changed event on the ComboBox. Within the event, you can add a new record to the top of the data table (.Insert() it rather than .Add() it). You can check the structure of the table for the field names, but it should only have two columns... a "display" column and a "value" column. Then, just set the values in the new record and insert it into the table.
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Sorry, I am lost. Why to add another item to my datasource? My PL field is GUID. How to assign "-1" ? hmm... didn't get you.. sorry.
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
|
No, do not modify the SF source code. I was referring to adding an item to the data source that is shown within combo. Just another another item.
|
|
|