fnd_sap_idoc_templates.lview 3.16 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure><![CDATA[     
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
            function queryTemplateCode(){
                $('fnd_sap_idoc_templates_result_ds').query();
            }
            function templateCodeEditor(record,name){
                if (record.isNew){
                    return 'fnd_sap_idoc_templates_grid_textField';
                }else{
                    return '';
                }
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="fnd_sap_idoc_templates_query_ds" model="fnd.fnd_sap_idoc_templates"/>
            <a:dataSet id="fnd_sap_idoc_templates_result_ds" autoCreate="true" autoQuery="true" fetchAll="false" model="fnd.fnd_sap_idoc_templates" pageSize="15" queryDataSet="fnd_sap_idoc_templates_query_ds">
                <a:fields>
                    <a:field name="idoctyp"/>
                    <a:field name="cimtyp"/>
                    <a:field name="template_code"/>
                    <a:field name="handle_model"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form column="2" title="fnd_sap_idoc_TEMPLATES.TEMPLATE_CODE_QUERY" width="500">
                <a:textField name="idoctyp" bindTarget="fnd_sap_idoc_templates_query_ds">
                    <a:events>
                        <a:event name="enterdown" handler="queryTemplateCode"/>
                    </a:events>
                </a:textField>
                <a:textField name="template_code" bindTarget="fnd_sap_idoc_templates_query_ds" typeCase="upper">
                    <a:events>
                        <a:event name="enterdown" handler="queryTemplateCode"/>
                    </a:events>
                </a:textField>
            </a:form>
            <a:hBox>
                <a:button click="queryTemplateCode" text="HAP_QUERY"/>
            </a:hBox>
            <a:grid id="fnd_sap_idoc_templates_grid" bindTarget="fnd_sap_idoc_templates_result_ds" marginHeight="150" marginWidth="40" navBar="true" width="800">
                <a:toolBar>
                    <a:button type="add"/>
                    <a:button type="clear"/>
                    <a:button type="save"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="idoctyp" editor="fnd_sap_idoc_templates_grid_textField" editorFunction="templateCodeEditor" width="200"/>
                    <a:column name="cimtyp" editor="fnd_sap_idoc_templates_grid_textField" editorFunction="templateCodeEditor"/>
                    <a:column name="template_code" editor="fnd_sap_idoc_templates_grid_textField" width="200"/>
                    <a:column name="handle_model" editor="fnd_sap_idoc_templates_grid_textField" width="200"/>
                </a:columns>
                <a:editors>
                    <a:textField id="fnd_sap_idoc_templates_grid_textField"/>
                    <a:checkBox id="fnd_sap_idoc_templates_grid_checkbox"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>