Auto Refresh a Section

Hi,

I have a section A which contains Section B. As Per business requirement I have to Auto refresh(without any user action) only section B for every 30 mins.

I have written below code in a non generated html and included it in Section B - But the issue is its refreshing the whole harness.

Please let me know any way to resolve this.

>

Thanks in advance,

@KarthikGangisetty

Any Thoughts/Suggestions?

@KarthikGangisetty

You can leverage the advantage of OOTB exposed API “pega.u.d.refreshSection”.

Create a non-autogenrated section. Include javascript with setTimeout function and use Pega.u.d.refreshSection to called with certain interval time.

<script>

var id = window.setInterval(autorefreshMySection, 3000); //3 seconds

function autorefreshMySection()

{

pega.u.d.reloadSection(pega.u.d.getSectionByName("MySection","",""),"",'', false, true, '-1', false);

}

</script>

</head><body>

<pega:include name="MySection" type="Rule-HTML-Section"/>

</body>

</html>

Regards,

Tashika