Gopala,

I use a Set Fields $PROCESS$ command to display the pop-up and set the
user's selection to a temp field.  Here is an example of displaying a
question and getting a Yes or No returned.  

Set Fields 1:  
Set $zTmpFld1$ = "Are you sure you want to delete every record in the
system?"

Set Fields 2:  
Set $zTmpFld2$ = $PROCESS$ cmd.exe /c $Global - MsgBox.exe$
"$zTmpFld1$" Confirm YesNo Question Button2

The parameters I pass mimic the MessageBox.Show method in VB.Net 2003,
including optional ones.  As with all my console applications I output
the syntax when no parameters are passed - otherwise I would forget what
they were after a few months :)


Syntax: MsgBox.exe Message WindowTitle Buttons Icon DefaultButton
Options

Message         Message.          Use <<CR>> for returns, <<TAB>> for
tabs, <<DQ>> for double-quotes
WindowTitle     Window title.     Use <<DQ>> for double-quotes.
Default=None
Buttons         Which buttons?    Options: AbortRetryIgnore, OkCancel,
RetryCancel, YesNo, YesNoCancel.  Default=OK
Icon            Which icon?       Options: Asterisk, Error, Exclamation,
Hand, Information, Question, Stop, Warning.  Default=None
DefaultButton   Default button.   Options: Button2, Button3.
Default=Button1
Options         Window options.   Options: RightAlign, RtlReading,
ServiceNotification. Default=Regular

Only the 'Message' parameter is required, the rest are optional.
All parameters must be passed in the order listed above.

Example: MsgBox.exe "This is the message.<<CR>>Line 2" "This is the
title" YesNo Question Button2


I much prefer using a standard Windows messagebox function that
automatically sizes the pop-up according to the message text.  One of
the frequent responses I receive from non-Remedy developers is surprise
that Remedy can only display fixed message pop-ups (either through a
regular Message command or a custom display-only form used to display
messages).  

Displaying a message or question is the easy part.  The other part
includes getting the exe to the client:  

I have a form that contains system settings used by the help desk
system.  One of these records holds the MsgBox.exe file (8704 bytes). On
my startup form I use a Set Fields from the system form to grab the file
and set it to a display only attachment field.  This action places the
exe in the client's %TMP% folder. Because the WUT uses this folder for
normal operations there are no permission issues to deal with. Also, the
client will always have the most recent version of the exe.

I then capture the client's %TMP% value, append "\MsgBox.exe" to it, and
store it in the global field $Global - MsgBox.exe$.  Then anywhere in
the system I need to display a message [in an Active Link] all I need to
do is add that global field to the form.


Stephen
 

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Gopala Krishna Peela
Sent: Tuesday, November 28, 2006 3:11 AM
To: arslist@ARSLIST.ORG
Subject: Re: ARNOTE (10000)

Hi Stephen,

  How to call .NET App from active link for displaying message box
  (using RUN PROCESS..?).
  Could you please explain in detail..?.

Thanks and Regards,
Gopala Krishna.Peela
 
-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Narayanan, Radhika
Sent: Monday, November 27, 2006 9:50 PM
To: arslist@ARSLIST.ORG
Subject: Re: ARNOTE (10000)

Hi,

Thanks for the detailed info. How can we achieve this in the Mid-tier ?
I want to remove the ARNOTE only for messages displayed on one
particular form, not all.

Environment : ARS 5.1.2 Patch 1389, Mid-tier 6.3 Patch 13, Windows 2000.

Thanks
Radhika
Direct : +44 20718 20262
Extn : 20262


-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Heider, Stephen
Sent: 27 November, 2006 9:45 PM
To: arslist@ARSLIST.ORG
Subject: Re: ARNOTE (10000)


Radhika,

As far as I know the message number can not be removed in the Windows
User Tool, yet it can be removed in Mid Tier by modifying some
configuration files (I did it a year ago and don't remember exactly
where at this point).

One alternative in the WUT is using your own pop-up display mechanism
instead of Remedy's.  I do that here with a tiny .Net console app that
wraps all the functionality of the .Net MessageBox.Show method.  When I
need to display a message (Active Links only) I call this app, which
then returns the user's selection (ie. OK, Yes, No, Cancel).

The only limitation is the max length of the command line (I believe
Windows XP is 8192 characters).  

I wish BMC would begin to utilize the built in functions in Windows
since the Windows User Tool only runs on Windows.  MessageBox and MsgBox
have been available for many years.

HTH

Stephen


-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Narayanan, Radhika
Sent: Monday, November 27, 2006 10:59 AM
To: arslist@ARSLIST.ORG
Subject: ARNOTE (10000)

Hi,

Is there a way to stop just the ARNOTE (10000) or ARWARN (10000) or
ARERR (10000) from being displayed in a Remedy message ?
I only want the message to be displayed to the user and not the ARNOTE
and number.

Environment : ARS 5.1.2 Patch 1389, Mid-tier 6.3 Patch 13, Windows 2000.

Thanks
Radhika
Direct : +44 20718 20262
Extn : 20262



This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to