Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007026Openbravo ERPA. Platformpublic2009-01-20 13:402009-04-21 12:39
roklenardic 
alostale 
highmajoralways
closedfixed 
20Ubuntu 8.10
pi 
 
Core
No
0007026: Links to new module windows do not work
Imagine the scenario:
- you create two new tables, Hotel_Stay and Hotel_Guest
- Hotel_Stay has a foreign key to Hotel_Guest
- when defining Tables & Columns in the Application Dictionary, one needs to select the corresponding window for each of the tables above where the user will be taken whenever one of their elements is shown
- WAD then creates links in the form of
onclick="sendDirectLink(document.frmMain, 'C_BPartner_ID', document.frmMain.inpcOrderId.value, '../utility/ReferencedLink.html', document.frmMain.inpcBpartnerId.value, '291', '_self', true);return false;"
which will on click take the user to the /BusinessPartner/BusinessPartner_Edition.html window and show the corresponding window.
- However, this only works for standard windows like a Sales Order. If creating a window based on the above Hotel_Stay, the link to the Hotel_Guest will be constructed wrongly. the sendDirectLink redirects the user to the /Guest/Header_Edition.html window which doesn't exist. The correct URL of the Guest window that belongs to com.mycompany.hotel module is /com.mycompany.hotelGuest/Header_Relation.html.
That's how the particular tab is mapped within the application dictionary.

The sendDirectLink function needs to be fixed in order to construct the mapping module windows correctly or the trigger for entering a new tab needs to be altered to adhere to the expected window/tab mapping.
Modularity
related to defect 0007089 closed alostale Dynamic redirect to tabs do not work for modules in manual code 
Issue History
2009-01-20 13:40roklenardicNew Issue
2009-01-20 13:40roklenardicAssigned To => rafaroda
2009-01-20 13:40roklenardicsf_bug_id0 => 2523550
2009-01-20 13:40roklenardicRegression testing => No
2009-01-20 19:03rafarodaTag Attached: Modularity
2009-01-21 06:18pjuvaraPrioritynormal => high
2009-01-21 06:18pjuvaraSeverityminor => major
2009-01-21 06:18pjuvaraversion => trunk
2009-01-30 12:02psarobeAssigned Torafaroda => alostale
2009-01-30 12:02psarobeStatusnew => scheduled
2009-01-30 15:44alostaleRelationship addedrelated to 0007089
2009-02-04 13:01svnbotCheckin
2009-02-04 13:01svnbotNote Added: 0013130
2009-02-04 13:01svnbotStatusscheduled => resolved
2009-02-04 13:01svnbotResolutionopen => fixed
2009-02-04 13:01svnbotsvn_revision => 12757
2009-04-21 12:39psarobeStatusresolved => closed

Notes
(0013130)
svnbot   
2009-02-04 13:01   
Repository: openbravo
Revision: 12757
Author: alostale
Date: 2009-02-04 13:01:29 +0100 (Wed, 04 Feb 2009)

fixed bug 0007026: Links to new module windows do not work

---
U trunk/src/org/openbravo/erpCommon/utility/ReferencedLink.java
U trunk/src/org/openbravo/erpCommon/utility/ReferencedLink_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=12757&sc=1 [^]