Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

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".

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
'Global Declaration
Declare Sub keybd_event Lib "user32.dll" (Byval bVk As Integer, Byval bScan As Integer, Byval dwFlags As Integer,Byval dwExtraInfo As Integer)	

Sub F9

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


End Sub


REFRENCES

DISQUS - Leave your comments here