- 論壇徽章:
- 0
|
我想在視圖中追加操作,在顯示當(dāng)前視圖的幀中顯示另外一個(gè)視圖,用下列公式可以成功實(shí)現(xiàn),但改成lotusscript卻總不能成功
公式:
@SetTargetFrame("MainFrame");
@Command([OpenView];"vwSelect")
能正確在指定幀結(jié)構(gòu)中打開(kāi)視圖
改寫(xiě)后的代碼1:
Dim ws As new NotesUIWorkspace
Call ws.SetTargetFrame("MainFrame" )
Call ws.OpenDatabase("****1", "***.nsf", "vwSelect")
只能在新窗口中打開(kāi)視圖
改寫(xiě)后的代碼2:
Dim ws As New NotesUIWorkspace
Dim uidb As NotesUIDatabase
Set uidb = ws.CurrentDatabase
Call ws.SetTargetFrame("MainFrame" )
Call uidb.OpenView("vwSelect")
提示視圖不能更改
望高手指點(diǎn) |
|