S
Support
I am leaning a lot and this is exciting stuff!
In infopath, I want to display a list box which values are populated by a
web service.
<WebMethod(Description:="This function provides you will all the news
release years we have")> Public Function NewsGetdates() As String
Question:
What type of data should I return from the web service? Should I return a
recordset ? What type of record set -
The data comes from a sqldatareader....
Dim stuff As SqlDataReader
stuff = cmd.ExecuteReader()
While stuff.Read
DatesSelectbox = DatesSelectbox & "<option value=" & stuff("year") & ">" &
stuff("year") & "</option>"
End While
NewsGetDates = DateSelectbox
This of course wont work because the list box does not understand <option
value, etc...
Thanks
Terry
In infopath, I want to display a list box which values are populated by a
web service.
<WebMethod(Description:="This function provides you will all the news
release years we have")> Public Function NewsGetdates() As String
Question:
What type of data should I return from the web service? Should I return a
recordset ? What type of record set -
The data comes from a sqldatareader....
Dim stuff As SqlDataReader
stuff = cmd.ExecuteReader()
While stuff.Read
DatesSelectbox = DatesSelectbox & "<option value=" & stuff("year") & ">" &
stuff("year") & "</option>"
End While
NewsGetDates = DateSelectbox
This of course wont work because the list box does not understand <option
value, etc...
Thanks
Terry