I decided to take a look at the ARFilter plugin.  I have some ideas
where this could be useful.

I created a script that returns a single value fine, but will not send
an array of values.  From the ARFilter readme.txt:

---------------------------------------------------
4) To return a value from script, set "result" to any value.  This can
be a
single value of a datatype (string, integer, etc.) or an array of
values.  In the case of a single value, $1$ in the plug-in return values
will contain
the returned value.  In the case of an array, $1$, $2$, $3$, etc. will
contain as many values as exist in the array. 
---------------------------------------------------

This very basic script returns the value of a single element:

dim test(1) as string
test(0) = "option A"
test(1) = "option B"
result = test(1)

When I change the last line to:  result = test   
I would expect that the array of values would be passed back to Remedy,
but all output parameters values are blank.

I then changed the script to this:

dim x as string = "1,2"
dim y As Array = Split(x, ",")
result = y

This produces the error: "Function without an 'As' clause; return type
of Object assumed. (ARERR "5000)"

I have found no examples of VB.Net code that return multiple values from
a Set Fields FilterAPI Filter.  Has anyone been able to get this to
work? 

ARS 6.3, VB.Net 2005
 
Stephen

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to