Refresh QLI panel on Save of Quote

We are trying to refresh QLI panel from Quote save. We have custom record.js file in Quote entity, on certain action we want render QLI panel. 

we used below :

this.render(); 

this._renderHTML();

But still no luck.

Is there any way to refresh QLI panel from Quote record view? Please suggest.

  • Hi Aakanksha Bhujbal 

    What do you exactly want to accomplish?

    Can you kindly describe in details the expected behavior?

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • On edit view of quote record, on change of drop-down value we want to re-render QLI panel. We have on change event in record.js(extended) file in Quotes entity. We tried render function but there is no change to QLI panel. Is there any way to re-render QLI panel?

  • Which dropdown to be changed? Which information does it contain? Why do you need to render QLI panel?

    I would like to better understand the scenario so I can provide some useful insight.

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • We have custom drop-down in quote entity, on change of drop-down we are making entry in QLI entity. This works fine. We used beans to make entry in QLI along with bundle. If we manually refresh page, then we can see QLI linked to Quote, but we don't want to refresh complete page. We only want to refresh QLI panel. Is there any way to refresh QLI panel?

  • In a similar usecase I used the following code to refresh the subpanels afer the bean was saved:

    //refresh all subpanels
    _.each(this.model._relatedCollections, function(collection){
    collection.fetch({relate: true});
    });

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • HI Harald Kuske

    Thank you for response, but this refresh subpanels and not QLI worksheet panel. I want to refresh QLI worksheet panel.

  • Maybe my answer in this thread helps you.

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • That will work for single line in QLI panel. And more in that, js file at ProductBundle location. In my case, we have our code working from Quote entities record.js file. So in record.js file, model will point to Quote record. How can we change model value from Quote's record.js.

  • Actually you do not need to refresh the entire QLI panel, only the created/updated QLI.

    Indeed we apply this very strategy whenever a new QLI is automatically added or an existing is automaticaly updated as well.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Hi Aakanksha Bhujbal,

    As per Harald's response, please check current context object in your quote screen - console.log(this.context) and find out the QLI collection. Once found, call fetch method on collection for eg: qliCollection.fetch() to reload the QLI panel.

1 2