user preference value not available in href

4 views
Skip to first unread message

Amit

unread,
Jul 3, 2009, 6:51:11 AM7/3/09
to Google Visualization API
Requirement

I have 4 applications which are deployed on GAE.
I need a simple gadget which takes a user preference String parameter,
pass it as a href value and display the application present on this
passed URL.

For this i did following:

<UserPref name="LoadThisApp" display_name="ApplicationName"
required="false" default_value="http://localhost:8083/myguestbook"/>

I provide value of LoadThisApp in href as:

<Content type="url" href="__UP_LoadThisApp__">

Now my gadget is ready.

1) i add this gadget by inserting its path in a site page, then the
gadget asks me for ApplicationName. (this would be on the page where
we setup our gadget by providing height, width)

2)The default value of ApplicationName is present here.(i.e
http://localhost:8083/myguestbook). I simply provide height, width and
click preview gadget and i can see content of http://localhost:8083/myguestbook.

Here at point 2,
-> the ApplicationName has a default value - http://localhost:8083/myguestbook
If i change this default value to another deployed application URL,
then nothing comes up. No page found errors pops up in gadget.

-> i also tried the same with removing default_value, no success.
Am i missing anything?
Guidance appreciated.

ChartMan

unread,
Jul 5, 2009, 7:28:32 AM7/5/09
to google-visua...@googlegroups.com
Hi

This seems like a gadget specific problem. Please try and post it in a gadget forum.
For example, http://groups.google.com/group/Google-Gadgets-API

ChartMan

Amit

unread,
Jul 8, 2009, 8:26:48 AM7/8/09
to Google Visualization API
Hi Chapman,
i think its not a gadget specific problem
Let me explain a little bit more.

1.) I need to use UserPref parameter (say LoadThisApp) to create my
href.
2.) i enter a URL in userPref parameter and fetch this value in href
(like href="__UP_LoadThisApp__")

This is not working, i.e unable to load the application whose URL i
provided in userPref parameter.


Note: If i provide default_value with user pref parameter like this
<UserPref name="LoadThisApp" display_name="ApplicationName"
required="false" default_value="http://localhost:8083/myguestbook"/>
then href="__UP_LoadThisApp__"
gets its value and loads my application.



On Jul 5, 4:28 pm, ChartMan <chart...@google.com> wrote:
> Hi
>
> This seems like a gadget specific problem. Please try and post it in a
> gadget forum.
> For example,http://groups.google.com/group/Google-Gadgets-API
>
> ChartMan

ChartMan

unread,
Jul 8, 2009, 8:54:47 AM7/8/09
to google-visua...@googlegroups.com
This is a gadget specific question since user prefs are gadget specific.

Amit

unread,
Jul 9, 2009, 3:41:43 AM7/9/09
to Google Visualization API
Agreed.
Posted same under "opensocial-and-gadgets-spec".
Thread: http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/da2b3211b9254c0d#

Kindly have a look.
Thanks.


On Jul 8, 5:54 pm, ChartMan <chart...@google.com> wrote:
> This is a gadget specific question since user prefs are gadget specific.
>
Reply all
Reply to author
Forward
0 new messages