Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009083Openbravo ERP00. Application dictionarypublic2009-05-19 12:252009-05-21 00:00
networkb 
alostale 
immediateminoralways
closedno change required 
5
2.40 
 
Core
No
0009083: Read Only Logic does not work if the clausure does not include a column from the table
A read only logic does not work if the clausure is like:

@#AD_User_ID@!1000000

The javascript function created is:

function readOnlyLogic() {
  readOnlyLogicElement('ColumnName', (strAD_User_ID != 1000000));
  return true;
}

It seems that a field called strAD_User_ID should be a column from the table.
This column does not exist in the table so, the Read Only Logic does not work

Go to Application Dictionary > Tables and Columns > C_BPartner.

Search column: name.

In Read Only Logic add: @#AD_User_ID@!1000000

Compile the window.

Login the application using an user <> 1000000
It exists a workaround:

Create an Auxiliary input like:

@SQL=SELECT AD_USER_ID FROM AD_USER WHERE AD_USER_ID = @#AD_User_ID@

In Read Only logic use:

@AuxiliaryInputName@!1000000
No tags attached.
related to feature request 0009098 new iciordia Read Only Logic does not work if the clausure does not include a column from the table 
Issue History
2009-05-19 12:25networkbNew Issue
2009-05-19 12:25networkbAssigned To => rafaroda
2009-05-19 12:25networkbRegression testing => No
2009-05-19 12:27rafarodaAssigned Torafaroda => alostale
2009-05-19 12:28rafarodaNote Added: 0016462
2009-05-20 08:33alostaleIssue cloned0009098
2009-05-20 08:33alostaleRelationship addedrelated to 0009098
2009-05-20 08:35alostaleStatusnew => closed
2009-05-20 08:35alostaleNote Added: 0016481
2009-05-20 08:35alostaleResolutionopen => no change required
2009-05-21 00:00anonymoussf_bug_id0 => 2794609

Notes
(0016462)
rafaroda   
2009-05-19 12:28   
Asier,

Could you please determine whether this is a defect or not?

Thanks.
(0016481)
alostale   
2009-05-20 08:35   
A feature request (0009098) has been created from this issue.

This issue is not going to be fixed as it has a simple workaround (described above).