Wow that was a DOI moment!!! Thanks you guys! Appreciate the feedback and help! ^_^
~K~
On 8/7/06 10:44 AM, "Shane Pearlman" <[EMAIL PROTECTED]> wrote:
K – you are =) (happens to the best of us)
@arg displays the value of an argument passed from either url or from a form. You cannot assign to it (I think – correct me someone if I am wrong)
You are trying to assign a value – which is done to a variable. I would recommend also adding a scope, just a good habit.
So .. to set this value … use as tom suggested:
<@ASSIGN request$TOTALCHARS “<@CALC expr=’<@length str=“@@dump”>’>”>
Then to display result … @@request$TOTALCHARS or <@var request$TOTALCHARS>
Shane Pearlman
831.345.7033
From: Kaustav Acharya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 07, 2006 10:37 AM
To: [email protected]
Subject: Re: Witango-Talk: Calculating number of characters inside a variable/DOM?
Hi Tom,
I tried that tried calling it in an argument...am I doing something silly here?
On 8/7/06 9:25 AM, "Tom Ferguson" <[EMAIL PROTECTED]> wrote:
shouldn't this:
<@ARG TOTALCHARS VALUE='<@CALC len(@@dump)>'>
be this:
<@ASSIGN TOTALCHARS VALUE='<@CALC len(@@dump)>'>
?
From: Kaustav Acharya [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Sent: Monday, August 07, 2006 12:12
To: [email protected]
Subject: Witango-Talk: Calculating number of characters inside a variable/DOM?
Hi there everyone,
I am assuming that I have to use <@CALC> somewhere here, but I’m not really sure how because this isn’t working for me....
My logic is this:
<@ASSIGN NAME="dump" VALUE=" '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ProcessLead xmlns="http://someURL">
<lead>
<vendorCode xmlns="">number</vendorCode>
<vendorLeadIdentifier xmlns="">number</vendorLeadIdentifier>
<versionIdentifier xmlns="">number</versionIdentifier>
<testCase xmlns="">Y</testCase>
<nameLast xmlns=""><@ARG LASTNAME></nameLast>
<nameMiddle xmlns=""></nameMiddle>
<nameFirst xmlns=""><@ARG FIRSTNAME></nameFirst>
etc, etc,
</lead>
</ProcessLead>
</soap:Body>
</soap:Envelope>'>">
<@ARG TOTALCHARS VALUE='<@CALC len(@@dump)>'>
HERE ARE THE TOTAL NUMBER OF CHARACTERS <@ARG TOTALCHARS><P>
This doesn’t seem to do it...is there something I’m missing here?
____________________________________________________
Kaustav Acharya
Programmer
U. Inc.
12250 El Camino Real, Suite #104
San Diego, CA. 92130
Office: (858) 847-3350 x1004
Fax: (858) 847-3340
email: [EMAIL PROTECTED]
http://www.colleges.com
____________________________________________________
All the News. No Ink. - http://www.onlinetimes.com
Power to the People - http://www.campaign.com
____________________________________________________
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
