Title: The "&" Character and Menus
**
 John,
 
You are correct, if you save it back to the database with only one &.   I was referring (although I didn't mention it) to using the Replace function on display only fields, or fields that are not saved back to the database.
 
If you need to save the menu option back to the database you would need to add code to replace the single & with double &&, most likely in a Filter.
 
 
Stephen
 

From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Reiser, John J
Sent: Friday, October 06, 2006 1:15 PM
To: [email protected]
Subject: Re: The "&" Character and Menus

**
Stephen,
 
I was going to suggest that but then the next time the menu is used Lisa's users would get the BS. And we don't want to give our users any BS ;^>
Lisa could always push to a Display only filed and do the REPLACE but though you save on db storage you work the server every time that field needs to be displayed with one &.
That's why I asked if the menu used the same field for Label and Value. 
Have a nice weekend all,
 
 

John J. Reiser
Software Development Analyst
Remedy Administrator/Developer
Lockheed Martin - MS2
The star that burns twice as bright burns half as long.
Pay close attention and be illuminated by its brilliance. - paraphrased by me

 


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Heider, Stephen
Sent: Friday, October 06, 2006 1:07 PM
To: [email protected]
Subject: Re: The "&" Character and Menus

**
This is true for many Windows applications.  In ARS, when you need to display the value (not in a menu) you could use the REPLACE() function to change && into &. 
 
Stephen


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Kemes, Lisa
Sent: Friday, October 06, 2006 12:53 PM
To: [email protected]
Subject: Re: The "&" Character and Menus

**
Thanks John,
 
I just wanted to make sure there wasn't anything that I was doing wrong. 
 
Regards,
 
Lisa


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Reiser, John J
Sent: Friday, October 06, 2006 12:41 PM
To: [email protected]
Subject: Re: The "&" Character and Menus

**
Lisa,
Yes I have and it is "as designed". Doubling the & escapes it from its normal role a a concatenation operator.
If your menu uses the same field for Label and Value you will see B&S in the menu but B&&S will be pasted to the field.
You can't do much about it because the field is working double-duty.
HTH,
 

John J. Reiser
Software Development Analyst
Remedy Administrator/Developer
Lockheed Martin - MS2
The star that burns twice as bright burns half as long.
Pay close attention and be illuminated by its brilliance. - paraphrased by me

 


From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Kemes, Lisa
Sent: Friday, October 06, 2006 12:30 PM
To: [email protected]
Subject: The "&" Character and Menus

**

I have a search menu that calls the same form that the Menu is actually on (does that make sense?)

When I type something like B&S into my field, hit save, then check the Menu, it comes up as "BS"

When I type something like B&&S into my field, hit save, then check the Menu, it comes up as "B&S"

Has anyone seen this before?

Lisa Kemes
Tyco Electronics
Remedy Support
100 Amp Drive
Harrisburg, PA 17112
717-810-3361
P
Please consider your environmental
responsibility before printing this e-mail


__20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___

Reply via email to