Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037587Openbravo ERPA. Platformpublic2018-01-05 09:442018-02-22 18:18
0037587: Open on tab does not work on Tree type windows when using auxiliary inputs in display logic
Open on tab does not work on Tree type windows when using auxiliary inputs in display logic. It shows a blank window
Using System Administrator role and having some module in development:

1) Create a new auxiliary input:
 - Tab: Element - Account Tree
 - Name: test
 - Active: YES
 - Validation Code: @SQL=select ad_org_id from ad_org where ad_org_id = @AD_Org_ID@

2) Then, open 'Windows, Tabs and Fields' window and navigate to Account Tree/Element Value:
 - Display Logic: @test@='B843C30461EA4501935CB1D125C9C25A'

Compile the environment and then login with 'F&B International Group Admin' role:
NOTE: We need to open the tab using a tabledir record. In this case we don't have a direct one so we are opening programmatically:

- Open Developer Tools and run this command on the console:
OB.Utilities.openDirectView('118', 'C_ElementValue_ID', 'FinancialMgmtElementValue', 'A45B7570F9BE4A69A3BF53CFEBB29FC0')

This should open the record with name 'ACTIVE' of the subtab 'Element Value' (identified by id A45B7570F9BE4A69A3BF53CFEBB29FC0). However, it opens a blank window.
No tags attached.
related to defect 0037872 closed caristu Error when opening a child tab, which have filters applied, from another window 
related to defect 0037588 acknowledged platform Open on tab opens both grid and form view when using Default Tree View Logic on tabs 
causes defect 0038037 closed jarmendariz Display logic on tab not properly applied in form view 
causes defect 0039405 closed AugustoMauch Display logic in Product window does not work properly while opening as a tab from another window 
png Screenshot from 2018-01-05 09-44-28.png (59,228) 2018-01-05 09:44
Issue History
2018-01-05 09:44JONHMNew Issue
2018-01-05 09:44JONHMAssigned To => platform
2018-01-05 09:44JONHMFile Added: Screenshot from 2018-01-05 09-44-28.png
2018-01-05 09:44JONHMModules => Core
2018-01-05 09:44JONHMTriggers an Emergency Pack => No
2018-01-05 10:01JONHMRelationship addedrelated to 0037588
2018-01-29 19:24caristuStatusnew => scheduled
2018-01-29 19:24caristuAssigned Toplatform => jarmendariz
2018-02-05 10:40hgbotCheckin
2018-02-05 10:40hgbotNote Added: 0102175
2018-02-05 10:40hgbotStatusscheduled => resolved
2018-02-05 10:40hgbotResolutionopen => fixed
2018-02-05 10:40hgbotFixed in SCM revision => [^]
2018-02-05 10:41jarmendarizReview Assigned To => caristu
2018-02-12 13:29caristuRelationship addedrelated to 0037872
2018-02-12 14:13caristuNote Added: 0102333
2018-02-12 14:13caristuStatusresolved => closed
2018-02-12 14:13caristuFixed in Version => 3.0PR18Q2
2018-02-22 18:18hudsonbotCheckin
2018-02-22 18:18hudsonbotNote Added: 0102717
2018-03-05 08:33caristuRelationship addedcauses 0038037
2018-10-29 18:11caristuRelationship addedrelated to 0039405
2018-11-13 17:21caristuRelationship deletedrelated to 0039405
2018-11-13 17:21caristuRelationship addedcauses 0039405

2018-02-05 10:40   
Repository: erp/devel/pi
Changeset: 18388657f3c0f155490eeed4ab39b431492b2dc0
Author: Javier Armendáriz <javier.armendariz <at>>
Date: Fri Feb 02 10:13:13 2018 +0100
URL: [^]

Fixed bug 37587: Opening tab with display logic using aux input appears empty.

ShowTabIf logic applied only if the view does not come from a direct link call. This fixed the issue with no wait until the contextInfo is fully loaded.

M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
2018-02-12 14:13   
Code reviewed + tested OK.
2018-02-22 18:18   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test