locked
Customize search result page RRS feed

  • Question

  • I am using MarketplaceSearchTask on Click of button to display results from Marketplace
    ---
     Microsoft.Phone.Tasks.MarketplaceSearchTask markplace = new Microsoft.Phone.Tasks.MarketplaceSearchTask();
                markplace.SearchTerms = "Search Term" ;
                markplace.Show();
    ----

    I would like to show the results inside another Panorama item instead of opening the search results in a new page. Also, I would like to remove the search box along with search term in the result.

    Has anyone tried this, or can share some tips to achieve this goal?

    Thanks,
    Aiseduk
    Saturday, February 14, 2015 2:51 PM

Answers

  • The MarketplaceSearchTask can not be customized. You could theoretically pass the search query directly to the Web version of the Windows Store by sending a HTTPRequest with the following URL:

    http://www.windowsphone.com/en-us/store/search?q=your%20search%20query

    which for the text "facebook would result in

    http://www.windowsphone.com/en-us/store/search?q=facebook

    And parse the data out of the resulting web page. That would allow you to do a custom listing of the resulting information. The problem with this approach however is that as soon as Microsoft changes the structure of their Store Website your App will break and given that this is not an officially supported scenario there won't be any advance notice on this.

    • Marked as answer by Aiseduk Wednesday, February 18, 2015 6:30 AM
    Tuesday, February 17, 2015 12:00 PM

All replies

  • Hi Aiseduk,

    >>I would like to show the results inside another Panorama item instead of opening the search results in a new page. Also, I would like to remove the search box along with search term in the result

    As far as I know, in windows phone 8, Marketplace API is the only way to search items in the Market, it will call system app to accomplish the searching task: https://msdn.microsoft.com/en-us/library/windows/apps/hh394001(v=vs.105).aspx


    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.

    Monday, February 16, 2015 8:25 AM
  • Thanks!

    Is there any way to pull the results inside another panorama item or customize the results to display inside page?

    Monday, February 16, 2015 8:33 AM
  • Thanks!

    Is there any way to pull the results inside another panorama item or customize the results to display inside page?


    Hi Aiseduk,

    >>Is there any way to pull the results inside another panorama item or customize the results to display inside page?

    As far as I know, Microsoft does not provide a way to get a list of items from Store, maybe you could get some result from HttpRequest


    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.

    Tuesday, February 17, 2015 11:21 AM
  • The MarketplaceSearchTask can not be customized. You could theoretically pass the search query directly to the Web version of the Windows Store by sending a HTTPRequest with the following URL:

    http://www.windowsphone.com/en-us/store/search?q=your%20search%20query

    which for the text "facebook would result in

    http://www.windowsphone.com/en-us/store/search?q=facebook

    And parse the data out of the resulting web page. That would allow you to do a custom listing of the resulting information. The problem with this approach however is that as soon as Microsoft changes the structure of their Store Website your App will break and given that this is not an officially supported scenario there won't be any advance notice on this.

    • Marked as answer by Aiseduk Wednesday, February 18, 2015 6:30 AM
    Tuesday, February 17, 2015 12:00 PM
  • Thanks, Oliver. That answers my question.
    Wednesday, February 18, 2015 6:30 AM