locked
Button working sometimes and sometimes not RRS feed

  • Question

  • I am using CRM 2013 and there is a + button under Opportunities to add products.When we click on +, a custom page opens up with all the products and their prices. At the bottom of the custom page is the add button which will add the required products under the opportunity. When we click on save, the opportunity is now saved with the product line.

    The problem here is that when we click on the add button on the custom page, sometimes the products do not get added to the opportunity however the window is closed and we are back to the opportunity form. To add we again have to click on the + button so that the custom page opens up.select the products and click add.Sometimes it works by adding once, sometimes thrice,sometimes 4 times, 7 times etc to get the products added.There is no problem with the code as the functionality is working but why this random behavior.It should add on a single click everytime.

    The issue occurs in every browser like IE,Firefox and Chrome.The custom page is a html page called productselector and it uses jason to post the data in Opportunity form.Please advise

    Friday, February 27, 2015 3:52 PM

Answers

  • Hi Ahmad,

    Thanks for the reply. The issue has been solved. The problem was with the refresh method which you partially suggested. The method was there but at the wrong place. I placed it below the loop so that the screen refresh does not take much time,hence the data is getting fetched on time and there is no delay. Also there was some corrections made in the code in calculating the no of rows.

    • Marked as answer by Bachchan11 Tuesday, March 24, 2015 9:30 AM
    Tuesday, March 24, 2015 9:30 AM

All replies

  • - Does your custom page makes sure that it adds new opportunity product?

    - Does your custom page call refresh method on the opportunity product gird while closing?

    Friday, February 27, 2015 9:14 PM
  • Hi Ahmad,

    Thanks for the reply. The issue has been solved. The problem was with the refresh method which you partially suggested. The method was there but at the wrong place. I placed it below the loop so that the screen refresh does not take much time,hence the data is getting fetched on time and there is no delay. Also there was some corrections made in the code in calculating the no of rows.

    • Marked as answer by Bachchan11 Tuesday, March 24, 2015 9:30 AM
    Tuesday, March 24, 2015 9:30 AM