Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Bind an input field to a slider

Hi,

I have table with in each row an input field and a slider (and much more)...

I want to change the value of the input field by changing the slider (liveChange).

I get the value from the liveChange event but I'm able to get the row.

Here is my code:

<ColumnListItem>

  <cells>

  <ObjectIdentifier title="{Description}" />

  <Input value="{Placeholder}" />

  <Slider

  value="50"

  width="100%"

  liveChange="onChangeSlider"

  change="onChangedSlider" />

  </cells>

  </ColumnListItem>

onChangeSlider: function(evt) {

  var value = evt.getSource().getValue();

  console.log('value has been changed: ' + value);

  var currentRow = $(evt).closest('tr');

  console.log(currentRow.id); // I'm just getting "undefined"

  },

Thanks in advance

Matt

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question