fnd_sap_field_maps.lview 4.76 KB
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure>
        <a:model-query defaultwhereclause="header_id=${/parameter/@header_id}" model="fnd.fnd_sap_field_maps" rootpath="fnd_sap_segment_maps_header"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
            function queryFieldMapCode(){
                $('fnd_sap_field_maps_result_ds').query();
            }
            function templateCodeEditor(record,name){
                if (record.isNew){
                    return 'fnd_sap_field_maps_grid_textField';
                }else{
                    return '';
                }
            }
        ]]></script>
        <a:dataSets>
            <!--<a:dataSet id="fnd_sap_field_maps_query_ds" model="sap.fnd_sap_field_maps"/>-->
            <a:dataSet id="fnd_sap_field_maps_query_ds">
                <a:datas dataSource="/model/fnd_sap_segment_maps_header"/>
                <a:fields>
                    <a:field name="header_id"/>
                    <a:field name="segment_name" prompt="fnd_sap_field_maps.segment_name"/>
                    <a:field name="segment_field" prompt="fnd_sap_field_maps.segment_field"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="fnd_sap_field_maps_result_ds" autoCreate="true" autoQuery="false" fetchAll="false" loadData="true" model="fnd.fnd_sap_field_maps" pageSize="15" queryDataSet="fnd_sap_field_maps_query_ds">
                <a:fields>
                    <a:field name="line_id"/>
                    <a:field name="header_id" defaultValue="${/parameter/@header_id}"/>
                    <a:field name="segment_name"/>
                    <a:field name="segment_field"/>
                    <a:field name="table_field"/>
                    <a:field name="type"/>
                    <a:field name="type_expression"/>
                    <a:field name="primary_key" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="replace_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="update_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="parent_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <!--<a:form column="2" title="fnd_sap_field_maps.TEMPLATE_CODE_QUERY" width="500">
                <a:textField name="segment_name" bindTarget="fnd_sap_field_maps_query_ds">
                    <a:events>
                        <a:event name="enterdown" handler="queryFieldMapCode"/>
                    </a:events>
                </a:textField>
                <a:textField name="segment_field" bindTarget="fnd_sap_field_maps_query_ds" typeCase="upper">
                    <a:events>
                        <a:event name="enterdown" handler="queryFieldMapCode"/>
                    </a:events>
                </a:textField>
            </a:form>
            <a:hBox>
                <a:button click="queryFieldMapCode" text="HAP_QUERY"/>
            </a:hBox>-->
            <a:grid id="fnd_sap_field_maps_grid" bindTarget="fnd_sap_field_maps_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="segment_name" editor="fnd_sap_field_maps_grid_textField" editorFunction="templateCodeEditor" width="200"/>
                    <a:column name="segment_field" editor="fnd_sap_field_maps_grid_textField" editorFunction="templateCodeEditor"/>
                    <a:column name="table_field" editor="fnd_sap_field_maps_grid_textField" width="200"/>
                    <a:column name="type" editor="fnd_sap_field_maps_grid_textField" width="200"/>
                    <a:column name="type_expression" editor="fnd_sap_field_maps_grid_textField" width="200"/>
                    <a:column name="primary_key" editor="fnd_sap_field_maps_grid_checkbox"/>
                    <a:column name="replace_flag" editor="fnd_sap_field_maps_grid_checkbox"/>
                    <a:column name="update_flag" editor="fnd_sap_field_maps_grid_checkbox"/>
                    <a:column name="parent_flag" editor="fnd_sap_field_maps_grid_checkbox"/>
                </a:columns>
                <a:editors>
                    <a:textField id="fnd_sap_field_maps_grid_textField"/>
                    <a:checkBox id="fnd_sap_field_maps_grid_checkbox"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>