Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0018692 | Openbravo ERP | A. Platform | public | 2011-10-04 14:49 | 2012-04-26 11:49 |
|
Reporter | laurent conin | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | Ubuntu 10.04LTS |
Product Version | 3.0MP2.1 | |
Target Version | | Fixed in Version | 3.0MP11 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | Google Chrome, Mozilla Firefox |
Modules | HTML widget |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0018692: HTML Widget doesn't display record attribute in HtmlDisplay embeded in a Window Tab |
Description | HTML Widget embeded in a window tab doesn't display record attribute using ${formValues.atributeName} syntax |
Steps To Reproduce | * 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 |
Proposed Solution | 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); |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 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 |
Date Modified | Username | Field | Change |
2011-10-04 14:49 | laurent conin | New Issue | |
2011-10-04 14:49 | laurent conin | Assigned To | => alostale |
2011-10-04 14:49 | laurent conin | Web browser | => Google Chrome, Mozilla Firefox |
2011-10-04 14:49 | laurent conin | Modules | => HTML widget |
2012-04-03 15:39 | alostale | Assigned To | alostale => AugustoMauch |
2012-04-16 16:08 | hgbot | Checkin | |
2012-04-16 16:08 | hgbot | Note Added: 0047588 | |
2012-04-16 16:08 | hgbot | Status | new => resolved |
2012-04-16 16:08 | hgbot | Resolution | open => fixed |
2012-04-16 16:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a03c5bee8e36de52e16eeddee43f4a6ce01dfd4f [^] |
2012-04-16 16:23 | AugustoMauch | Note Added: 0047591 | |
2012-04-16 16:23 | AugustoMauch | Status | resolved => new |
2012-04-16 16:23 | AugustoMauch | Resolution | fixed => open |
2012-04-16 16:23 | AugustoMauch | File Added: org.openbravo.test.issue18692.zip | |
2012-04-16 16:23 | AugustoMauch | Status | new => scheduled |
2012-04-16 16:23 | AugustoMauch | fix_in_branch | => pi |
2012-04-16 16:23 | AugustoMauch | Status | scheduled => resolved |
2012-04-16 16:23 | AugustoMauch | Fixed in Version | => 3.0MP11 |
2012-04-16 16:23 | AugustoMauch | Resolution | open => fixed |
2012-04-16 16:26 | AugustoMauch | Note Added: 0047593 | |
2012-04-21 14:23 | hudsonbot | Checkin | |
2012-04-21 14:23 | hudsonbot | Note Added: 0047811 | |
2012-04-26 11:49 | alostale | Note Added: 0048003 | |
2012-04-26 11:49 | alostale | Status | resolved => 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
---
|
|
|
|
Reopened to attach a module |
|
|
|
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. |
|
|
|
|
|
|
Code reviewed and verified on pi@d02dd5df46fe |
|