StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



How to use DevExpress ComboBoxEdit correctly...Expand / Collapse
Author
Message
Posted 09/03/2006 9:31:21 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: Forum Members
Last Login: 01/10/2008 9:33:30 AM
Posts: 65, Visits: 820
Hi,

I have a simple table with three columns. All fields are type of Oracle VARCHAR2.
The controls on the screen are Devexpress controls: one TextEdit and two ComboBoxEdit that get populated using BusinessObjects.


The select,update and delete works fine. When adding a new record the business object is entered into the BO (the TextEdit filed becomes empty). The ComboBoxEdit fields show the first item in the lists.

After entering data to all the fields (to TextEdit by entering text and into ComboBoxEdit by selecting from the list) and pressing "Save", SF returns error:

BusinessLayerException
 An error occurred while saving an the data to the server.
DataLayerSavingException
 Object reference not set to an instance of an object.
NullReferenceException
 Object reference not set to an instance of an object.

The debug info doesn't show a INSERT-statement so the error happens before the actual insert into the database happens.

My guess is that the ComboBoxEdit doesn't get populated or something. Can you figure out what happens here and how should it be handled/programmed correctly?

Thanks,
Kari

Post #2632
Posted 09/05/2006 1:39:06 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/02/2008 4:42:46 PM
Posts: 2,686, Visits: 1,890
You can check the BusinessObject.CurrentDataTable within the Watch window (using the debugger visualizer by clicking the little magnifying glass in the value cell) and determine whether the new record within the business object has values for both of the ComboBoxEdit columns.  If they do have the proper values, then it might be that the OracleDataSourceItem you have does not have the latest changes (the bug fixes that I made). 

You should be able to download a proper build from http://www.strataframe.net/downloads/strataframe.exe that has the proper changes.  The only caveat to using this version is that you need to delete your StrataFrameSample database before running the install.


www.bungie.net
Post #2639
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:01am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.