Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Simple find/replace of spaces
TheRealDea
How do I go about within the javascript to perform a find/replace of all spaces within a parm? I was attempting to perform this at the Report/Initialize event by using: params["VALUE1"].value = params["VALUE1"].value.replace(" ", "");. I can successfully replace one instance, but I want ALL spaces removed. Please help.
Find more posts tagged with
Comments
mwilliams
Hi TheRealDea,
Try the following instead:
params["VALUE1"].value = params["VALUE1"].value.replace(/ /g, "");
Hope this helps.
TheRealDea
Thank you very much. I have spending the better part of this afternoon looking for a resolution.
Sorry, but just an inquiry -- would you say the Report/Initial event is a good place to modify(clean) the parms entered by the end-user before replacing the this.queryText later on?
mwilliams
TRD,
It's probably as good a spot as any.