Newbie - Please help with Alarm Notice

Hi All,

I am trying to modify the Alarm popup message to display the follow-up text as well the subject. (Default shows only the subject)

My current code is as follows. (This code is in the description column in ($Alarms) folder.


FollowUpTxt := "Follow Up for: ";

Context:= " Mail Subject: ";

xxLocation := @If(@Length(Room); @Name([CN];@Subset(Room;1)); @Length(Location);Location; “”);

@If(@Length($AlarmDescription); @Trim($AlarmDescription:xxLocation);

@IsAvailable(FollowUpStatus); FollowUpTxt + @Trim(FollowUpText) + Context + @Trim(Subject);

@Trim(Subject:xxLocation))


The result is as follows:

Follow up for: [My follow up text here] {some blank spaces that I have inserted in the code, does not display here} Mail Subject: [The email subject here]

What I am trying to acheive is as follows:

Follow up for: [My follow up text here]

(one blank line)

Mail Subject: [The email subject here]

Issue: I am unable to insert the carriage return in this code. I have tried @NewLine and @Char(13)…but it does not seem to work.

I am not a programmer, just tinkering around.

Could someone, please paste the correct code so that I can get the Alarm popup to show the way I want to see it.

Thanks a ton.

Subject: Column property: Display multiple values with …

… New Line. Make sure the view property for row height is set at something more than 1, and the Shrink row to content box is checked.

Then instead of …

FollowUpTxt + @Trim(FollowUpText) + Context + @Trim(Subject),

use …

(FollowUpTxt + @Trim(FollowUpText)) : (Context + @Trim(Subject)).

Subject: RE: Column property: Display multiple values with …

Sorry but something wrong here…the Alarm stopped working when I made changes as suggested by you.

Did you test this?? Did it work for you??

Subject: RE: Column property: Display multiple values with …

Post your new code.

Subject: RE: Column property: Display multiple values with …

Hi Bill,

Thanks a ton for taking interest in this and helping me.

My current code is as follows. (This code is in the description column in ($Alarms) folder.


FollowUpTxt := "Follow Up for: ";

Context:= " Mail Subject: ";

xxLocation := @If(@Length(Room); @Name([CN];@Subset(Room;1)); @Length(Location);Location; “”);

@If(@Length($AlarmDescription); @Trim($AlarmDescription:xxLocation);

@IsAvailable(FollowUpStatus); FollowUpTxt + @Trim(FollowUpText) + Context + @Trim(Subject);

@Trim(Subject:xxLocation))


Please paste your revised code here, so that I can simply paste into my template.

Thanks a ton.

Subject: RE: Column property: Display multiple values with …

You’re welcome to my help, but sorry, I’m not going to just give you everything you need to paste into your view. Considering what you have so far, that would only result in you asking more questions here about the same view later on instead of figuring it out. (And this is relatively basic stuff.)

Your @If statement is borked up, enough that I’m not sure exactly what conditions you’re trying to evaluate. Here’s the proper structure of an @if statement:

@If(

condition_1; value_or_action_1;

condition_2; value_or_action_2;

condition_3; value_or_action_3;

else_value_or_action)

It will evaluate the conditions in order until it finds the first True or reaches the else.

In your case, the first condition of the first @If statement is “@Length(Room)”, which is a value, not a condition. Maybe you mean “@Length(Room) > 0”. But since it is not zero, it is regarded as True. Same for the second condition of the first @If. Same for the first condition of the second @If.

Your second @If is the last whole statement in the view column, so it is the one which determines what the column will hold. Since the first “condition” there is “@Length($AlarmDescription)”, which because it’s probably not zero probably evaluates to True, the first value there, “@Trim($AlarmDescription:xxLocation)”, is what the column will hold.

Assuming you set the column properties to display multiple values on a New Line, and that you set the view properties to display multiple lines per row, this should leave you with the Alarm Description and the Location on separate lines in the view. If you want the Subject there, you’re going to have to include it in all of the value_or_action portions of the second @If statement.