cancel
Showing results for 
Search instead for 
Did you mean: 

doNavigate problem

Former Member
0 Kudos

Hi,

I have two iViews with some button on the first iView & a requires to show the BW reports in the bottom iView. Am using EPCF Navigation api for the same. But when i click the button the entire page is refreshed with the BW report. The code is as below

function consumerHandler(event){

if(event.dataObject == 'salesover'){

EPCM.doNavigate('ROLES://portal_content/unni_work/iView/SalesOverview1');

}

else {

EPCM.doNavigate('ROLES://portal_content/unni_work/iView/SalesByRepresntative');

}

}

Please advise

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Unni,

Try this, Change the Load properties of iViews to URL in property editor and then perform the action. If the load property of iview is URL iView will act as a separate browser and only iView will refresh not the whole page.

If this help then please award points.

--Deepak

Former Member
0 Kudos

Hi Deepak,

Thanks for the answer. I tried to change to load prop to URL for both the iViews.It did not work. Any other advise.

Thanks

Unni

Former Member
0 Kudos

Hi,

If u use EPCF Navigation directly in the first iView, it will refresh the whole page only. Try raising an event from the first iView and subscribe the event in the second iView. In the subscribe code, load the BW report.

Hope this helps.

Regards,

Harini S

Former Member
0 Kudos

Hi,

well i am doing like tht itself, please see the code below

<b>Subscribe Code</b>

EPCM.subscribeEvent("urn:com.sapportals.training.portal.EpcfProducer","ClickEvent", consumerHandler);

function consumerHandler(event){

//resultform.result.value = event.dataObject;

if(event.dataObject == 'salesover'){

EPCM.doNavigate('ROLES://portal_content/unni_work/iView/SalesOverview1');

}

else {

EPCM.doNavigate('ROLES://portal_content/unni_work/iView/SalesByRepresntative');

}

}

<b>Producer code</b>

function buttonClick(data) {

EPCM.raiseEvent ("urn:com.sapportals.training.portal.EpcfProducer", "ClickEvent", data);

}

Note: the iveiws am calling within doNavigate are URL iViews