cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to display action result data in Page using rules in SAP MDK?

madhav15
Participant
View Entire Topic
panushjain
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @madhav15 

Try to redraw the section in your rule after setting the value in line# 11 or you can redraw the control based on the requirement. You can refer to the below sample for redrawing.

Redraw Control

clientAPI.evaluateTargetPath("#Page:PageName/#Control:ControlName").redraw();

Redraw Section

let pageProxy = clientAPI.getPageProxy();
let sectionView = pageProxy.getControl('ControlName').getSection('SectionName');
sectionView.redraw();

Thank you.

madhav15
Participant
0 Kudos

Hi @panushjain,

We are setting value in 'testValue' in ClientData but values are not getting displayed. Please check the attached screenshots.

Thanks and Regards,

Madhav

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
Is the page referenced in the image the Main page? Is the rule running on the main page or another page?
madhav15
Participant
0 Kudos

Hi @bill_froelich,

Yes Main is referring to Main Page. We are performing this operation on Main page itself.

Thanks and Regards,

Madhav