Hi,
Just check your ar.h file in the api/include folder.
Put a minus (-) in front of the numbers.
Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)
Products from RRR Scandinavia (Best R.O.I. Award at WWRUG10/11/12):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.
#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 */
/* midnight) */
#define AR_KEYWORD_SCHEMA 5 /* schema currently being worked on */
#define AR_KEYWORD_SERVER 6 /* server currently being accessed */
#define AR_KEYWORD_WEEKDAY 7 /* current day of the week */
#define AR_KEYWORD_GROUPS 8 /* groups current user is member of */
#define AR_KEYWORD_OPERATION 9 /* operation being performed (see */
/* defines) */
#define AR_KEYWORD_HARDWARE 10 /* hardware operating on (see uname) */
#define AR_KEYWORD_OS 11 /* OS and release of OS (see uname) */
#define AR_KEYWORD_DATABASE 12 /* database and version of database */
#define AR_KEYWORD_LASTID 13 /* EntryID of most recently created */
/* entry */
#define AR_KEYWORD_LASTCOUNT 14 /* number of matches to most recent */
/* search */
#define AR_KEYWORD_VERSION 15 /* version of current environment */
#define AR_KEYWORD_VUI 16 /* current VUI (client only) */
#define AR_KEYWORD_GUIDETEXT 17 /* current Guide Text (client only) */
#define AR_KEYWORD_FIELDHELP 18 /* current Field Help (client only) */
#define AR_KEYWORD_GUIDE 19 /* current guide (client only) */
#define AR_KEYWORD_APPLICATION 20 /* current application (client only) */
#define AR_KEYWORD_LOCALE 21 /* user locale */
#define AR_KEYWORD_CLIENT_TYPE 22 /* client type of the api program */
#define AR_KEYWORD_SCHEMA_ALIAS 23 /* alias name for the current form */
#define AR_KEYWORD_ROWSELECTED 24 /* indicates if row in a table is */
/* selected (client only) */
#define AR_KEYWORD_ROWCHANGED 25 /* table row status - loaded, modified, */
/* new or deleted (client only) */
#define AR_KEYWORD_BROWSER 26 /* browser type (client only) */
#define AR_KEYWORD_VUI_TYPE 27 /* current VUI type */
#define AR_KEYWORD_TCPPORT 28 /* TCP/IP port of the local arserver */
#define AR_KEYWORD_HOMEURL 29 /* base location of mid-tier install */
#define AR_KEYWORD_ROLES 30 /* roles current use is member of */
#define AR_KEYWORD_EVENTTYPE 31 /* type, or name, of event received by */
/* window (client only) */
#define AR_KEYWORD_EVENTSRCWINID 32 /* window id from which the event was */
/* sent (client only) */
#define AR_KEYWORD_CURRENTWINID 33 /* returns the window id of the current */
/* window (client only) */
#define AR_KEYWORD_LASTOPENEDWINID 34 /* ret window id from last open window */
/* action (client only) */
#define AR_KEYWORD_INBULKTRANS 35 /* indicates if currently within a bulk */
/* entry transaction */
#define AR_KEYWORD_FIELDID 36 /* returns the field id for currently */
/* selected field (client only) */
#define AR_KEYWORD_FIELDNAME 37 /* returns the field name for currently */
/* selected field (client only) */
#define AR_KEYWORD_FIELDLABEL 38 /* returns the field label for currently
*/
/* selected field (client only)
*/
#define AR_KEYWORD_SERVERTIMESTAMP 39 /* current date/time on the server (same
*/
/* (as AR_KEYWORD_TIMESTAMP on server)
*/
#define AR_KEYWORD_GROUPIDS 40 /* group ids for groups current user */
/* is a member of */
#define AR_KEYWORD_EVENTDATA 41 /* data, of event received by */
/* window (client only) */
#define AR_KEYWORD_ERRNO 42 /* errorcode of the current workflow
action */
/* Relevant both in filter/activelink
error handler */
#define AR_KEYWORD_ERRMSG 43 /* error message of the current workflow
action */
/* Relevant both in filter/activelink
error handler */
#define AR_KEYWORD_ERRAPPENDMSG 44 /* additional appended message(if any)
of the error above */
#define AR_KEYWORD_INCLNTMANAGEDTRANS 45 /* Indicates if currently in
client managed transaction */
#define AR_KEYWORD_DRAGSRCFIELDID 46 /* return field ID of source field for
drag operation */
#define AR_KEYWORD_DROPTGTFIELDID 47 /* return field ID of destination field
for drop operation */
#define AR_KEYWORD_SHIFT_KEY 48 /* Indicates if shift key was pressed
while triggering a workflow */
#define AR_KEYWORD_CTRL_KEY 49 /* Indicates if control key was pressed
while triggering a workflow */
#define AR_KEYWORD_ALT_KEY 50 /* Indicates if ALT key was pressed
while triggering a workflow */
#define AR_KEYWORD_AUTHSTRING 51 /* returns the authString */
#define AR_KEYWORD_NO 52 /* no more keywords !! Returns NO */
> Here's my dumb question for a Friday afternoon: is there an index somewhere
> of the numeric values for keywords?
>
> I was looking at a filter in a def file just now and saw that it used $-4$
> in the message and I had no idea how there could be a negative field ID
> since I had never run into one before. I had to open the filter in Dev
> Studio to see that it was the numeric representation of the $DATE$ keyword.
> Hence my question, the next logical step for me would be to have a reference
> table of keywords with their numeric values and I can't find that in the
> 7.6.04 docs on in Communities.
>
> -Rick
>
>
> ___________________________
> Rick Westbrock
> QMX Support Services
>
>
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"