function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TraderARTTraderART 

Has anyone gotten the Stock Quote (APEX Cookbook p.169) example to work?

I am trying to get the Stock Quote example (Apex Cookbook p.169) working. All the individual steps seem to work(?), at least no errors are being generated. But I can't get the Tab to get and display the stock quote. Has anyone gotten it to work?
fred526fred526

I haven't either.

I had to delete parts of the WSDL to get it to parse properly and create the classes. 

On my tab, i just have a blank text area.

TraderARTTraderART
I had the same experience, but I added some code to the s-control which displayed some text so that the tab would at least do something.
CodeTalkerCodeTalker
Yes I finally got it to work.
It wouldn't display anything on the tab.
I couldn't figure out what was wrong.
Then I made 1 small change.
Use double quotes around "Today's CRM Stockquote:  " in the S-control line instead of the single quotes in the cookbook.


Code:
document.getElementById('userNameArea').innerHTML = "Today's CRM Stockquote:     " + result;

 

TraderARTTraderART
Thanks, your suggestion worked. I had narrowed the error to that statement but didn't think change the quotes. I really appreciate your input. Thanks again