# Free CDF player - reading data from URL and creating diagrams

**URL:** <https://community.wolfram.com/t/free-cdf-player-reading-data-from-url-and-creating-diagrams/690>\
**Category:** Questions\
**Tags:** authoring-and-publishing, computable-document-format\
**Created:** [October 11, 2013, 12:47pm UTC](https://community.wolfram.com/t/free-cdf-player-reading-data-from-url-and-creating-diagrams/690 "2013-10-11T12:47:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredrikdoberl](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@fredrikdoberl](https://community.wolfram.com/u/fredrikdoberl)\
**Post date:** [October 11, 2013, 12:47pm UTC](https://community.wolfram.com/t/free-cdf-player-reading-data-from-url-and-creating-diagrams/690/1 "2013-10-11T12:47:48Z")

</div>

I am struggling a bit with how to structure the CDF code.

What I want to do is to read some data from a Google spreadsheet & then do some operations of this data and display the result in a diagram.

The pattern I currently have is to have a Dynamic[{..}, Manipulate[(…), Initialize-\> "data = Import[“URL”], SaveDefinitions-\> True, Synchronous-\>False]  
However, when this is deployed as a standalone CDF, the value of data stays the same everytime I open the CDF. Probably because of the “SaveDefinitions”. But when I remove the SaveDefinitions, the data doesn’t seem to be set.

I am looking for some pointers to examples with CDF:s or other sources.

---

<div class="post-metadata">

**Author:** ![arnoudb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/arnoudb/32/41177_2.png) [@arnoudb](https://community.wolfram.com/u/arnoudb)\
**Post date:** [October 11, 2013, 1:19pm UTC](https://community.wolfram.com/t/free-cdf-player-reading-data-from-url-and-creating-diagrams/690/2 "2013-10-11T13:19:56Z")

</div>

Use RuleDelayed (:\>) for the initialization, for example deploy this as a standalone and note how ‘a’ gets reinitialized every time:

```auto
Manipulate[x + a, {x,0,1}, Initialization :> (a=RandomReal[]) ]

```
