Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO
Accepted Solution

read webservice and show it in gridview

Hi, I am using widgets with plugin .net. I wan to make a grid and fill it with the webservice data. Some example? How can I do it?

 

thanks, Oscar

Please use plain text.
Developer
iamtony
Posts: 87
Registered: ‎02-26-2010
My Device: Bold 9000
My Carrier: Rogers

Re: read webservice and show it in gridview

Hi,

 

By grid do you mean just a simple table?

 

If so you can simply code your table using HTML and then call your webservice through JavaScript perhaps using

 

 

<body onload="">

Then, you can just put the webservice data into the table accordingly using DOM:

 

 

document.getElementById('mydiv').innerHTML = webservicedata;

 

To make it even simpler,  you can craft the webservice to return HTML formatted data, so all you have to do is place it in a div, and it'll work.

 

-Tony

 

 

 

 

Please use plain text.
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO

Re: read webservice and show it in gridview

some sample code how can I load a webservice microsoft using javascript?

 

thanks, Oscar

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers
Please use plain text.
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO

Re: read webservice and show it in gridview

Hi, thank you for your answer. I have got goes the call to the webservice but now give me the next error:

 

"could not retrieve because it was not found in the config.xml"

 

the webservice is in an externa ip http://x.x.x.x/WebService/Service.asmx?op?HelloWorld.

I have tried to put this ip x.x.x.x in domains of config.xml but then I can not compile.

 

Do you know how can I solve it?

 

Thanks, Oscar

Please use plain text.
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO

Re: read webservice and show it in gridview

I have solve it adding http://x.x.x.x instead of x.x.x.x

 

Thanks anyway,

Please use plain text.