Active Query Builder support area

If I click the close X on a table in the Query Building Area Nothing happens

Avatar
  • updated
  • Completed

This does not seem to be the case for me

If I click the close X on a table in the

  • Query Building Area

Nothing happens ?

Avatar
Andrew Kennard

That threw me ! :)

Avatar
Sergey Kraikov

The LoginPrompt default value is changed, it is True since v1.26.10

Avatar
Andrew Kennard

Hi back in the office today. Please can you confirm the default value for LoginPrompt has not changed between version 1.25.0.0 and version 1.26.11.0

Thanks

Avatar
Andrew Kennard

I have sent something to Dataflex on this with an example so hopefully they will take a look

Avatar
Sergey Kraikov
According to MSDN, when Boolean converted to Integer, True converted to -1, False to 0;
when Integer converted to Boolean, 0 -> False, non-zero -> True;
This is Visual Basic behaviour, I think type conversions are language specific.

Under the hood, in the COM, VARIANT_BOOL is defined in the following way:

typedef short VARIANT_BOOL;
#define VARIANT_TRUE ((VARIANT_BOOL)-1) //0xFFFF
#define VARIANT_FALSE ((VARIANT_BOOL)0) //0x0000
Avatar
Andrew Kennard

I apprecdiate it is not going to change but is your True value 1 or -1 ?

Avatar
Sergey Kraikov
I just checked the value of the AAllow passed to OnBeforeDeleteDatasource - it is True.

Please note, there are the same event with parameters object: OnBeforeDeleteDatasource2.
It get IActiveQueryBuilderBeforeDeleteDatasourceParams object, which have fields for every parameter of
the original OnBeforeDeleteDatasource event.
Avatar
Andrew Kennard

Sorry for the delay I was out of the office yesterday

I do not have any code in OnBeforeDeleteDatasource however .....

If I add the event to my object I notice the llAAllow parameter that is passed to the function by reference contains False

If I move True to it within the event procedure the table is then removed

So I've no idea why it might be false in the first place ?

Avatar
Andrey Zavyalov, PM

Sorry, but we can not reproduce the problem. Can you reproduce the problem with one of our demo projects? Can you send us a sample project in which it could be reproduce it? Could it be that you set a handler for the DatasourceDeleting event that prevents datasource removal?

Avatar
Andrew Kennard

Yes all the time at the moment.

Even right click on the table header and selecting Remove does nothing