|
Opens the form in the specified view.
Syntax 1
OpenViewForm(
viewName,
basedFormName
[,systemParam]
[,openParam]
)
Parameters
basedFormName
|
|
Type:
|
character
|
|
Specify the name of the original form you want to display in the view. The view will display this form as the base.
|
systemParam
|
|
Type:
|
General purpose
|
|
System parameters. Each element is "parameter name:value". To specify multiple elements, specify them as an array like this: c("parameter name 1:value 1", "parameter name 2:value 2",...). Note that this parameter does not support map values.
Parameters
|
Default value
|
explanation
|
formName
|
""
|
Specify the name of the form after it is displayed.This is the new form name to reference from the script. If omitted, the name specified in basedFormName will be used. It must not overlap with the currently displayed form name.
|
title
|
""
|
Specifies the view title in text.
|
stretch
|
FORM
|
The form size is adjusted to fit the browser display size (or the display size of the view to be displayed in the case of a frame).
NONE
|
Don't stretch.
|
STRETCH_FULL
|
The image is stretched to fit the display size.
|
STRETCH_KEEPRATE
|
The image is stretched to fit the display size (maintaining aspect ratio).
|
RESIZE_FULL
|
Adjust the form size to fit the display size.
|
RESIZE_KEEPRATE
|
Adjust the form size to fit the display size (maintain aspect ratio).
|
FORM
|
Matches the setting of the form's Strech property.
|
DEFAULT
|
Matches the setting of the route's Strech property.
|
* If this argument is not specified or if an empty string is specified, the Strech property of the form will be used.
|
visualTheme
|
""
|
Specifies the visual theme name in text.
|
Example: When there is only one element
::OpenViewForm("viewMain","Form01","formName:frmForm01");
Example: In the case of multiple elements
::OpenViewForm("viewMain","Form01",c("formName:frmForm01","stretch:RESIZE_KEEPRATE"));
|
openParam
|
|
Type:
|
General purpose
|
|
Open parameter. Each element is "parameter name:value". To specify an array, use c("parameter name 1:value 1", "parameter name 2:value 2",...). It is also possible to pass a map value generated by the MAP route method.
The information passed in the open parameters can be retrieved from the called form's script using the GetOpenParam method.
|
Return Value
|
|
Type:
|
Boolean
|
|
FALSE - Failure. TRUE - Success.
|
Explanation
Opens the form in the specified view.
The argument basedFormName usually specifies the name of the original form (e.g. "Form01").
If the same form name exists across multiple folders, you can specify it as folder name.form name (e.g. "Folder01.Form01").
|
Syntax 2
OpenViewForm(
viewName,
basedFormName
[,formName]
[,stretch]
[,openParam]
)
Parameters
basedFormName
|
|
Type:
|
character
|
|
Specify the name of the original form you want to display in the view. The view will display this form as the base.
|
formName
|
|
Type:
|
character
|
|
Form name after embedding (any name). Specify the new form name to be referenced from the script. If omitted, the name specified in basedFormName will be the form name to be referenced from the script. This form name must not overlap with the main form or the form name of the open dialog.
|
stretch
|
|
Type:
|
character
|
|
The form size is expanded to fit the browser's display size (or the display size of the view to be displayed in the case of a frame).
"NONE" - no stretching
"STRETCH_FULL" - Stretch to fit the display size.
"STRETCH_KEEPRATE" - Stretch to fit the display size (keep aspect ratio)
"RESIZE_FULL" - Adjust form size to fit display size
"RESIZE_KEEPRATE" - Adjust form size to fit display size (keep aspect ratio)
"FORM" - Matches the setting of the form's Strech property
"DEFAULT" - Matches the setting of the route's Strech property
* If this argument is not specified or if an empty string is specified, the Strech property of the form will be used.
|
openParam
|
|
Type:
|
General purpose
|
|
Open parameter. Each element is "parameter name:value". To specify an array, use c("parameter name 1:value 1", "parameter name 2:value 2",...). It is also possible to pass a map value generated by the MAP route method.
The information passed in the open parameters can be retrieved from the called form's script using the GetOpenParam method.
|
Return Value
|
|
Type:
|
Boolean
|
|
FALSE - Failure. TRUE - Success.
|
Explanation
Syntax 2 of the OpenViewForm method is the old calling format prior to Ver6REV12.
Opens the form in the specified view.
The argument basedFormName usually specifies the name of the original form (e.g. "Form01").
If the same form name exists across multiple folders, you can specify it as folder name.form name (e.g. "Folder01.Form01").
|
Supported
reference
OpenForm
OpenViewForm
OpenPrevForm
OpenNextForm
ClearFormHistory
OpenHomeForm
GetCurrentForm
GetForm
IsHavePrevForm
IsHaveNextForm
OpenHiddenForm
AddResourceFile
OpenFile
OpenBrowser
CloseBrowser
OpenApplication
OpenApplicationFile
AddRecentFilePath
GetRecentFilePath
ClearRecentFilePath
GetOpenFileType
ShowFullScreen
ShowTaskbarIcon
RefreshScreen
ZoomIn
ResetZoom
SetZoom
GetZoom
SetZoomInRatio
GetZoomInRatio
SetStretch
GetActiveDialogName
GetActiveViewName
GetAllDialogName
SetModalDialog
ShowDialog
BringDialogToTop
BringBrowserToTop
SetDialogState
EnableDialogMenu
GetMenuCandidate
SetBrowserState
GetBrowserState
GetBrowserType
ShowComment
UpdateTitle
SetMouseCursor
GetChildObj
|