Admin Remote Console

Today I’m just sharing a tip! ;-)
I found Admin Remote Console very useful in many scenario for example when:

  1. modifying a template on the server and want to refresh the design much more faster than doing a refresh design from the client. *** see below (#1)
  2. developing for web and want to monitor the domino console for debugging purpose.
  3. monitor scheduled agents (same debugging purpose).
  4. force scheduled agent to run. *** see below (#2)
  5. and much more …

So what?

To open the Admin Remote Console use this @formula
@Command([AdminRemoteConsole])

A new non-modal window will be opened; you can re-size it and move it on your monitor and keep on working in lotus/notes or lotus/designer while monitoring the server console.

Click on Live console checkbox and enjoy!

By the way, to be able to use the Admin Remote Console you must be listed as “Full Remote Console Administrators” in the Security tab in the Server document.

Now it’s up to you to decide from where to use it, on form, view action or elsewhere in your environment, personally i love to have a toolbar icon ! :-)

Notes:

*** (#1) To run a refresh design from the console use
load desiger -f database_path.

*** (#2) To force a specific scheduled agent to run use
tell amgr run "database_path" 'agent_alias'

Shared field rename bug

Yesterday i found another bug in Lotus/Designer; this time it’s about Shared fields.

These are the steps to reproduce the issue:

  1. Open Shared fields list and select the one you want to copy and paste.
  2. Ctrl-C + Crtl-V; the new field will be pasted with _1 suffix.
  3. Hit F2 or use the in-view edit to enter the new name (Xxx for example), confirm with Enter and see the new name in the list.
  4. Enter again to edit the field, open the field properties with Ctrl-Enter and Wow, here is the old name displayed !!!

The new Shared field can be used and is displayed with the new name but when you preview the form you will got a “Cannot locate field definition for Field: Xxx” error (Xxx is the field name at point 3)

So:

Remember to rename Shared fields only via the field properties in the edit field window !!!

and also:

Be aware of if you rename a used Shared field you must delete and re-add it to any forms that use it.

Let me know if you find this tip useful !!!

 

How to disable Return date in Out of office message

As you know, Out of Office agent send an automated reply to incoming messages while you are away. The notification service sends replies only between the leaving and returning times you specify and sends only one reply to each sender.

Sometimes users does not want to let people know when they will be back in office. Here comes the “Append return date to subject” check box!

But what about the message Body? Return date is also used in Body, so how to disable this?

I’ll show you how, let’s start !!!

  1. Open Mail template in Lotus designer, i used Mail (R8).
  2. Open (Out Of Office Profile) | OutOfOfficeProfile Form.
  3. Open AppendSubject field properties and change Choices from “Append return date to subject|1″ to “Append return date to subject and body|1″ (this is done only for user purpose).
  4. Same for dsp_tmpAppendSubject field.
  5. Select DaysOut field and change its formula to: REM {variables to translate};
    varAgentSentence := "I am out of the office until var_Back.";
    varServiceSentence := "I am out of the office from var_First until var_Back.";
    REM {END variables to translate};
    strAgent := @ReplaceSubstring(varAgentSentence; "var_Back"; @Text(DateFirstDayBack;"S0"));
    strService1 := @ReplaceSubstring(varServiceSentence; "var_First"; @Text(DateFirstDayOut;"T1"));
    strService2 := @ReplaceSubstring(strService1; "var_Back"; @Text(DateFirstDayBack;"T1"));@If(ShowHours = "1"; strService2 ; strAgent);REM {20120111: disable dates if AppendSubject not set};
    varNoDatesSentence := "I am out of the office";
    @If(AppendSubject != "1"; varNoDatesSentence; ShowHours = "1"; strService2 ; strAgent);
  6. Same for SpecialBody field.
  7. Save, refresh design and enjoy.

Let me know if you find this tip useful !!!