Open GoogleCodeExporter opened 9 years ago
I'm noting that
http://code.google.com/apis/finance/docs/2.0/developers_guide_js.html#Interactiv
e_Samples
appears to exhibit problems with the getMoney() function.
Adding the line
var money = positionData.getMarketValue().getMoney()
Causes the 'Retrieving Positions' script to fail silently. I am unable to test
this
further as I am not really familiar with Javascript.
Original comment by chris.ti...@gmail.com
on 29 Apr 2010 at 11:37
Chris, looking at the exception, my first guess is that
positionData.getMarketValue()
is returning a null value, so it's possible that the feed URL is not valid.
Keep in mind that the gwt-gdata library binds to the gdata JavaScript library
(whose
JsDocs are available on
http://code.google.com/apis/gdata/jsdoc/2.2/index.html), so
Money is returned as an array because that's how it's implemented in the
underlying
GData JS API.
On URLs, i agree that they can be a pain to get right without some research,
but the
correct place for this type of information is the GData Protocol documentation
site.
Let me try to get a working sample for this.
Original comment by bobbysoa...@gmail.com
on 30 Apr 2010 at 12:22
Original issue reported on code.google.com by
chris.ti...@gmail.com
on 23 Mar 2010 at 4:18