Categoria: Lotus Notes
I don't know why but sometimes uidoc.refresh works fine for the embedded view and sometimes no.
I just got this problem : F9 works fine to refresh an embedded view but via lotus script I didn't find any refresh-reload commands.
Google as usual helped me to find a soultion on internet.
I found a solution to simulate the F9 key.
Create an action on your embedded view and past the following code. In your action you have to type "Call F9".
Declare Sub keybd_event Lib "user32.dll" (Byval bVk As Integer, Byval bScan As Integer, Byval dwFlags As Integer,Byval dwExtraInfo As Integer)
Const VK_F9 = &H78
Const KEYEVENTF_KEYDOWN = &H0
Const KEYEVENTF_KEYUP = &H2
'Press and release F9
keybd_event VK_F9, 0 , KEYEVENTF_KEYDOWN , 0
keybd_event VK_F9, 0 , KEYEVENTF_KEYUP , 0