Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
DataDeploy Encoding
doug_lagore
I am using metadata search with DAS pushing my EA's to DB2. I have one metadata attribute called "Title" which could contain apostrophes... Is there a switch somewhere, that will allow me to encode apostrophes? Basically, when my delivery renders this attribute I get the following:
Ex: If the Doc Title is "Doug's Document" -- It is rendered as
"s Document" Essentially, my XML/display is truncating everything b4 the apostrophe.... How can I correct this?
Find more posts tagged with
Comments
Migrateduser
See if this helps you:
This article decribes how to eliminate certain characters input into a DCT using FormAPI rather than a validation regex.
Details:
Often developers try to eliminate special characters such as curly quotes using the validation-regex attribute within the DCT.
Another approach is to listen to the onItemChanged event, which gets fired whenever the value of an item changes. In the event listener, use the replace() method of string to do the replacement and call setValue() on the item to replace the string with the newly processed string. Something like the following would take care of this:
function processString( item )
{
var value = item.getValue();
//Look for open quote
value = value.replace(/<some pattern>/g,"The replacement string");
....
item.setValue( value );
}
doug_lagore
Thanks for the info...