Skip to Content
author's profile photo Former Member
Former Member

Error in GoogleSearch WebServices

Hi All,

I am employing the "Google Search" functionality in WDP. I am following the BestPractices pdf. I am getting a compilation error in the search view for the following line of code:

updateSearchIndex(1);

The error states: The method updateSearchIndex(int) is undefined for the type SearchView.

I have followed all the steps mentioned in the pdf. I am not able to figure out why I am getting this error. Can anyone help Plz..

Regds,

Newbie

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2006 at 10:36 AM

    Hi PN,

    You must write the code code for the method

    updateSearchIndex(1);

    as it is not given by the system.

    create a methos by name updateSearchIndex(int pgIndx) with pgIndx as the integer parameter in the methods tab of search view and write the folloeing code in it:

    wdContext.currentButtonBarElement().setPageIndex(pgIndx);

    wdContext.currentRequest_GoogleSearchPort_doGoogleSearchElement().setStart((pageIndex -1) * 10);

    You need to implement the code for displaying the HTML Result strings along with this then only u'll be able to get proper output.

    Regds,

    Anagha.

    DONOT FORGET TO REWARD POINTS FOR USEFUL ANSWERS.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2006 at 05:00 AM

    Hi Heidi,

    When I click on SAP Notes search link it asks for a username and password. How to register for that. Is it free registration?

    Regds,

    PN

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2006 at 09:54 AM

    Hi,

    Refer to SAP Note 722502 and try implementing the correction instructions.

    Hope it helps.

    Regards

    Srinivasan T

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2006 at 10:51 AM

    Hi Srinivasan,

    How to get the SAP note 722502?

    Rgds,

    PN

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.