Queries on Business Object Groups no longer works in B1365

If you think that something doesn't work in Aware IM post your message here
Post Reply
chris29
Posts: 172
Joined: Sat Feb 06, 2010 1:45 am
Location: Australia

Queries on Business Object Groups no longer works in B1365

Post by chris29 »

Queries on Business Object Groups no longer works in build 1365 I have tested on build 1360 and it works with the same bsv and test data.

It appears that the SQL is malformed:

eg from Build 1365

SELECT Company.IsActive,Company.ExemptFromGst,Company.Reference,Company.Email,Company.Description,
Company.Mnemonic,Company.UpdatedOn,Company.BASVERSION,Company.CanDisclose,Company.RegisterStatusID_REN,
Company.RegisterStatusID_RID,Company.RegisterStatusID_RMA,Company.CreatedOn,Company.StatusSetOn,
Company.ExemptFromInterest,Company.BASTIMESTAMP,Company.ID,Company.Balance,'Company' AS BAS_ENTITY
FROM BASTESTDOMAINHZ_COMPANY AS Company
INNER JOIN BASTESTDOMAINHZ_REGISTERSTATUS AS Entry_RegisterStatusID ON Entry.RegisterStatusID_RID=Entry_RegisterStatusID.ID
INNER JOIN BASTESTDOMAINHZ_REGISTERSTATUS AS Entry_RegisterStatusID ON Entry.RegisterStatusID_RID=Entry_RegisterStatusID.ID
INNER JOIN BASTESTDOMAINHZ_REGISTERSTATUS AS Entry_RegisterStatusID ON Entry.RegisterStatusID_RID=Entry_RegisterStatusID.ID
INNER JOIN BASTESTDOMAINHZ_REGISTER AS Entry_RegisterStatusID_RegisterID ON Entry_RegisterStatusID.RegisterID_RID=Entry_RegisterStatusID_RegisterID.ID

UNION ALL SELECT Person.IsActive,Person.ExemptFromGst,Person.Reference,Person.Email,Person.Description,Person.Mnemonic,Person.UpdatedOn,
Person.BASVERSION,Person.CanDisclose,Person.RegisterStatusID_REN,Person.RegisterStatusID_RID,Person.RegisterStatusID_RMA,
Person.CreatedOn,Person.StatusSetOn,Person.ExemptFromInterest,Person.BASTIMESTAMP,Person.ID,Person.Balance,'Person' AS BAS_ENTITY
FROM BASTESTDOMAINHZ_PERSON AS Person
UNION ALL SELECT Street.IsActive,Street.ExemptFromGst,Street.Reference,Street.Email,Street.Description,Street.Mnemonic,Street.UpdatedOn,
Street.BASVERSION,Street.CanDisclose,Street.RegisterStatusID_REN,Street.RegisterStatusID_RID,Street.RegisterStatusID_RMA,
Street.CreatedOn,Street.StatusSetOn,Street.ExemptFromInterest,Street.BASTIMESTAMP,Street.ID,Street.Balance,'Street' AS BAS_ENTITY
FROM BASTESTDOMAINHZ_STREET AS Street
ORDER BY Name,Description



As you can see the INNER JOINS are all in the first select and refer to and Alias of Entry which is not mentioned in the SQL.
Version 8.5 - Windows using MySql 8 and SQL Server - 64bit
aware_support
Posts: 7536
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

There were no changes whatsoever in this area. Are you sure???
Aware IM Support Team
chris29
Posts: 172
Joined: Sat Feb 06, 2010 1:45 am
Location: Australia

Post by chris29 »

I'll email the bsv's as I have replicated the issue.

It appears to when you customise the Display results of a Query on a Business Object.

As soon as this is done the SQL fails as above.
Version 8.5 - Windows using MySql 8 and SQL Server - 64bit
aware_support
Posts: 7536
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

The problem has nothing with the build. There is a bug that manifests itself in the following circumstances:

1) The query is for a group of objects
2) The query uses sorting
3) The sorting list includes a shortcut attribute

Do not use shortcuts in sorting lists for group queries for the time being.
Aware IM Support Team
technopak
Posts: 287
Joined: Thu Dec 04, 2008 2:16 pm

Post by technopak »

Hi,

Does this issue only apply to build 1365 or does it affect all previous builds also ?

Peter
aware_support
Posts: 7536
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

It affects all previous builds and has nothing to do with the latest build
Aware IM Support Team
PEFS
Posts: 207
Joined: Mon Jun 12, 2006 11:25 pm

Post by PEFS »

Is this something that will ever be fixed?
PEFS
Posts: 207
Joined: Mon Jun 12, 2006 11:25 pm

Post by PEFS »

My apologies to Aware...seems that if the shortcut is not selected in the reference grid then the grouping does not work. if it is selected then all is good.
Post Reply