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

How to clear the search result list on selection of another shop in b2b?

Hi All,

In the generic search of b2b app, in the left side frame we will have a tab called transaction and when i give * and click on search, i will get the list of the orders present based on the criteria below that page and when i open the order, it will appear in the history page of the right side frame. But in our app, we have provided a custom link to go to the select-shop page where the user can select another shop. After selection of another shop, i should not get the searched orders and the orders in the history page. How should i nullify the search and the history pages??

Thanks in Advance.

Regards,

Lakshman.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 11:25 AM

    Hi,

    what do you mean with "another shop"?

    Unfortunately I currently do not have access to the shop code, but as I remember the history is stored in a Cookie.

    The B2B shop is frame based, so whenever you click on a link, you are only able to update on frame. If you want to reload (in this case = reset) the frame with the search results, you have to two options. You are using a Javascript, which is called on event "onClick" or you are forcing the whole webpage to reload - there is somewhere a page called "refresh.jsp", which needs to be called; you probably have to add some additional logic to pass values & to get your specific behaviour.

    Regards,

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 12:43 PM

    Hi Lakshman,

    Everytime user clicks on a new shop, create a session variable and set it to any value.

    userSessionData.setAttribute("NEWSHOP","true");

    Now go to history.jsp and just above this piece of code put a validation for the value of this session variable and

    if its value matches to "true" than only let the below code to execute.After the validation dont forget to remove this

    variable from session.

    <isa:iterate id="historyItem" name="<%= UpdateHistoryAction.HISTORY_LIST %>"
                 type="com.sap.isa.isacore.HistoryItem">  
    

    Likewise you can work with organizer frame refresh also.Hope this helps you.

    Regards,

    Arshi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 02:41 PM

    History data comes essentially from cookies. So, in your custom code where you switch the shops, you should be able to manipulate the history data the way you want.

    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.