Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028468
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2014-12-22 18:002015-01-08 11:40
ReportercaristuView Statuspublic 
Assigned ToAugustoMauch 
PriorityurgentResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version3.0PR15Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028468: Some values entered by a selection function are lost in P&E windows under some circumstances

DescriptionValues entered by a selection function are lost in P&E window under some circumstances. This behavior happens when filtering and selecting a record from another page of the datasource.
Steps To Reproduce1) Install the attached module
2) Go to the [Sales Order] window. Click on the EM_Suptest_Proc which opens a P&E window.
3) Sort the grid by the date field descending
4) Select a couple of registers. Notice that the "Gridposition" field is filled because of the selection function of the P&E
5) Filter by documentno, using value "1000000". This is important because we need to retrieve a record from a different page. Click on the record to enter a value in the "Gridposition" field
6) Remove the filter
7) Filter again by the same value. Notice that the entered value in step 5) is lost.
TagsNo tags attached.
Attached Files? file icon com.openbravo.support.test-1.0.0.obx [^] (23,955 bytes) 2014-12-22 18:07

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00287123.0PR15Q2 closedalostale Records selection is lost in pick and execute window under some circumnstances 

-  Notes
(0072849)
AugustoMauch (administrator)
2014-12-29 10:51

The module is setting the value of the gridposition field in a selectionChanged function like this:

record.gridposition='a';

The problem is that when done this way, the value is not saved in the grid edited values, it is stored only in the record. Then, when the record is reloaded, its value is lost. This would not happen if the value were stored like this:

grid.setEditValue(grid.getRecordIndex(record), 'gridposition', 'a');

I have not found an easy way to automatically updated the grid edited values when the contents of its fields are modified using the first option. I propose to update the wiki to tell the users to use the second option, and avoid making any changes in the core code.
(0073347)
AugustoMauch (administrator)
2015-01-08 11:40

The note [1] explains how to set the value to the column in a way that makes this a non-issue.

[1] https://issues.openbravo.com/view.php?id=28468#c72849 [^]

- Issue History
Date Modified Username Field Change
2014-12-22 18:00 caristu New Issue
2014-12-22 18:00 caristu Assigned To => AugustoMauch
2014-12-22 18:00 caristu Modules => Core
2014-12-22 18:00 caristu Resolution time => 1421622000
2014-12-22 18:00 caristu Triggers an Emergency Pack => No
2014-12-22 18:00 caristu Issue Monitored: networkb
2014-12-22 18:01 caristu Summary Sometimes some values entered by a selection function are lost in P&E windows => Some values entered by a selection function are lost in P&E windows under some circumstances
2014-12-22 18:01 caristu Description Updated View Revisions
2014-12-22 18:06 caristu Steps to Reproduce Updated View Revisions
2014-12-22 18:07 caristu File Added: com.openbravo.support.test-1.0.0.obx
2014-12-22 18:07 caristu version => pi
2014-12-22 18:14 heccam Issue Monitored: heccam
2014-12-29 10:51 AugustoMauch Note Added: 0072849
2014-12-29 10:51 AugustoMauch Status new => feedback
2015-01-08 11:40 AugustoMauch Note Added: 0073347
2015-01-08 11:40 AugustoMauch Status feedback => closed
2015-01-08 11:40 AugustoMauch Resolution open => no change required
2015-01-21 12:38 caristu Relationship added related to 0028712


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker