Robert,
I would not use it. ($--1$)
Macros are technically "not supported" since version ARS 5. The idea
that they records $NULL$ as "bla...bla...bla" is not a detail that I
want to deal with anymore. :) The fact that they still work in the
v7.5 User Tool appears to be... well... almost unexplainable.
However I would use the keyword of $ NULL $ as necessary.
I know that is vague, but I am not trying to be flippant or
anything. It is just hard to explain the type of situation you would
use a "screw driver" without saying something like "When I need to do
something with a screw."
I have almost totally given up on Macros. I keep waiting for Macros
v2.0 to happen, but that has yet to show itself. :) Maybe in v8.0? (or
v8.5... or v9.0?)
If I could only figure out why some of my Open Window actions (to run
reports) seem to quietly fail for some forms and/or qualifications...
maybe I could replace all of the functionality of Macros with custom
workflow. GRRRR.... (Still stuck in v6.3 land.)
--
Carey Matthew Black
BMC Remedy AR System Skilled Professional (RSP)
ARS = Action Request System(Remedy)
Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.
On Fri, May 8, 2009 at 3:23 PM, Robert Halstead <[email protected]> wrote:
> ** Just out of curiosity, in what type of situation would you use $--1$?
>
> On Thu, May 7, 2009 at 7:35 AM, Carey Matthew Black <[email protected]>
> wrote:
>>
>> All,
>>
>> FWIW: The full set for any specific version of ARS can be found by
>> looking that the C API header file:
>> ar.h for the values that look like "AR_KEYWORD_*".
>>
>> Example: taken from the v6.3 ar.h file:
>> "
>> /* an additional AR_KEYWORD_NULL concept is mapped to AR_DATA_TYPE_NULL */
>>
>> /* codes for keywords supported */
>> #define AR_KEYWORD_DEFAULT 0 /* admin defined default for the
>> field */
>> #define AR_KEYWORD_USER 1 /* login name of the current user */
>> #define AR_KEYWORD_TIMESTAMP 2 /* current date/time */
>> #define AR_KEYWORD_TIME_ONLY 3 /* current time (date defaults to */
>> /* today) */
>> #define AR_KEYWORD_DATE_ONLY 4 /* current date (time defaults to */
>>
>> ... <snip> ...
>>
>> #define AR_KEYWORD_GROUPIDS 40 /* group ids for groups current user
>> */
>> /* is a member of
>> */
>> #define AR_KEYWORD_NO 41 /* no more keywords !! Returns NO */
>>
>> #define AR_MAX_KEYWORD_USED 41 /* set to code for "highest"
>> keyword */
>> "
>>
>> --
>> Carey Matthew Black
>> BMC Remedy AR System Skilled Professional (RSP)
>> ARS = Action Request System(Remedy)
>>
>> Love, then teach
>> Solution = People + Process + Tools
>> Fast, Accurate, Cheap.... Pick two.
>>
>>
>> 2009/5/7 Brian Bishop <[email protected]>:
>> > **
>> >
>> > Dave,
>> >
>> >
>> >
>> > The value $--1$ is a Remedy keyword conversion that means $NULL$. So in
>> > your
>> > case it is checking that the fields are NULL.
>> >
>> >
>> >
>> > Here is a list of keywords conversions I compiled many years ago which
>> > may
>> > have been added to since doing it.
>> >
>> >
>> >
>> > $-1$ = $USER$
>> >
>> > $-2$ = $TIMESTAMP$
>> >
>> > $--1$= $NULL$
>> >
>> > $-6$ = $SERVER$
>> >
>> > $-5$ = $SCHEMA$
>> >
>> > $-0$=$DEFAULT$
>> >
>> > $-4$=$DATE$
>> >
>> > $-14$=$LASTCOUNT$
>> >
>> > $-13$=$LASTID$
>> >
>> > $-3$-$TIME$
>> >
>> > $-7$=$WEEKDAY$
>> >
>> >
>> >
>> >
>> >
>> > Brian Bishop
>> >
>> > Goldstag Consultants Ltd
>> >
>> > tel: +44 (0)7973 746832
>> >
>> >
>> >
>> >
>> >
>> > From: Action Request System discussion list(ARSList)
>> > [mailto:[email protected]] On Behalf Of Barber, David
>> > Sent: 07 May 2009 13:44
>> > To: [email protected]
>> > Subject: What would $--1$ relate to?
>> >
>> >
>> >
>> > **
>> >
>> > Seen on a macro/search - field 1 = $--1$ and also a little later in the
>> > same search - field 2 = $--1$
>> >
>> > The first field is an assignee, but the second is just a flag. Not
>> > exactly
>> > obvious what it does at all. Any ideas?
>> >
>> > Ta
>> >
>> > Dave
>> >
>> > This e-mail has been scanned for viruses by the Cable & Wireless e-mail
>> > security system - powered by MessageLabs. For more information on a
>> > proactive managed e-mail security service, visit
>> > http://www.cw.com/uk/emailprotection/
>> >
>> > The information contained in this e-mail is confidential and may also be
>> > subject to legal privilege. It is intended only for the recipient(s)
>> > named
>> > above. If you are not named above as a recipient, you must not read,
>> > copy,
>> > disclose, forward or otherwise use the information contained in this
>> > email.
>> > If you have received this e-mail in error, please notify the sender
>> > (whose
>> > contact details are above) immediately by reply e-mail and delete the
>> > message and any attachments without retaining any copies.
>> >
>> > Cable and Wireless plc
>> > Registered in England and Wales.Company Number 238525
>> > Registered office: 3rd Floor, 26 Red Lion Square, London WC1R 4HQ
>> >
>> > _Platinum Sponsor: [email protected] ARSlist: "Where the Answers
>> > Are"_
>> >
>> > No virus found in this incoming message.
>> > Checked by AVG - www.avg.com
>> > Version: 8.5.287 / Virus Database: 270.12.21/2101 - Release Date:
>> > 05/07/09
>> > 05:57:00
>> >
>> > _Platinum Sponsor: [email protected] ARSlist: "Where the Answers
>> > Are"_
>>
>>
>> _______________________________________________________________________________
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"
>
>
>
> --
> "A fool acts, regardless; knowing well that he is wrong. The ignoramus acts
> on only what he knows, but all that he knows.
> The ignoramus may be saved, but the fool knows that he is doomed."
>
> Robert Halstead
> _Platinum Sponsor: [email protected] ARSlist: "Where the Answers
> Are"_
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"