Custom-Dialog
Command Description
Open customize dialog box
Command Prototype
dictRet = Dialog.UDFDialog(strTitle,dictUIFilePath,sDefaultJson,optionArgs)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
strTitle | True | string | "" | Display the title of the dialog box |
dictUIFilePath | True | path | "" | Design custom form structure |
sDefaultJson | True | expression | {} | Set the default value of a custom form control element in JSON format. Can pass variables or expressions |
iTimeout | None | number | None | When the time that dialog box displayed default as 0, it is always displayed |
strTimoutClick | None | enum | "ok" | Click button will be triggered when dialog box reaches display time. When display time is 0, this item will not have effect |
bInterruptTimeout | None | boolean | True | If the user interacts with a dialog box, interrupt the timeout automatic click. Default is "Yes" |
return
dictRet,The variable used to save the output of the command.
Demo
Dim dictRet
dictRet = Dialog.UDFDialog("This is the dialog title",@res"1644465533010.json",{},{"iTimeout": 0, "strTimoutClick": "ok","bInterruptTimeout": true})
TracePrint(dictRet)
/**
The output result is a dictionary of user-defined dialog boxes and content
For example:
dictRet {
"return" : 1,
"This is the radio button title" : "1",
"This is the text box title" : "Hello"
}
*/