Set webservice parameters using script

T

tinus1975

Hi,

I've got a form with a dependent dropdown list. Because the dependent
list can contain a lot of values I want to retrieve the values when the
dropdown it is dependent on has it's value changed.

The way I want to do this is to show the firstdropdown with a button
next to it. When the user selects a value and presses the button the
webservice that is the data source for the dependent dropdown is called
with the value of the first dropdown as a parameter.

Problem is that I can call the webservice (using JScript), but I don't
know how to set the input parameters for the webservice.

Does anybody have any idea on how to do this?
Many thanks,
Tijn.
 
G

Greg Belenky

Does anybody have any idea on how to do this?

1. Open data sources task pane, select your web service's datasource and
look at it's structure: there is the node, that holds input parameter
2. select this node from XDocument.DataObjects('...').DOM
3. set node's text to whatever you need.
4. call XDocument.DataObjects('...').Query() method
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top