
Publié:
18 Oct 2009 à 01:39
par Jérome Deniau
Et pour le premier avril, tu ajoutes le champ SaveOptions="1" et ton refresh enregistre le document sur disque (ouarf!)

Publié:
26 Nov 2010 à 15:44
par StasS
Un grand merci pour le tips ! Ca fait depuis ce midi que je me tape la tête sur l'écran pour trouver une solution


Publié:
26 Nov 2010 à 15:50
par mike76
Trop bizarre StasS j'étais dans le même cas que toi et grâce à ta réponse ça m'a remonté le post de Michaël

Publié:
29 Nov 2010 à 07:59
par StasS
Hé hé
Et beh ça fait 2 heureux le même jour !

Publié:
29 Nov 2010 à 12:19
par billbock
ca marche aussi avec ceci
[syntax="LotusScript"]
Function IsRTFNull(rtfield As String) As Integer
On Error Goto Errhandle
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
'Store the name of the field that currently has focus. Note: if this function is being called from a form button,
'currentfield will be null (because the button has the focus, and not a field). If this function is called
'from an action button, and if the cursor is in a field, then currentfield will correctly store the name
'of the field that has focus. currentfield = uidoc.CurrentField
Call uidoc.GotoField(rtfield)
Call uidoc.SelectAll
'The next line will generate a 4407 error message if the Rich Text Field is null
Call uidoc.DeselectAll
'Return the cursor the the field that had focus before this function ran. If the currentfield variable is null (because a button
'or hotspot had focus, then the cursor will actually wind up getting left in the rich text field.
If currentfield <> "" Then
Call uidoc.GotoField(currentfield)
End If
IsRTFNull = False
Exit Function
Errhandle:
Select Case Err
Case 4407
'the DeselectAll line generated an error message, indicating that the rich text field does not contain anything
If currentfield <> "" Then
Call uidoc.GotoField(currentfield)
End If
IsRTFNull = True
Exit Function
Case Else
'For any other error, force the same error to cause LotusScript to do the error handling
Error Err
End Select
End Function[/syntax]