Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022734Openbravo ERPA. Platformpublic2013-01-08 11:082013-01-09 05:41
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
3.0MP19pi 
shankarb
Core
No
0022734: Add the functionality to define a widget that feeds from a user-defined datasource
The Query Widget functionality needs to be extended so a widget can be associated with a datasource and feed its data from it.
The steps to create this new widget would be:
- Create a new Datasource in Java, and define it in the application dictionary
- Create a new Query Widget
- In the Query tab, set its type to Datasource, and associate the widget with the previosly defined datasource
No tags attached.
related to defect 00227353.0MP19 closed AugustoMauch Incorrect length in column OBCQL_WIDGET_QUERY.TYPE 
related to defect 0022949 closed AugustoMauch Export database: wrong index name 
Issue History
2013-01-08 11:08AugustoMauchNew Issue
2013-01-08 11:08AugustoMauchAssigned To => AugustoMauch
2013-01-08 11:08AugustoMauchModules => Core
2013-01-08 11:08AugustoMauchTriggers an Emergency Pack => No
2013-01-08 11:41AugustoMauchReview Assigned To => shankarb
2013-01-08 11:41AugustoMauchIssue Monitored: shankarb
2013-01-08 11:42hgbotCheckin
2013-01-08 11:42hgbotNote Added: 0055372
2013-01-08 11:42hgbotStatusnew => resolved
2013-01-08 11:42hgbotResolutionopen => fixed
2013-01-08 11:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9ad8f68a0a90e6a64f559da28b3775d6c16f33c7 [^]
2013-01-08 12:48AugustoMauchRelationship addedrelated to 0022735
2013-01-08 13:47hgbotCheckin
2013-01-08 13:47hgbotNote Added: 0055378
2013-01-08 18:46shankarbNote Added: 0055390
2013-01-08 18:46shankarbStatusresolved => closed
2013-01-08 18:46shankarbFixed in Version => pi
2013-01-09 05:41hudsonbotCheckin
2013-01-09 05:41hudsonbotNote Added: 0055394
2013-01-09 05:41hudsonbotCheckin
2013-01-09 05:41hudsonbotNote Added: 0055398
2013-01-31 17:16AugustoMauchRelationship addedrelated to 0022949

Notes
(0055372)
hgbot   
2013-01-08 11:42   
Repository: erp/devel/pi
Changeset: 9ad8f68a0a90e6a64f559da28b3775d6c16f33c7
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Jan 08 11:39:12 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9ad8f68a0a90e6a64f559da28b3775d6c16f33c7 [^]

Fixes issue 22734: New functionality: widgets with user-defined datasource

Summary of the changes:
- modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_COLUMN.xml: The HQL column has been changed in the application dictionary so it is no longer mandatory
- modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_REFERENCE.xml: New list reference that holds the possible query widget types
- modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_REF_LIST.xml: List items of the new reference ('DS' and 'HQL').
- modules/org.openbravo.client.querylist/src-db/database/model/tables/OBCQL_WIDGET_QUERY.xml: Database changes in the OBCQL_WIDGET_QUERY table:
            * The HQL column is no longer mandatory
            * Added two new columns: Type and Datasource
- modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_COLUMN.xml: Definition of the new columns in the Column table of the application dictio
nary
- modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_FIELD.xml: Definition of the new columns in the Field table of the application dictiona
ry, plus a change in the display logic of the HQL field so that it is only shown when the proper option is selected in the Type field.
- modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListWidgetProvider.java: Logic that uses the user-defined datasource when fet
ching the data of a widget that is associated with a user-defined datasource.

---
M modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_REFERENCE.xml
M modules/org.openbravo.client.querylist/src-db/database/model/tables/OBCQL_WIDGET_QUERY.xml
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_FIELD.xml
M modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListWidgetProvider.java
A modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_REF_LIST.xml
---
(0055378)
hgbot   
2013-01-08 13:47   
Repository: erp/devel/pi
Changeset: dbcffe4c26976552f55fad3ddab4350acded65d9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Jan 08 13:46:11 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/dbcffe4c26976552f55fad3ddab4350acded65d9 [^]

Related to issue 22734: HQL field is no longer mandatory

Now a Query widget can be defined either with a HQL query or with a datasource, so the HQL query is no longer mandatory.

---
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_COLUMN.xml
---
(0055390)
shankarb   
2013-01-08 18:46   
Code Reviewed and tested in changeset be593a18eebe
(0055394)
hudsonbot   
2013-01-09 05:41   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/195064f93651 [^]

Maturity status: Test
(0055398)
hudsonbot   
2013-01-09 05:41   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/195064f93651 [^]

Maturity status: Test