Openbravo Issue Tracking System - Openbravo ERP  | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0035430 | Openbravo ERP | A. Platform | public | 2017-03-06 08:48 | 2022-02-01 08:09 | 
| Reporter | caristu | ||||
| Assigned To | Triage Platform Base | ||||
| Priority | high | Severity | minor | Reproducibility | N/A | 
| Status | acknowledged | Resolution | open | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | |||||
| OBNetwork customer | No | ||||
| Web browser | |||||
| Modules | Core | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0035430: Is not possible to define a valid criteria for a date using openDirectTab utility function | ||||
| Description | Is not possible to define a valid criteria for a date using openDirectTab utility function | ||||
| Steps To Reproduce | 1) Execute the following function using dev. console: OB.Utilities.Action.execute("openDirectTab", { tabId: "263", newTabPosition: OB.MainView.TabSet.paneContainer.members.length, criteria: isc.JSON.encode ({_constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "invoiceDate", operator: "lessOrEqual", value: OB.Utilities.Date.OBToJS('01-01-2016', OB.Format.date) }]})}) Note that it is defining a criteria for the "Invoice Date" field. But it is not being set properly: the filter text says "Before null"  | ||||
| Proposed Solution | The problem is that when invoking openDirectTab, it is only allowed to pass the criteria as a string, when the criteria is sent as string the date is then not recovered properly when applying it into the filter. | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2017-03-06 08:48 | caristu | New Issue | |||
| 2017-03-06 08:48 | caristu | Assigned To | => platform | ||
| 2017-03-06 08:48 | caristu | OBNetwork customer | => No | ||
| 2017-03-06 08:48 | caristu | Modules | => Core | ||
| 2017-03-06 08:48 | caristu | Triggers an Emergency Pack | => No | ||
| 2017-04-07 08:51 | alostale | Status | new => acknowledged | ||
| 2017-04-07 08:51 | alostale | Type | defect => design defect | ||
| 2022-02-01 08:09 | alostale | Assigned To | platform => Triage Platform Base | ||
| There are no notes attached to this issue. |