modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-grid.js.ftl
changeset 9076 c4f1a5c7d7c2
child 9131 1fee5f946d34
equal deleted inserted replaced
9075:b3ea04de2722 9076:c4f1a5c7d7c2
       
     1 /*
       
     2  *************************************************************************
       
     3  * The contents of this file are subject to the Openbravo  Public  License
       
     4  * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
       
     5  * Version 1.1  with a permitted attribution clause; you may not  use this
       
     6  * file except in compliance with the License. You  may  obtain  a copy of
       
     7  * the License at http://www.openbravo.com/legal/license.html 
       
     8  * Software distributed under the License  is  distributed  on  an "AS IS"
       
     9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
       
    10  * License for the specific  language  governing  rights  and  limitations
       
    11  * under the License.
       
    12  * The Original Code is Openbravo ERP.
       
    13  * The Initial Developer of the Original Code is Openbravo SLU
       
    14  * All portions are Copyright (C) 2010 Openbravo SLU
       
    15  * All Rights Reserved.
       
    16  * Contributor(s):  ______________________________________.
       
    17  ************************************************************************
       
    18 */
       
    19 
       
    20 isc.OBViewGrid.create({
       
    21     fields:[
       
    22     <#list data.fields as field>
       
    23         { 
       
    24         autoExpand: ${field.autoExpand}, type: '${field.type}' 
       
    25         ${field.gridFieldProperties}
       
    26         ${field.filterEditorProperties}
       
    27         , targetEntity: '${field.targetEntity?js_string}'
       
    28         , title: '${field.title?js_string}'
       
    29         , showIf: '${field.initialShow?string}'
       
    30        }
       
    31        <#if field_has_next>,</#if>
       
    32     </#list>
       
    33     ],
       
    34     whereClause: '${data.whereClause?js_string}',
       
    35     orderByClause: '${data.orderByClause?js_string}',
       
    36     
       
    37     foreignKeyFieldNames:[
       
    38     <#list data.foreignKeyFields as field>
       
    39         '${field}'<#if field_has_next>,</#if>
       
    40     </#list>
       
    41     ]
       
    42 })