Potential of AI (Generative AI) in Business: Learnings and Insights
Creating Openbravo Workspace Widgets
1. Creating
Simple Openbravo Workspace Widgets
Step by Step
Rob Goris
User Experience Architect
Openbravo
November 2010
Spotlight on Openbravo 3.0
2. What is this guide about?
This guide will show you how to create an Openbravo Workspace Widget and fill it
with content by pointing to a URL, by e.g. reusing a Google Gadget. Obviously,
creating a real cool widget that uses Openbravo data is a bit more difficult
but...let´s first learn the basics.
Before you start
Make sure you have done the following
Run Openbravo 3.0 – RC3 (or higher). See release notes [1] on how to download
and install this distribution.
Run Firefox. I just noticed that Chrome does not like super-long URLs in the text
field for the widget (issue logged [2]). IE and Safari should be okay.
Be logged on as System Administrator.
[1] http://wiki.openbravo.com/wiki/ERP/3.0/Release_Notes/3.0RC3
[2] https://issues.openbravo.com/view.php?id=15342
3. This is what we are going to do
(1) Create a module. You only need to create one module that can “store” multiple
widgets.
(2) Create simple widget(s) by copying and pasting URLs from sites or existing
widgets
(3) Add the widget(s) to your workspace
4. Be logged in
as System
Admin
Use QuickCreate menu
to start creating a new
module
5. Complete New Module
form and save it
“In
Development”
must be checked
Version must be
format X.Y.Z
Something unique such as
com.yourdomain.lastname.firstname
(most common is to use your domain the other
way round).
6. Now create a new Widget
using the QuickCreate
menu
You´re looking at the
bottom half of the form
now
In case you are serious about things
and want to register your module (to
share or sell the widget maybe), you
can register its module. You will use
your Forge credentials to register the
module in the Central Repository.
Let´s not do that for now. See
Appendix II for more info.
7. Complete the form
In this example we are going
to reuse an existing Google
Gadget called “Section
Summary” that shows
industry sector trends
Copy and paste this from the other
widgets or type it here without making
mistakes
org.openbravo.client.myob.URLWidgetP
rovider
Check this one to let
all users enjoy the
widget
Set a height
8. A little detour to iGoogle.
Here you want to reuse the
source for the Google Gadget
you like...
9. Using Firefox (and e.g. the
Firebug extension) find the code
for the specific widget that starts
with <iframe and ends with “>.
Now paste it in an editor...
That´s the one we
want!
10. Now only take the part
following the src between the
“ “ as shown below. This must
be a valid URL
11. And paste this in the child tab´s
URL field for the widget. Save.
Note: in Chrome there was a problem
with large URLs (issue logged)
12. Going back to the Workspace tab
we now find it in the list that
appears when you click the Add
Widget >> link. Press the Add
button.
And here it appears
13. We now have added some more
widgets: Motion Chart, Team
Calendar and Google Insights.
Ready.
Now let´s share them with the
team...
19. Et voila. The widgets you choose
are now added to everybody´s
workspaces.
20. This user now has deleted the boring
widgets, added some others and
reshuffled the lot.
All set for a great day at work! :P
21. Now you´re all ready to create your own
Some more ideas: http://openbravouxlab.blogspot.com/2010/12/24-ideas-for-
openbravo-workspace.html
Share and discuss widgets:
http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid
=886353&topicid=7021092
On the next pages you find some URLs to copy and paste for your widgets
26. URL for Google Docs widget (to copy & paste)
https://docs.google.com/API/IGoogle?up_numDocuments=5&up_viewPreference=ope
ned_by_me&lang=en&country=us&.lang=en&.country=us&synd=ig
&mid=130&ifpctok=-
4110339548844836371&exp_rpc_js=1&exp_track_js=1&exp_ids=17259&am
p;parent=http://www.google.com&libs=7ndonz73vUA/lib/liberror_tracker.js,iHKb-
4mKuMY/lib/librpc.js,VKkU-3_4mDA/lib/libcore.js,OqjxSeEKc8o/lib/libdynamic-
height.js,a5j4V1JuNVE/lib/libsetprefs.js&view=home&is_signedin=1
27. How to create the URL for the Google Calendar widget
Go to https://www.google.com/calendar/embedhelper
Log in to your Google Account (if you had not already)
Pick the calendar you want to display and choose the settings
Copy the part of the code between “ and the > as show below and paste it in the URL field on the Widget>URL tab
29. Publishing a Widget as a Module (Advanced Users)
So you want to share these awesome widgets with the world? For free or...if they are really really good, even for money?
You then need register, create and publish them as a module to the Central Repository
1) Register your module
In the Module tab, press the Register Module button at the bottom of the form. You can use your Forge credentials in the
registration popup that follows.
2) Create and package a module
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_To_Create_and_Package_a_Module
3) Publishing modules
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Publishing_Modules