Wanderer Posted June 7, 2016 Share Posted June 7, 2016 I'm working with an evaluation copy of uniGUI. I'm having difficulty implementing a uniDBLookupComboBox. Link the uniDBLookupComboBox to a primary TDataset using the DataSource and DataField properties. Link the uniDBLookupComboBox to a lookup TDataset using the ListSource, KeyField and ListField properties. Open the respective datasets. Insert a new record into the primary TDataset. (This will result in an "empty" row.) This causes an EVariantTypeCastError exception. 'Could not convert variant of type (UnicodeString) into type (Integer)' I would appear that the uniDBLookupComboBox is attempting to Locate the corresponding lookup record using a null value from the primary dataset. Is there a way around this difficulty? Many thanks, MV Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 8, 2016 Administrators Share Posted June 8, 2016 Hello Can you please send a simple test case to info@fmsoft.net ? Quote Link to comment Share on other sites More sharing options...
Wanderer Posted June 9, 2016 Author Share Posted June 9, 2016 A project group containing the test case has been sent to the address provided. To illustrate: Run the app. Open a web browser in the customary way Navigate the grid and observe that the dropdown value changes depending on the row contents. Try changing the row contents by using the dropdown. This works as expected. Press the Add Row button on the navigator. This causes an exception, presumably because the new row contains null values in all fields. Thanks for looking at this. MV Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.