XForm showDialog ,dialogReturnValue 用法
来源:互联网 发布:电脑小说阅读软件 编辑:程序博客网 时间:2024/06/05 05:43
showDialog() Method
This method displays a dialog box that contains parameters of the specified application definition.
Syntax
application.showDialog(oApplicationDefinition,oData,fpApplicationCallback, fpCallBackHandler, bOnCordysRoot);
Parameters
Parameter
Description
Return Value
It does not return a value.
Remarks
The application that is opened as a dialog box should have thedialogReturnValue()method. This method should return data to the calling application.
The dialog boxes that appear are resizable, by default. To disable the resizing of dialog boxes, set theresizableproperty to Off in thefeaturesattribute ofoApplicationDefinition.
Example
function showDialog (){ var data = newObject(); data.property1 = "property1"; data.property2 = "property2"; application.showDialog(newApplication.documentElement, data, null, closeHandler, false);} function closeHandler(dialogReturnValue){ //The logic to handle the dialogReturnValue goes here.}
<xml id="newApplication"> <Application> <url>Application URL </url> <id>Application Id</id> <caption>Application caption</caption> <description>Application description</description> <frame>main</frame> <data/> </Application></xml>
The following is a sample implementation of thedialogReturnValue()function.
function dialogReturnValue() { var data = newObject(); data.oldValue = input1.value; data.newValue = input2.value; returndata;}
LikeBe the first to like this
- Edit Labels
0 0
- XForm showDialog ,dialogReturnValue 用法
- showdialog
- showDialog
- showDialog
- ShowDialog
- ShowDialog
- 初识XForm
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- XForm + Ajax
- 小无线发展历史
- 软件隐喻
- Myeclipse 2014 加载Gson 第三方架包 classnotfound:com.google.gson.Gson
- test
- 猫猫学IOS(十九)UI之QQ好友列表
- XForm showDialog ,dialogReturnValue 用法
- 【安卓开发】Android系统中Parcelable和Serializable的区别
- 计算机视觉方面的文献及代码下载
- 微信公共平台开发(一):服务器配置
- Javascript 封装方法
- 线程中CreateEvent和SetEvent及WaitForSingleObject的用法
- 数据结构(JAVA版本)练习之集合 简易图书管理系统
- hdu4740 搜索(会爆栈,需要手动开辟)
- Linux 的多线程编程的高效开发经验
1 Comment
Hide/Show Comments13 Mar 2015
Chen David
The function should be "dialogReturnValue" ,On closing child form, the dialogReturnValue() is called automatically and returns data object to parent form