IEFormFill alpha chars in variable cause Inappropriate msg

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Methuselah
Junior Coder
Posts: 49
Joined: Fri Oct 15, 2004 8:42 am
Location: Johannesburg, South Africa

IEFormFill alpha chars in variable cause Inappropriate msg

Post by Methuselah » Sun Sep 29, 2013 1:19 pm

MSched 14.0.14

WebRecorder code produces statements encapsulated in braces and double quotes.
Changing this when using variable values can cause issues. You may encounter the very helpful Line nnnn: ? is inappropriate
where ? turns out to be the first character of the variable value.

The IEFormFill as generated by WebRecorder:

Code: Select all

IEFormFill>%IE[0]%,{""},{"payment"},{"recipientAcctRef"},{"Payment Ref"},0,ie_res
Now, when automating, I wanted to insert a dynamic reference

Code: Select all

Let>RefText=1234
IEFormFill>%IE[0]%,{""},{"payment"},{"recipientAcctRef"},{"%RefText%"},0,ie_res
No problems, even {"RefNum=%RefText%"} works.

But NO Alpha chars can be in the variable.
Let>RefText=Inv123 or any other combination is "inappropriate"

Solution: Eventually I found I was able to code it without the double-quotes - {%RefText%}

Code: Select all

IEFormFill>%IE[0]%,{""},{"payment"},{"recipientAcctRef"},{%RefText%},0,ie_res
This way I can pass anything I encounter.

Hopes this keeps someone else sane :)
Meths

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 30, 2013 6:14 am

Yes, {" ... "} is for a literal string. For a variable just use the variable name or %variable% without curly braces and quotes. The variable can be named anything you like. See the chapter Using Variables in the help file.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts