---
title: 202303 のの会@関数Talk 43rd | Talks around @Functions in Notes and Domino
tags: 
author: [あう゛](https://www.docswell.com/user/abesat)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/KJ4VVZMZE1.jpg?width=480
description: Notes/Dominoの@関数を取り上げながら、調べたこと、経験したことを雑談してゆきます。  第43回は&quot;@IsDocBeing&quot;始まりの5つの関数（@IsDocBeingSaved、@IsDocBeingLoaded、@IsDocBeingEdited、@IsDocBeingRecalculated、@IsDocBeingMailed）について
published: December 07, 24
canonical: https://www.docswell.com/s/abesat/Z9VMLX-202303-function-talk-43rd
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/KJ4VVZMZE1.jpg)

@
-notes knows community- 2023/03/09
@関数Talk
第43回
公開版
@
Talks around @Functions in Notes and Domino
43rd
✔ @IsDocBeingSaved ✔ @IsDocBeingLoaded
✔ @IsDocBeingEdited ✔ @IsDocBeingRecalculated
✔ @IsDocBeingMailed
阿部 覚
(tw:) @abesat


# Page. 2

![Page Image](https://bcdn.docswell.com/page/LE133R8DJG.jpg)

@
事前に @IsDocBeingSaved をやると告知していましたが、
実は過去に「使い道は何？」というテーマで、
いちどTalkしておりました
今回は「値が1になるとき」のお話をします
類似の各関数についても併せて
@


# Page. 3

![Page Image](https://bcdn.docswell.com/page/GEWPP1Z8J2.jpg)

@
@IsDocBeingSaved
で放談
@


# Page. 4

![Page Image](https://bcdn.docswell.com/page/47ZKKP1973.jpg)

@
@IsDocBeingSaved
ヘルプによれば
「文書の現在のステータスを調べ、文書が保存中の場合は 1
(True) を返し、そうでない場合は 0 (False) を返します。」
原文（英語版）も見てみましょう
@
&quot;Checks the current status of the document and returns 1 (True)
if the document is being saved; otherwise, returns 0 (False).&quot;
…ってそのまんまですね


# Page. 5

![Page Image](https://bcdn.docswell.com/page/YJ6QQMLDJV.jpg)

@
@IsDocBeingLoaded
でも放談
@


# Page. 6

![Page Image](https://bcdn.docswell.com/page/GJ5RRZ1874.jpg)

@
@IsDocBeingLoaded
ヘルプによれば
「文書の現在のステータスを調べ、表示するためにメモリに
ロード中の場合は 1 (True) を返し、そうでない場合は 0 (False)
を返します。」
原文（英語版）も見てみましょう
@
&quot;Checks the current status of the document and returns 1 (True)
if the document is being loaded into memory for display;
otherwise returns 0 (False).&quot;
…ってやっぱりそのまんまですね


# Page. 7

![Page Image](https://bcdn.docswell.com/page/9E2DDR1VER.jpg)

@
@IsDocBeingEdited
でも放談
@


# Page. 8

![Page Image](https://bcdn.docswell.com/page/D7Y22DZQ7M.jpg)

@
@IsDocBeingEdited
ヘルプによれば
「文書の現在のステータスを調べて、文書が編集中の場合は 1
(True) を返し、そうでない場合は 0 (False) を返します。」
原文（英語版）も見てみましょう
@
&quot;Checks the current status of the document and returns 1 (True)
if the document is being edited; otherwise returns 0 (False).&quot;
…やっぱり


# Page. 9

![Page Image](https://bcdn.docswell.com/page/VEN88632J8.jpg)

@
@IsDocBeingRecalculated
でも放談
@


# Page. 10

![Page Image](https://bcdn.docswell.com/page/Y79KKL9D73.jpg)

@
@IsDocBeingRecalculated
ヘルプによれば
「文書の現在のステータスを調べて、文書が編集中の場合は 1
(True) を返し、そうでない場合は 0 (False) を返します。」
原文（英語版）も見てみましょう
@
&quot;Checks the current status of the document and returns 1 (True)
if the document is being recalculated; otherwise, returns 0
(False).&quot;
…やっぱり


# Page. 11

![Page Image](https://bcdn.docswell.com/page/G78RRX95ED.jpg)

@
@IsDocBeingMailed
でも放談
@


# Page. 12

![Page Image](https://bcdn.docswell.com/page/L7LKK8W3ER.jpg)

@
@IsDocBeingMailed
ヘルプによれば
「文書の現在のステータスを調べ、文書がメール送信中の場合
は 1 (True) を返し、そうでない場合は 0 (False) を返します。」
原文（英語版）も見てみましょう
@
&quot;Checks the current status of the document and returns 1 (True)
if the document is being mailed; otherwise, returns 0 (False).&quot;
…はい、そうですね


# Page. 13

![Page Image](https://bcdn.docswell.com/page/4EM2269MEW.jpg)

これら関数は条件判断に使うだけで、
@
実際の画面で0や1を見ることはないですよね
そこでこんなフォームをつくってみました
@
表示用の計算結果フィールドに、
左の見出し通りの式が入っています


# Page. 14

![Page Image](https://bcdn.docswell.com/page/PERMMPGL79.jpg)

文書を新規作成して
@
→画面を更新(F5,F9)
→文書を保存
→画面を更新(F5,F9)
@


# Page. 15

![Page Image](https://bcdn.docswell.com/page/P7XVV3Q6JX.jpg)

文書を読み込みで開く
@
→画面を更新(F5,F9)
更新されないけど
→文書を送信
→画面を更新(F5,F9)
@
更新されないけど


# Page. 16

![Page Image](https://bcdn.docswell.com/page/37KQQY9G7D.jpg)

文書を編集で開く
@
→画面を更新(F5,F9)
@


# Page. 17

![Page Image](https://bcdn.docswell.com/page/LJ3PP9W575.jpg)

@
この5つの接頭辞が同じ関数たち
ある観点で見ると、ひとつ仲間はずれがいます
@IsDocBeingLoaded
@IsDocBeingEdited
@IsDocBeingRecalculated
@IsDocBeingSaved
@IsDocBeingMailed
@


# Page. 18

![Page Image](https://bcdn.docswell.com/page/8JDLLGKY7G.jpg)

@
&quot;仲間はずれ&quot; は…
@IsDocBeingLoaded
@IsDocBeingEdited
@IsDocBeingRecalculated
@IsDocBeingSaved
@IsDocBeingMailed
@


# Page. 19

![Page Image](https://bcdn.docswell.com/page/VEP223K2E8.jpg)

@
@IsDocBeingEdited以外は、
値が1になる期間が「ほぼ一瞬」ですよね
@IsDocBeingLoaded
@IsDocBeingEdited
@IsDocBeingRecalculated
@IsDocBeingSaved
@IsDocBeingMailed
@


# Page. 20

![Page Image](https://bcdn.docswell.com/page/27VDD4VX7Q.jpg)

@
こんなことを考えてみました
やや、&quot;ビギナー（ののさん）向け&quot; じゃないけど
ロータススクリプトでよく使用する文書フォーム内のイベント
Query~ ・ Post~ と、
前・後がセットになるような
ものが多いですが
@


# Page. 21

![Page Image](https://bcdn.docswell.com/page/5JGYY1LRJL.jpg)

@
それらセットとタイミングの共通する各関数は
Query~ Post~ どちらかあるいは両方の時に1になっている？
@IsDocBeingLoaded
@IsDocBeingRecalculated
@IsDocBeingSaved
@IsDocBeingMailed
@


# Page. 22

![Page Image](https://bcdn.docswell.com/page/47QMMDYYEP.jpg)

@
各イベントは式言語に切り替えちゃうこともできるので
こんな風に各イベントでの@IsDoc~ の値を
プロンプトで出すことにしました
@


# Page. 23

![Page Image](https://bcdn.docswell.com/page/KE4VVZWZ71.jpg)

@
この方法で、@IsDocBeingLoaded と @IsDocBeingSaved は
確認できたのですが
@IsDocBeingLoaded
@IsDocBeingRecalculated
@IsDocBeingSaved
@IsDocBeingMailed
@


# Page. 24

![Page Image](https://bcdn.docswell.com/page/L7133RYDEG.jpg)

@
いずれも…
@IsDocBeingLoaded
✔
✔
✔
文書新規作成時
読み込みで開いた時
編集で開いた時
いずれもこの結果でした
@IsDocBeingSaved
@


# Page. 25

![Page Image](https://bcdn.docswell.com/page/G7WPP1G8E2.jpg)

@
Query~ Post~ は あくまで
「~の始まる前」「~の終わった後」で
ちゅう
@IsDocBeing～ （～中） とは同時に成り立たないようです
@


# Page. 26

![Page Image](https://bcdn.docswell.com/page/4JZKKPL9J3.jpg)

@
今回もお付き合い
ありがとうございました 😀
@


