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

Issue in SAP MDK Data Table Control – setValue() Not Working

CRVMANISH
Contributor
0 Likes
217

Hello Experts,

I am working on the SAP MDK Data Table control, where I need to set the value of one column based on the user-entered value in another column. The edit mode is set to Inline.

On the Save button, I have added the following rule to set the status:

let currentCell = context.getPageProxy().getControl('SectionedTable0').getSection('SectionDataTable0').getCell(0, 0);
const newValue = "Accepted";
currentCell.setValue(newValue);


I have referred to the following blog, but this approach doesn’t seem to work. I would appreciate any help or suggestions on this issue.

https://community.sap.com/t5/technology-blog-posts-by-sap/what-s-new-in-mobile-development-kit-clien...

 

I also tried the below code snippet, but it did not work either:

let currentCell = context.getControl('SectionedTable0').getSection('SectionDataTable0').getCell(0, 0);
const newValue = "My Product";
currentCell.setValue(newValue);

 


Thank you in advance for your help!
@bill_froelich 
@Jitendra_Kansal78 

Accepted Solutions (0)

Answers (0)