openPage
openPage
Opens a new page (form) from the current form. Internally it calls KAppManager().openPage().
Parameters
pagePath(string): The path or ID of the page/form to openlinkArg(any): The argument to pass to the opened page (may be null)route(string): The route name to use (an empty string uses the default route)
Returns: None (void)
$form vs $app
Both $form.openPage and $app.openPage call the same KAppManager().openPage() internally. There's no functional difference between them, so either one works.
Example
// 기본 페이지 이동
$form.openPage("home/main", null, "");
// 인수 전달
$form.openPage("order/detail", { orderId: "ORD-001" }, "");
// 특정 라우트 사용
$form.openPage("group/myForm", null, "slide");
Related
$form.openBackPage()— returns to the previous page$app.openPage(pagePath, linkArg, route)— the same behavior at app level