当ブログに掲載しているサンプルは、すべて利用者の自己責任とします。
ただし、明らかな不具合がある場合、ご連絡いただければ、訂正記事を出します。
また、こちらのサンプルは、別のサイト等への公開、転載は一切禁止しています。
どうしてもと言う場合は、筆者にあらかじめご連絡ください。
記事そのもののリンクについてはご自由に行っていただいてよいです。
xxのようなサンプルを作って欲しいとかxxxの作り方を教えて欲しいというお問い合わせには応じていません。
このようなお問い合わせは、株式会社エフまでご一報ください。

2020年3月17日火曜日

I tried "Let's change the password programmatically" with HCL Nomad.

This blog is translation of "https://guylocke.blogspot.com/2020/03/nomad.html".

I blogged "Let's change the password programmatically".
Ono-san of HCL Master, he challenged it, unfortunately he didn't seem to success it.

But I don't never give up!
So, I tried "change the password" with HCL Nomad.

It was struggling to select ID file.
because, smartphone or tablet is difficult to operate folders.

So, I thought about where "ID file folder" would be.

Usually, Notes data directory or user id information is stored in notes.ini.

It is stored up user ID information is "KeyFileName", data directory information is "Direcotry".

To get the value of an environment variable, see:
Dim session         As New NotesSession
Dim strDataDirecoty As     String
Dim strKeyFileName  As     String

strDataDirecoty = session.GetEnvironmentValue( "Direcoty", True )
strKeyFileName  = session.GetEnvironmentValue( "KeyFileName", True )



The execution results is below.
Execution result on Android

Great! I was able to get the value.

The value of 'KeyFileName' was 'user.id'.
After that, it connects these two with "/", it is the full path of the ID file.

I introduced by https://guylocke.blogspot.com/2020/03/nomad.html sample code.
It replaces the part of getting the ID file path, and it is done.
It is so easy.

The execution result is below.

Input password on HCL Nomad

Enter the old and new password and tap [OK] ...


Success!

It looks like to successfully changed your password!
By the way, let's checks that It created the document on the Notes DB.

View in the Notes Application


It was created the document that stored password.



That’s all. Thank you for reading.









Notes/Dominoで困ったことがあれば、弊社にお問い合わせください。
HCL Masterの私が承ります!
お問い合わせはこちらから→Lotus Notes/Domino カスタマイズとセキュリティ強化 - 株式会社エフ

0 件のコメント: