Are wildcard parameters supported in a Data Source?
I have a responder that matches on the first column in a Data Source. Is there a way to create a default response with data from the Data Source? I thought putting a "*" as a value, but doesn't seem to work.
Comments
-
Hi nikola,
yes, wildcards are supported in data source, however it is rather used to correlate appropriate data from request to prepare response.
To match any value for the incoming parameter, you can use the criteria expression [ * ], which matches any input. Alternatively, you can use the expression [], which means no criteria and therefore trivially evaluates to true. Virtualize supports [ * ] because its meaning is more obvious. Note that the empty expression — which would be represented in the table of parameter criteria as an empty table cell — does not match any input. Rather, it matches an input that is a zero-length string.
You can find a lot of examples in Virtualize manual/help.
Look for Criteria Expressions for Matching ValuesEdit: As i see there is a small problem with showing criteria expression on forum.
You should use[*]
2 -
Thanks, that's exactly what I was looking for!
0