cancel
Showing results for 
Search instead for 
Did you mean: 

Using MAP parameter type through Xacute Query

Former Member
0 Kudos

Hey All,

I have a transaction that has an input parameter of type Map.

My question is what is the format I have to pass to the transaction through an xacute query.

I've tried

Key=[string:Value]

Any help would be appreciated.

Jasper

Edited by: Jasper Vander Velden on Nov 8, 2010 9:54 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I created a test transaction and xacute query. It returned me this:

{TEST2=[double:3.0], TEST=[string:001]}

But when I pass that string back and try and get the values they don't exist.

I have a program that prints crystal reports. This program requires dynamic parameters based on the report being printed, 1 - n number of parameters. So I figure if I pass in a map of the parameter name and parameter value to a transaction I can easily use these values.

Former Member
0 Kudos

Hi Jasper,

This worked for me, give it a try and let me know. Obviously, substitute your own key/value pairs I added a Tracer inside the transaction, and this is the format that was display in the Tracer Message.

{myInt=[[integer:22]], myString=[[string:burp]]}

Pardon all my edits, for some reason, the brackets weren't showing, should be brackets around integer:22 and string:burp

I think I got it fixed!

Kind Regards,

Diana

Edited by: Diana Hoppe on Nov 8, 2010 6:10 PM

Edited by: Diana Hoppe on Nov 8, 2010 6:11 PM

Edited by: Diana Hoppe on Nov 8, 2010 6:11 PM

Edited by: Diana Hoppe on Nov 8, 2010 6:12 PM

Edited by: Diana Hoppe on Nov 8, 2010 6:14 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Diana I played around with it a little more and you don't need the square brackets if it's only a string but to specify the type it has to be enclosed in the square brackets.

Jasper

agentry_src
Active Contributor
0 Kudos

Create an output property of map and see what the result is when called from another transaction using a tracer to display the property in each of the two transactions. That should give you the format (and it should be the same in both).

Why are you using a map datatype as an input? (for my own curiosity).

Regards,

Mike