Try OpenEdge Now
skip to main content
Developing BPM Applications with Developer Studio
Configuring dashboard widgets : Enabling Google gadgets
 

Enabling Google gadgets

You can use the Widgets Configuration tool to add Google-enabled gadgets like Map, Weather, and News as widgets to your dashboard.
Note: For information regarding adding and customizing these widgets in your Business Process Portal Dashboard page, see Chapter 9: “Using Dashboards” in Business Process Portal User’s Guide.
1. From the General tab of the Widgets Configuration tool, select Other as the widget type.
2. From the Properties tab of the Widgets Configuration tool, specify the Target URL as “http://www.gmodules.com/ig/ifr” in the Target URL box and parameters for each gadget type:
Table 85 describes the parameters for each gadget type.
Table 85. Gadget parameters
Parameter Name
Description
url
Applicable for all the enabled gadgets. Specifies the individual URL for each of the Google gadgets. Value is:
up_location
Applicable for Map and Weather gadgets. Specifies the location for which the map or weather forecast needs to be rendered, for example, Santa Clara.
For Map widget
Note: You can use the Map component only if you have a valid license for the Google Maps.
up_maptype
Specifies the type of map to be rendered. Available options are m (for map type), s (for satellite), and t (for terrain).
up_idleZoom
Specifies the magnification level of the map. For example, 11.
up_selected text
Specifies the location to be pointed at, when the user searches for a place in the Search box. For example, progress.
For Weather widget
up_scale
Specifies the unit of temperature. Available options are C (for Celsius) and F (for Fahrenheit).
up_title
Specifies the title of the dashboard widget. For example, Santa Clara.
For News widget
up_ned
Specifies the news edition to be rendered. For example, us (for U.S. edition), in (for India edition), and so on.
up_items
Specifies the number of news items to rendered.
up_show_ image
Specifies whether to display images in the news feed. Values are 0 (for false) and 1 (for true).
up_font_size
Specifies the font size of the news feeds, for example, 12 pt.
up_selected Tab
Specifies the default tab to be displayed on rendering. The value starts with 0.
Shown below is a sample widgets.xml file containing the configuration details for the Google gadgets.
For Map gadget:
<other name="MapWidget">
<description>Widget to search and display location in a map.
</description>
<category>Map</category>
<title>Map</title>
<width>320</width>
<height>320</height>
<jsp>/bpmportal/common/DefaultOtherWidget.jsp</jsp>
<properties/>
<targeturl url="http://www.gmodules.com/ig/ifr">
<param name="url">http://addthisshare.com/localsearch.xml
</param>
<param name="up_location">Santa Clara</param>
<param name="up_mapType">m</param>
<param name="up_idleZoom">11</param>
<param name="up_selectedtext">savvion</param>
</targeturl>
</other>
For Weather gadget:
<other name="WeatherWidget">
<description>Displays the weather forecast for the next 5 days
</description>
<category>weather</category>
<title>Weather</title>
<width>200</width>
<height>300</height>
<jsp>/bpmportal/common/DefaultOtherWidget.jsp</jsp>
<properties/>
<targeturl url="http://www.gmodules.com/ig/ifr">
<param name="url">http://hosting.gmodules.com/ig/gadgets/file/109162539679639397174/weather.xml</param>
<param name="up_location">Santa Clara</param>
<param name="up_scale">F</param>
<param name="up_title">Santa Clara</param>
</targeturl>
</other>
For News gadget:
<other name="NewsWidget">
<description>Displays News feeds from Google</description>
<category>news</category>
<title>News</title>
<width>320</width>
<height>320</height>
<jsp>/bpmportal/common/DefaultOtherWidget.jsp</jsp>
<properties/>
<targeturl url="http://www.gmodules.com/ig/ifr">
<param name="url">http://hosting.gmodules.com/ig/gadgets/file/104342096967082496017/google-news.xml</param>
<param name="up_ned">us</param>
<param name="up_items">5</param>
<param name="up_show_image">1</param>
<param name="up_font_size">12pt</param>
<param name="up_selectedTab">4</param>
</targeturl>
</other>