URLENCODE from mvbasic

6 views
Skip to first unread message

Dawn Wolthuis

unread,
Nov 12, 2009, 9:35:27 PM11/12/09
to intersystems-mv
We need to urlencode or escape a url from mvbasic [and I think we also
need to do pieces of it]. It seems we have only done that from the
client side to date.

I gave it a quick look, but am hoping someone knows the magic. I see
$$$URLENCODE but still don't know how to deal with macros in spite of
being told a few times how to find the source for those (a mental
block, no doubt). There might be a $ZCVT approach too, but I have only
used that function in Zen expressions (COS code). I suppose we could
$xecute something...?

I'm guessing I could figure this out, but I'm happy with any
spoon-feeding I can get right now. Thanks. --dawn

--
Dawn M. Wolthuis

Take and give some delight today

Dave

unread,
Nov 12, 2009, 10:05:00 PM11/12/09
to intersy...@googlegroups.com
%CSP.Page (and therefore %ZEN.Component.page) have an EscapeURL ClassMethod, so from a page class:

escURL = @ME->EscapeURL(nonEscURL)

or from any other class:

escURL = "%CSP.Page"->EscapeURL(nonEscURL)

Should work..  Not something I've ever done, but unless I'm missing something glaring that should be it..



--
You received this message because you are subscribed to the Google Groups "InterSystems:  MV Community" group.
To post to this group, send email to Cac...@googlegroups.com
To unsubscribe from this group, send email to CacheMV-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CacheMV?hl=en

Dawn Wolthuis

unread,
Nov 12, 2009, 10:10:17 PM11/12/09
to intersy...@googlegroups.com
We will give it a try. Thanks Dave. --dawn
Reply all
Reply to author
Forward
0 new messages