<?xml version="1.0" encoding="UTF-8"?> <a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true"> <a:init-procedure/> <a:view> <script type="text/javascript"><![CDATA[ function okbtn() { var record = $('oa_parameter_sql_ds').getAt(0); var oa_parameter_sql =record.get('oa_parameter_sql'); $('${/parameter/@ds_name}').findById(Number('${/parameter/@record_id}')).set('${/parameter/@name}', record.get('oa_parameter_sql')); window_close(); } function window_close() { $('${/parameter/@winId}').close(); } function returnok() { window_close(); } ]]></script> <a:dataSets> <a:dataSet id="oa_parameter_sql_ds" autoCreate="true"/> </a:dataSets> <a:screenBody> <a:form column="1" style="margin-top:10px;margin-left:10px;"> <a:textArea name="oa_parameter_sql" bindTarget="oa_parameter_sql_ds" height="320" width="500"/> </a:form> <a:hBox style="margin-left:10px;margin-bottom:20px;"> <a:button id="okbtnid" click="okbtn" text="PROMPT.OK"/> <a:button click="returnok" text="PROMPT.RETURN"/> </a:hBox> <script type="text/javascript"><![CDATA[ Leaf.onReady(function() { var record = $('oa_parameter_sql_ds').getAt(0); var sql_text = $('${/parameter/@ds_name}').findById(${/parameter/@record_id}).get('${/parameter/@name}'); record.set('oa_parameter_sql', sql_text); }); ]]></script> </a:screenBody> </a:view> </a:screen>