Ask a questionAsk a question
 

Answer2 Product Query WP in the same Page

  • Friday, November 06, 2009 5:44 PMPedro Mateus Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Does Product Query WP support another PQWP in the same page/wpz ? I have one displaying products and when i add a second one, they stop showing...
    http://pontodepartilha.blogspot.com

Answers

  • Monday, November 09, 2009 11:13 AMneelima rayudu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Pedro,

    Yes, we can show 2 PQWP in same page.
    For that we have to change the "ThereIsOnlyOneProductProvider" method inside ProductQuery webpart in Extensibility kit.

    We have to make "return productProviderInstanceCount == 2" instead of "productProviderInstanceCount == 1".

    Also, make sure that we have Webpartmanager on the Sharepoint page, because the method loops thru the webparts pf the webpartmanager.

    Hope this helps.
    • Marked As Answer byPedro Mateus Tuesday, November 10, 2009 4:13 PM
    •  

All Replies

  • Monday, November 09, 2009 11:13 AMneelima rayudu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Pedro,

    Yes, we can show 2 PQWP in same page.
    For that we have to change the "ThereIsOnlyOneProductProvider" method inside ProductQuery webpart in Extensibility kit.

    We have to make "return productProviderInstanceCount == 2" instead of "productProviderInstanceCount == 1".

    Also, make sure that we have Webpartmanager on the Sharepoint page, because the method loops thru the webparts pf the webpartmanager.

    Hope this helps.
    • Marked As Answer byPedro Mateus Tuesday, November 10, 2009 4:13 PM
    •  
  • Tuesday, November 10, 2009 4:13 PMPedro Mateus Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I will try other approaches if possible, but thks :)

    PS: changing that will not break anything else right? I just have to make sure there are 2 PQWP in that page?


    http://pontodepartilha.blogspot.com