Hello,
I am following [this thread|problem-with-getting-table-element's-table-row] to get the value of a column up on button click (the button is in the same row).
Here is the code in wdDoModify ()
if (firstTime) { IWDButton button = (IWDButton) view.getElement("TableCellEditor"); button.mappingOfOnAction().addSourceMapping("ScheduledCourses", "row"); }
Here is the code in the button action()
public void onActionRegisterStudent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.gfc.hr.training.wdp.IPrivateCourseRegistrationCompView.IScheduledCoursesElement row ) { //@@begin onActionRegisterStudent(ServerEvent) wdContext.nodeScheduledCourses().setLeadSelection(row.index()); //@@end }
The context node for the table is "ScheduledCourses"
When I click the button, I get an exception....
com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Parameter ScheduledCourses not found