I'm sorry if my question was understood wrongly.
when I change my date in the main page, I want to refresh both the panels in my page with the changed date selection . This is my objective .
I am passing the changed date from the main page to panel1 and panel2 pages via their respective JSON model config page (datechange - variable) . From the main page controller I
call
oConfig.setProperty("panel1_config_page with the changed date) --> Panel 1 JSON model file
oConfig.setProperty("panel2_config_page with the changed date) --> Panel 2 JSON Model file
Next
I want to refresh both Panel 1 and Panel 2 page so that it reads the JSON model file again and re initialise the content with the changed date from the Main page
So on the main page handlechangedate : function () {
im calling
sap.ui.controller("namespace of panel1"). panel1. initMethod () .
this will re initialise the panel 1 page with the date passed
sap.ui.controller("namespace of panel2").panel2.initMethod()
this will re initialise the panel2 page with the date passed.
Now my problem is inside the
panel1.initMethod() {
I have a reference of panel 1 view page as
this.getView.setBusy -- This should refer to Panel 1 view page, but since the method is fired from Main page controller , the reference to the panel1 view page is lost .
I want to know , in this instance , how do I refer to panel1 view page .
I have other logic referencing the panel1 view page which is also throwing errors.
so I need to know , when the child controller method (panel 1 controller ) is called from parent controller (main controller) , inside the child controller method , how to I refer its own view --> panel1 view.
Thanks