Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018692Openbravo ERPA. Platformpublic2011-10-04 14:492012-04-26 11:49
laurent conin 
AugustoMauch 
normalminoralways
closedfixed 
20Ubuntu 10.04LTS
3.0MP2.1 
3.0MP11 
Google Chrome, Mozilla Firefox
HTML widget
No
0018692: HTML Widget doesn't display record attribute in HtmlDisplay embeded in a Window Tab
HTML Widget embeded in a window tab doesn't display record attribute using ${formValues.atributeName} syntax
* create an HTML WIDGET . set FixedValue to {formValues.id} and EvaluateFixedValue to Yes

* Embed it in a Tab following this tutorial http://wiki.openbravo.com/wiki/How_to_embed_a_Widget_into_a_Window_Tab [^]

* Widget should display the id of the selelcted record, bus it is blank
ob-html-widget.js line 53
use the setMethod setContent on Underlying HTMLFllow so that the display is refreshed

<this.windowContents.contents = this.contentSource;

>this.windowContents.setContents(this.contentSource);
No tags attached.
zip org.openbravo.test.issue18692.zip (7,538) 2012-04-16 16:23
https://issues.openbravo.com/file_download.php?file_id=5136&type=bug
Issue History
2011-10-04 14:49laurent coninNew Issue
2011-10-04 14:49laurent coninAssigned To => alostale
2011-10-04 14:49laurent coninWeb browser => Google Chrome, Mozilla Firefox
2011-10-04 14:49laurent coninModules => HTML widget
2012-04-03 15:39alostaleAssigned Toalostale => AugustoMauch
2012-04-16 16:08hgbotCheckin
2012-04-16 16:08hgbotNote Added: 0047588
2012-04-16 16:08hgbotStatusnew => resolved
2012-04-16 16:08hgbotResolutionopen => fixed
2012-04-16 16:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a03c5bee8e36de52e16eeddee43f4a6ce01dfd4f [^]
2012-04-16 16:23AugustoMauchNote Added: 0047591
2012-04-16 16:23AugustoMauchStatusresolved => new
2012-04-16 16:23AugustoMauchResolutionfixed => open
2012-04-16 16:23AugustoMauchFile Added: org.openbravo.test.issue18692.zip
2012-04-16 16:23AugustoMauchStatusnew => scheduled
2012-04-16 16:23AugustoMauchfix_in_branch => pi
2012-04-16 16:23AugustoMauchStatusscheduled => resolved
2012-04-16 16:23AugustoMauchFixed in Version => 3.0MP11
2012-04-16 16:23AugustoMauchResolutionopen => fixed
2012-04-16 16:26AugustoMauchNote Added: 0047593
2012-04-21 14:23hudsonbotCheckin
2012-04-21 14:23hudsonbotNote Added: 0047811
2012-04-26 11:49alostaleNote Added: 0048003
2012-04-26 11:49alostaleStatusresolved => closed

Notes
(0047588)
hgbot   
2012-04-16 16:08   
Repository: erp/devel/pi
Changeset: a03c5bee8e36de52e16eeddee43f4a6ce01dfd4f
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Apr 16 16:08:05 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a03c5bee8e36de52e16eeddee43f4a6ce01dfd4f [^]

Fixes issue 18692: HTML widgets can be embeded in a form

Prior to this fix, when an HTML widget whose html code had to be evaluated was embeded in a form, the contents of the widget were not shown.

It has been changed the way the contents are included in the window, and now the HTML widget is working properly.

---
M modules/org.openbravo.client.htmlwidget/web/org.openbravo.client.htmlwidget/js/ob-html-widget.js
---
(0047591)
AugustoMauch   
2012-04-16 16:23   
Reopened to attach a module
(0047593)
AugustoMauch   
2012-04-16 16:26   
Test plan:
- Install the attached module. It was created following the steps described here: http://wiki.openbravo.com/wiki/How_to_embed_a_Widget_into_a_Window_Tab [^]
- It creates a widget that has been embedded in the Unit of Measure window. When a record is opened in form view, it will show its id.
- Check that the rest of defined html widgets (i.e. Getting Started) keep working as expected.
(0047811)
hudsonbot   
2012-04-21 14:23   
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/2eb57286c1fc [^]

Maturity status: Test
(0048003)
alostale   
2012-04-26 11:49   
Code reviewed and verified on pi@d02dd5df46fe