Jump to content

Wanderer

Recommended Posts

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

Link to comment
Share on other sites

A project group containing the test case has been sent to the address provided.

 

To illustrate:

  1. Run the app.
  2. Open a web browser in the customary way
  3. Navigate the grid and observe that the dropdown value changes depending on the row contents.
  4. Try changing the row contents by using the dropdown. This works as expected.
  5. 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...