Connecting to Google Spreadsheets from Xcelsius

Is there a way to connect to a Google Spreadsheet as the data source from Xcelsius? One [blogpost|http://www.unchartedblog.com/2009/04/24/connecting-xcelsius-to-google-spreadsheets/] describes how to make the connection using the Google Spreadsheet Connector in Xcelsius Web 2.0 components add-on, but it requires the Google Spreadsheet to be published and publicaly accessible. Which we can't do due to security concerns.
Any thoughts?

Hello,
I think I know how you can achieve exactly what you want. In our organisation I have integrated Google Spreadsheets with BO Dashboards in a neat and hassle free way. We can even schedule the data extraction from Google Spreadsheets to SAP BO and can also fetch data from other Google apps such as Google Calendar into SAP BO. The best part is it's free, no third party software/ licensing involved (other than Microsoft, of course).
I'll be publishing a document on this on SCN soon (hopefully within this week) and shall paste the link to the doc here when it's ready.
Regards,
Sagar Dixit.

Similar Messages

  • Why connection to Google Apis from Azure Role is slower

    Hi,
    We are writing a service which connects to Google Contact API and syncs the data. But if Contact insert to google from my local PC takes 0.3 sec, o Azure Working role it takes 1.2 secs. For a 1K contacts it is almost 15 min difference.
    How can we get FASTER connection from Azure to Google APIs?

    Hi,
    I would suggest you use fiddler to see the detailed information, the Fiddler timeline view may give us some tips about why spend so many time, refer to
    http://docs.telerik.com/fiddler/KnowledgeBase/Timeline for more detailed information.
    Hope this helps.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Google Spreadsheet Data Connection

    Hi all,
    I have been playing with the Add-On Google Spreadsheet Data Connection and I am not able to publish my Xcelsius design model.
    I get the same error that Natasha mentions in her blog (http://www.natashascorner.com/2009/04/24/connecting-xcelsius-to-google-spreadsheets/) when trying to publish it.
    Has anyone be able to publish an Xcelsius model where data is obtained from a Google Spreadhsheet?
    Many thanks in advance. Regards,
      Imanol

    Hi,
    What I meant is that I am able to see the data if preview the Xcelsius dashboard.
    If I export it to Flash or Power Point I get an error.
    Anyone faced the same issue?
    Many thanks in advance. Regards,
       Imanol

  • Pulling data from Google Spreadsheet?

    Has anyone had any luck pulling data into extendscript from a google spreadsheet?  I realize I have to use bridge to make the connection, but I'm wondering about how to actually pull the data.

    If you could share with a http and not a https service - you could set up your own site and save the document there
    You should be able to figure out from this script - http://rorohiko.blogspot.co.il/2013/01/geturlsjsx.html - how to get the info from the web in to idesign.
    You just need the getURLs function in the script and not the script label part of the script.

  • Firefox connects to google-analytics for some sites, and then gets stuck, and I can never get onto the site. How do I prevent Firefox from connecting to google-analytics? I use XP with service pak 3 in English

    Firefox connects to google-analytics for some sites,when i click on links in websites or emails and then gets stuck, and I can never get onto the site. Or opens a new bower behind the one i'm usind that's blank i don't even know it's there untill i close the one i'm using. How do I prevent Firefox from connecting to google-analytics? Or opening a blank bowser behind the one i'm using. I use XP with service pak 3 in English
    == This happened ==
    A few times a week
    == a couple months ago

    I got the same issue.
    I go on a website and all the sudden another window pops up with "results.google-analytics.com" or "search.google-analytics.com". It has often ads for other sites for example. black single dating site
    how can I can I stop that from happening again?
    I didn't download or do anything, just visit websites, that I visit on a regular basis.
    OS: Windows XP
    Firefox Version: 3.6.6

  • Safari doesn't connect to the internet from my mailbox or from Google. I use a MAC, OS X version 10.8.4

    My MAC desktop doesn't connect to the internet from an email or from  safari.  Only the first few letters of the web address I want to use appears in the address bar and then the wheel spins and spins non-stop.  Thanks for any suggestions on how to fix this problem.

    Power off the router. Wait awhile. Power it back on. Wait until all the lights are lit up properly.
    It will take a while.
    Restart the computer.
    Start up in Safe Mode
    http://support.apple.com/kb/PH11212
    Best.

  • Cannot refresh a stored procedure within a Crystal Report from Xcelsius

    Please help...Xcelsius 2008 & Live Office problem...
    What I am trying to do is to refresh a stored procedure that is within a Crystal report from within my Xcelsius dashboard in Preview mode. The data returned appears on the Xcelsius dashboard. It works fine in Design mode, just not in Preview or when published as a swf.
    1. I set up a Crystal Report using a Stored Procedure as the data provider.
    2. The Stored Procedure has a parameter built into it.
    3. When the report is refreshed within Crystal, the prompt dialog box is displayed; I fill in the desired value, and run. Everything comes back fine.
    4. Crystal Report is exported to the repository.
    5. In Excel, I inserted the Crystal Report using Live Office. It shows up as a Live Office object just fine.
    6. I bound an Excel cell to the prompt; when you change the value in the bound cell, the Live Office object refreshes and displays the correct results.
    7. In Xcelsius, I imported the Excel spreadsheet.
    8. I set up a Text component that is bound to the cell containing the parameter value. Also set up a Grid to display the results, and a Connection Refresh button to call the refresh. Added a Live Office Data Connection pointing to the Web Service URL for the report.
    Note: When in Designer mode, if the value of the bound cell is changed, the results in the grid change accordingly.
    9. When in Preview mode (or generated swf), if the Refresh button is pressed, a "User Identification" dialog box appears asking me to log on. The values it asks for are: System, User Name, Password, and Authentication. I enter the same credentials as are within the Live Office settings in Excel, (which are working correctly), but receive an error "soapenv:Server.generalException: Database logon failed.".
    Note - all the id's are synced up - Business Objects, Database, etc.
    I've tried all kinds of combinations, but nothing gets me past this error. If I use any other server than the one listed under System in Live Office, the error message is "soapenv:Server.generalException: Server XXXXX not found or server may be down".
    I've noticed that in Excel directly, when I open the spreadsheet and refresh the Live Office object, I am prompted to log on to the database where the stored procedure is being executed. This dialog box does not appear once the Excel sheet has been imported into Xcelsius. One of the combinations I tried in the "User Identification" dialog box was the name of the database server, that didn't work either.
    I also tried creating the Live Office object directly within the Excel spreadsheet in Xcelsius, but then I was unable to bind the prompt value. Could never get the Live Office/Properties menu to appear.
    Ideas? Thoughts?
    Thanks in advance!
    Stephanie

    This post looks like a duplicate of: Live Office: Database logon failed error

  • Dynamic AE Renders with Google Spreadsheets Docs - Seeking Beta Testers

    Happy New Year Everyone!
    I'm positing this message in an effort to recruit beta testers for a new AE plugin that allows users to convert text layers, footage layers, and solid layers into dynamic audio / visual elements driven by external data at render time.
    With this plugin users connect comp layers to data within a Google Spreadsheet document (or tab-delimited file) that is “fed” into that layer during a batch render. The plugin automatically positions, scales, and fits dynamic sized text strings and images.  If you produce any kind of video template, you can benefit from it because swapping out sources, texts, etc. is extremely easy simply by modifying spreadsheet data. Essentially, you can output batches of unique renders based on the same AEP file using this plugin: think lower-thirds, bumpers, slideshows, presentations, etc.
    I made a screencast showing how the plugin works:
    I would be grateful to any of you who would like participate in the product's beta phase, and will offer participants free upgrades after it is released to the general public.
    If you have any interest, please reply here, or send me a private message via the forum.
    Thank you for your time and consideration!
    Best,
    Arie

    Just wanted to update this thread to point folks to the release version of this plugin.  You can now enjoy its benefits by downloading it at aescripts.com.
    Templater now has extensive written documentation to familiarize yourself with general concepts for working with it and how-to instructions for accomplishing specific tasks.
    Thanks again for all you beta testers out there!  Your time, suggestions, and help have been invaluable. 
    Best,
    Arie

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • Link to a crystal report with prompt from xcelsius dashboard

    Hi
    How can we make a link to a crystal reports with a country promt?
    If I named the prompt ContryParam in Crystal.
    And I want to open this crystal report by sending f.eks UK as countryname to this report.
    What will the link be seeing as in xcelsius?
    How will the connection be made from xcelsius to this spesific crystal report`?
    BR
    Sadaf

    Hey Sadaf,
    This example uses prompt# to pass "CA" as a value to the first parameter:
    http://<servername>:<port>/CrystalRe
    ports/viewrpt.cwr?id=1152&prompt0=CA
    search for follwing document title for further reading
    Viewing Reports and Documents using URLs

  • #2170 error calling a webservice from Xcelsius having crossdomain.xml

    Hello together,
    we are facing a #2170 error indicating we don't have a proper policy file in place when executing a published Xcelsius flash in SAP BI application portal.
    We created a WebService that is running an SAP BI System 7.01. The WebService is function module based and was generated following the wizzard. Afterwards we created a Xcelsius app that consumes data from this WebService (via data connection). The resulting flash from Xcelsius was pulished to SAP BI System (portal).
    Since there are many entries in the SDN and the internet in general we finally also created an crossdomain.xml file on the BI system which can be accessed and is visible by using "https://<server>/crossdomain.xml".
    Now the confusion begins: We exported the flash from Xcelsius to local desktop and executed the corresponding HTML-file. It's working and I can receive/see WebService data (after adjusting flash-security-settings). If we upload both exported files (html and swf) to the BI system (as MIME objects) and execute the html again we are also receiving WebServervice data. So far so good. But if we execute the link from the SAP BI Portal (Xcelsius menu > SAP > Start) we still get the error #2170 indicating we don't have a proper domain policy file in place. But for my understanding we do have. So currently I would assume the error message is somehow misleading.
    During all the activities I found out that this error is also raised if the user has insufficient authorization. My user has SAP_ALL authorization for testing purpose.
    In general I would say we are not that wrong with our Xcelsius/WebService if we are not coming from BI portal. So my questions are:
    1.) Are there any authorization on portal side that might not fit and lead to this error? If insufficient authorizations produces such an error ...
    2.) Did we miss any other stuff during our try/fail-operations?
    Many thanks in advance for your hints.
    Steffen

    Hi Rajat,
    This is how the default trace looks
    FATAL: Application Servlet failed to notify devices.
    Caught java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
         at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1289)
         at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1298)
         at com.om.ApplicationServlet$NotifyDevices.run(ApplicationServlet.java:86)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:980)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
         at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1282)
         ... 2 more
    java.lang.NoSuchMethodError
    at java.lang.Thread.destroy(Thread.java:779)
         at com.omApplicationServlet$NotifyDevices.run(ApplicationServlet.java:92)
    Rgds
    Shashank

  • Connecting SAP R/3 to Xcelsius dashboard

    Hi all,
         I've a requirement where I have some reports in SAP R/3 and based on those reports I need to build a single Xcelsius dashboard.  What I know is I have to use Crystal Reports which fetches the data from R/3 tables and in turn use these Crystal reports as data source to my Xcelsius Dashboard and I want this dashboard to be a live one.
    But how should I connect to the Crystal reports data directly from Xcelsius ??
    Is it through Live Office, if yes can someone describe the process to do it as I'm unaware of it ??
    Thanks
    John

    Hi Anil,
                   The reports in SAP are standard reports where each report is having 4000-5000 lines of code, and to replicate
                   the same logic in Crystal Reports to build reports which in turn can be used a data soure to Xcelsius dashboard is a
                   huge task and time consuming as far as I know from outside of it.......
                   Is there any other approach to achieve this ?
    Thanks
    John

  • How to pass parameter from xcelsius report to WebI report

    Hi,
    I have a pie chart in xcelsius. When user clicks on one of the slices of the chart I want to pass the selected slice value to a WebI report.
    For this I am doing following steps
    1. When user clicks on a chart slice the selected slice value will be written into a cell say B1
    2. Create a URL button which will get triggered on change of the value of cell B1.
    3. Set the URL value in the cell say C2. Here I am using Opendoc function to open Webi report.
    If I enter following value in C2 and run the report it works fine and opens the desired webi report.
    ="http://myServer.xyz.com:9001/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&sDocName=MyDoc&sReportName=MyReport&sWindow=Same&sRefresh=Y&lsSCompany=MyCompany&lsSDecision="  &$B$1
    here I am Passing two parameters Company and Decision.
    Now I want to make this report run in all the environment so I changed the actual path of server( myServer.xyz.com:9001) to following
    ="../../opendoc/openDocument.jsp?sType=wid&sDocName=MyDoc&sReportName=MyReport&sWindow=Same&sRefresh=Y&lsSCompany=MyCompany&lsSDecision="  &$B$1
    but if I do this it gives me following error in Webi:
    "Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address."
    Is there any other way to open the WebI report from xcelsius?

    Hi Peter,
    the link provided refers to Xcelsius V4.5.
    In Xcelsius 2008 you have to control Flash Vars in the Data Manager.
    Go to the Data Manager, Add the Flash-Var Connection Type, Select CSV-FlashVar and define a name and a range.
    But i am not sure if Xcelsius Engage can handle FlashVars, because i am only working with Enterprise.
    Please take a look at your manual.
    For sure there are other ways to import data during runtime. Take a Look at the Connections provided by Data Manager. (e.g. QaaWS, SSRS, LiveOffice, Webservices, ...)
    Also take a look at the link below. It might be another nice option for "pseudo" data connectivity
    http://labs.businessobjects.com/xcelsiuspublishing/default.asp
    Best Regards
    Ulrich

  • Need help using doGoogleSearch to connect to Google API

    Hello all,
    I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
    Thanks in advance rgds,
    Tony
    Here is my code so far...................................
    package tony_buckley_project;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    * <p>Title: Mr. Tony Buckley</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright Tony Buckley (c) 2004</p>
    * <p>Company: Cork Institute of Technology </p>
    * @[email protected]
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

    I don't know where you got the rest of this code from (was it supplied as part of the project or did you write it yourself), but I think it may be overcomplicated.
    The last time (at least a year ago) that I looked at the Google WS api, this is all you needed:
          GoogleSearch search = new GoogleSearch();
          search.setKey("_your_key_here_");
          search.setQueryString(searchStringHere);
          GoogleSearchResult result = search.doSearch();You can look in their api docs for how to extract the results from GoogleSearchResult.
    Hope that helps?
    Kevin Hooke

  • Cannot connect to Google Server

    Can anyone help me figure out why I cannot connect to Google? I'm on a MacBook Pro, running 10.6.8.
    I get the error messages:
    "Unable to connect: Firefox can't establish a connection to the server at www.google.com."
    "Safari can't connect to the server"
    What's going on? YouTube is fine, Bing is fine, everything else works. Could surfing job search websites have given me some virus?
    Thanks in advance, Valerie

    It looks like something or someone has modified your /etc/hosts file.
    By far the easiest way to fix the hosts file is to restore it from a Time Machine (or other) backup that predates the modification. If that's not possible, then do the following.
    Back up all data if you haven’t already done so. Before proceeding, you must be sure you can restore your system to the state it’s in now. If you skip this step, no one but you will be responsible for the consequences.
    These instructions must be carried out in an administrator account, if you have more than one user account.
    Select "Go to Folder..." from the Finder menu bar. In the text box, enter "/etc" (without the quotes.) A Finder window will open on the "etc" folder.
    Double-click the file named "hosts" in that folder. It should open in TextEdit. At the top of the file, you should see something like this:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1                              localhost
    255.255.255.255          broadcasthost
    ::1                                        localhost
    fe80::1%lo0                    localhost
    Below that, you'll see some other lines. Delete everything below the last line shown above. Make sure you scroll all the way to the bottom of the document. In Lion, scroll bars are hidden by default until you actually start scrolling, so you may not realize that you’re not seeing the whole document.
    Don’t try to save; you won't be able to. Instead, duplicate (in Lion) or select "Save As..." from the file menu (pre-Lion.) In the Save dialog, make the name of the file “hosts” and deselect the option to add a ".txt" extension to the file name, if it's selected. Save the file to your Desktop. You should now have a file named exactly "hosts" with no extension on your Desktop, having the contents shown above.
    Now launch the Terminal application, for instance by entering the first few letters of its name in a Spotlight search. Copy or drag -- do not type -- the line of text below into the window, and press return:
    sudo sh -c ' cat Desktop/hosts > /etc/hosts '
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. Confirm. Quit Terminal.
    Do not type anything into the Terminal window except your password.
    That will fix your hosts file. You can now close the “etc” folder and delete the hosts file on your Desktop. Unless you know how the file was modified, I can’t guarantee that no other damage has been done to your system.

Maybe you are looking for

  • Dashboard Menu in OBIEE 11G

    Hi All, Is it possible to have a drop-down box next to the oracle logo (or anywhere in that header) with links to the dashboards. I have the following dashboard titles: ALM LIQUIDITY RISK FUNDS TRANSFER PRICING ...ETC. Thanks

  • Safari 6.2.4 problems

    After downloading the Safari 6.2.4 version/security update, I have had horrible pop-ups anytime my curser pauses on a word, or anything on a web page.  Also, an entire page will be selected when I have done nothing to cause it.  I'm having other prob

  • Pictures From Apple TV to a Computer

    Is it possible to export photos from the Apple TV hardrive? My computer crashed and I will lose almost a year of photos if I can not get them back on the computer?? Of course I will remember to back up more often, thank you Time machine, but for now

  • Basic runtime questions

    Just curious, why is the Adobe Air runtime called a runtime and not a plugin? Is the Flash Player no longer called a plugin but instead also called a runtime? What is the difference between a runtime and plugin? Thanks.

  • Problem with media print styles in debug versus nondebug mode

    Hi, I am trying to debug why the same page (and code) will print one way on one server and another way on another server. These servers are a dev and test server with the same version of cf 9 installed. I am working on a page that has two divs floate