src-db/database/model/views/AD_FIELD_VT.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Mon, 04 Feb 2013 09:27:53 +0100
changeset 9910 6767429386d8
parent 7031 2aac4501bbd5
child 9911 444911e2b851
permissions -rw-r--r--
Changes required to support PostgreSQL 9.2
adrian@94
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="VIEW AD_FIELD_VT">
antonio@9910
     3
    <view name="AD_FIELD_VT"><![CDATA[SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id,  tbl.ad_table_id, f.ad_column_id, trl.name, trl.description, trl.help,  f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno,  f.issameline, f.isfieldonly, f.isreadonly,  f.isencrypted AS isencryptedfield, c.columnname, c.fieldlength, c.vformat,  c.defaultvalue, c.iskey, c.isparent, c.ismandatory, c.isidentifier,  c.istranslated, c.ad_reference_value_id, c.callout, c.ad_reference_id,  c.ad_val_rule_id, c.ad_process_id, c.readonlylogic, c.isupdateable,  c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename,  c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode FROM ad_field f JOIN ad_field_trl trl ON f.ad_field_id = trl.ad_field_id JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id LEFT JOIN ad_fieldgroup_trl fgt ON f.ad_fieldgroup_id = fgt.ad_fieldgroup_id AND trl.ad_language = fgt.ad_language LEFT JOIN ad_column c ON f.ad_column_id = c.ad_column_id JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id JOIN ad_reference r ON c.ad_reference_id = r.ad_reference_id LEFT JOIN ad_val_rule vr ON c.ad_val_rule_id = vr.ad_val_rule_id WHERE f.isactive = 'Y' AND c.isactive = 'Y']]></view>
adrian@94
     4
  </database>