Refresh subpanel values through a logic hook?

Hello

I have a relationship hook which updates data in 2 subpanels and a regular field. 

It works, well but to see the changes I need to manually reload the page. I know that logic hooks deal with back-end modifications, but is there a way to invoke some kind of a method which would force a reload of a given subpanel's values? Worst case, may be a reload of the whole page?

Thank you

Parents
  • Hi Robert Sinclair 

    Let me make sure if I got the point.

    You update the main record (Record View) and this update (save) triggers a relationship logic hook which updates a specific field in records of 2 subpanels?

    If my understanding is right so you can create a custom RecordView for the module and override the method "_saveModel" in order to, after saving the record, refresh the entire page accordingly.

    Regards

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

    Thank you for the reply, I'm in CE, so I'm not sure if I have a RecordView. I did a bit more research and it looks like I need to implement some custom JS that will "listen" to a refresh of a subpanel and when it happens it will automatically refresh more subpanels, I just can't find any working examples for CE anywhere

Reply
  • Hi André

    Thank you for the reply, I'm in CE, so I'm not sure if I have a RecordView. I did a bit more research and it looks like I need to implement some custom JS that will "listen" to a refresh of a subpanel and when it happens it will automatically refresh more subpanels, I just can't find any working examples for CE anywhere

Children
No Data