Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019403Openbravo ERPA. Platformpublic2012-01-03 17:392012-03-02 15:39
VictorVillar 
guilleaer 
highminoralways
closedfixed 
5
3.0MP6 
3.0MP93.0MP9 
Core
No
0019403: Wrong performance of Rowspan value.
We have realised that it is a wrong performance of Rowspan and Colspan values in different cases.
It seems that it does not matter the value of Rowspan.
As System Admin role,
navigate to Windows, tabs and fields window:
   - select Financial Account || Reconciliations || Details (is a widget)
     Open in Form view, the rowspan and colspan appear and it works fine.
   - select Product || product || Name
     Open in Form view we cannot see the rowspan and colspan fields. This fields are showed if the column associated is 'OBKMO_Widget in Form Reference' (they have a displaylogic:@OBUIAPP_Field_Reference@ ='FF8080813123BF670131241C2BB30012'
     They appear in Grid view, if we change this values (Rowspan:8 and Colspan:4), only it works fine the colspan value, the field Name always is 1 row it does not matter the rowspan value.
   - If we try to create a new field, it does not appear the rowspan and colspan fields in form view. In grid view you can change those values but it happens the same as before.

As Group Admin role,
Go to Product window
Click in Form personalization button:
   - select Name field
   - change the rowspan value it does not happen anything in the preview
   - change the colspan value, it works fine.
No tags attached.
related to design defect 0019923 closed guilleaer Image type fields should adapt itself to the defined rowspan and colspan 
related to defect 0020133 closed alostale Some fields have changed from text area to text field 
blocks defect 0010601 closed guilleaer The process log field in the Process Execution window is unnecessarily small 
Issue History
2012-01-03 17:39VictorVillarNew Issue
2012-01-03 17:39VictorVillarAssigned To => alostale
2012-01-03 17:39VictorVillarModules => Core
2012-01-03 17:39VictorVillarResolution time => 1331247600
2012-01-03 17:39VictorVillarIssue Monitored: networkb
2012-01-09 16:59VictorVillarSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3031#r3031
2012-01-16 16:46miruritaIssue Monitored: mirurita
2012-01-17 09:03shuehnerIssue Monitored: shuehner
2012-01-23 09:25guilleaerAssigned Toalostale => guilleaer
2012-02-23 10:53hgbotCheckin
2012-02-23 10:53hgbotNote Added: 0045395
2012-02-23 10:53hgbotStatusnew => resolved
2012-02-23 10:53hgbotResolutionopen => fixed
2012-02-23 10:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/609fffb254cf1a9ff156a4703fcacd1ce7b50455 [^]
2012-02-23 11:18guilleaerNote Added: 0045402
2012-02-23 12:24guilleaerNote Added: 0045404
2012-02-23 12:47hgbotCheckin
2012-02-23 12:47hgbotNote Added: 0045405
2012-02-23 13:43guilleaerNote Added: 0045410
2012-02-28 09:54alostaleRelationship addedblocks 0010601
2012-02-28 14:52hgbotCheckin
2012-02-28 14:52hgbotNote Added: 0045537
2012-02-28 17:12AugustoMauchNote Added: 0045554
2012-02-28 17:12AugustoMauchStatusresolved => closed
2012-02-28 17:12AugustoMauchFixed in Version => 3.0MP9
2012-02-29 17:27dbazRelationship addedrelated to 0019923
2012-03-02 15:38hudsonbotCheckin
2012-03-02 15:38hudsonbotNote Added: 0045933
2012-03-02 15:39hudsonbotCheckin
2012-03-02 15:39hudsonbotNote Added: 0045940
2012-03-02 15:39hudsonbotCheckin
2012-03-02 15:39hudsonbotNote Added: 0045973
2012-03-28 13:21alostaleRelationship addedrelated to 0020133

Notes
(0045395)
hgbot   
2012-02-23 10:53   
Repository: erp/devel/pi
Changeset: 609fffb254cf1a9ff156a4703fcacd1ce7b50455
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Feb 23 10:46:21 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/609fffb254cf1a9ff156a4703fcacd1ce7b50455 [^]

Fixed issue 19403: fields which are drawn as textarea adapts the height considering the defined rowspan.
When textarea is created, the rowspan of the cell which contains it is checked. Then, the height of the texarea is calculated to fill the cell space.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-textarea.js
M modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
---
(0045402)
guilleaer   
2012-02-23 11:18   
This fix only works with fields which are drawn as textarea.

One field will be drawn as textarea when:
- The reference of the column related to the field is defined as Text.
- The reference of the column related to the field is defined as string and the length is greater than 255 characters.

If the rowspan of textfield is changed using form personalization utility, it will not work because this field is a textfield and it cannot be changed. In this case the reference of the column should be changed in the Application dictionary to work properly.
(0045404)
guilleaer   
2012-02-23 12:24   
I was wrong in the previous note.

One field will be drawn as textarea only when:
- The reference of the column related to the field is defined as Text.
(0045405)
hgbot   
2012-02-23 12:47   
Repository: erp/devel/pi
Changeset: 8f8ae175ff2bc581616ec0d3aadfef300220ea35
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Feb 23 12:45:14 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8f8ae175ff2bc581616ec0d3aadfef300220ea35 [^]

Related to issue 19403: Display logic for rowSpan has been changed.
Now row span field is shown in the form view when the column reference of the field is TEXT

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml
---
(0045410)
guilleaer   
2012-02-23 13:43   
Test plan:
1. Logged as System administrator
2. Windows tab & fields
3. Look for a field with a TEXT reference (E.g. sales orders/sales orders/description)
4. Change rowspan (Should be displayed in form view because the change in display logic)
5. Save and log in as F&BAdmin
6. Check the field in the form view. It should have a height which fills the space of the cell.

Risk of regressions
- affects to textareas
(0045537)
hgbot   
2012-02-28 14:52   
Repository: erp/devel/pi
Changeset: 512d578b41e380ac61ccf2ebe8f3747e6921c72d
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Feb 28 14:51:17 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/512d578b41e380ac61ccf2ebe8f3747e6921c72d [^]

Related to issue 19403: colspan also is visible in form view.
Display logic has been changed to be displayed with TEXT references

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml
---
(0045554)
AugustoMauch   
2012-02-28 17:12   
Code reviewed and verified
(0045933)
hudsonbot   
2012-03-02 15:38   
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/544d64e0c159 [^]

Maturity status: Test
(0045940)
hudsonbot   
2012-03-02 15:39   
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/544d64e0c159 [^]

Maturity status: Test
(0045973)
hudsonbot   
2012-03-02 15:39   
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/544d64e0c159 [^]

Maturity status: Test