作成者カテゴリ返答の対象
公開
test
02/15/2002 01:15 PM
文書リンクアイコン Querycloseで@Command([FileSave])が実行できない
Re: Querycloseで@Command([FileSave])が実行できない

式が苦手なのでスクリプトで、
aフィールドが空でなければbフィールドの値をセットして終了します。

aフィールドのデフォルトに何か文字を入れて
bフィールドは表示用の計算結果で@Now等をセット
文書を閉じるとaフィールドにbフィールドの値がセットされます。

Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Dim workspace As New NotesUIWorkspace
Set source = workspace.EditDocument( True )

If source.fieldgettext("a") <> "" Then
Call source.fieldsettext("a",source.fieldgettext("b"))
Call source.save
End If
End Sub


[Previous Main Document]
Querycloseで@Command([FileSave])が実行できない (A.YAMANAKA)
. . Re:Querycloseで@Command([FileSave])が実行できない (ちん)
. . . . エラーはでなくなりましたが、保存ができていないようです。 (A.YAMANAKA)
. . Re:Querycloseで@Command([FileSave])が実行できない (ちん)
. . . . Re: Querycloseで@Command([FileSave])が実行できない (A.YAMANAKA)
. . . . . . Re: Querycloseで@Command([FileSave])が実行できない (test)
. . . . . . . . Re: Querycloseで@Command([FileSave])が実行できない (A.YAMANAKA)
. . . . . . . . . . Re: Querycloseで@Command([FileSave])が実行できない (test) * 現在地 *
. . . . . . . . . . . . Re:Querycloseで@Command([FileSave])が実行できない(追加) (test)
. . . . . . . . . . . . . . Re: Querycloseで@Command([FileSave])が実行できない(追加) (A.YAMANAKA)
[Next Main Document]