Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009098Openbravo ERP00. Application dictionarypublic2009-05-20 08:332009-05-22 19:26
alostale 
iciordia 
nonemajoralways
newopen 
5
pi 
 
Core
No
0009098: Read Only Logic does not work if the clausure does not include a column from the table
Read only logic only works when the values included within it are columns for the same table than the field that affect it.

It would be necessary to add the capability of adding session values too.

For example a read only logic does not work if the clause 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

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
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
No tags attached.
related to defect 0009083 closed alostale Read Only Logic does not work if the clausure does not include a column from the table 
Issue History
2009-05-20 08:33alostaleNew Issue
2009-05-20 08:33alostaleAssigned To => pjuvara
2009-05-20 08:33alostaleRegression testing => No
2009-05-20 08:33alostaleIssue generated from0009083
2009-05-20 08:33alostaleRelationship addedrelated to 0009083
2009-05-21 22:34pjuvaraAssigned Topjuvara => iciordia
2009-05-22 09:55iciordiaAssigned Toiciordia => pjuvara
2009-05-22 09:55iciordiaNote Added: 0016570
2009-05-22 19:26pjuvaraAssigned Topjuvara => iciordia

Notes
(0016570)
iciordia   
2009-05-22 09:55   
Paolo,

I assign this feature request to you till you move all platform feature requests back to me (as a reminder :-)

Ismael