You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Edit table record is not showing up the original value for Single Select field.

Received Response
41
Views
6
Comments

Hello experts,

I've a page showing up table records and editable, for this one field below I wanted to have a list of values to be chosen when editing, but once i got into edit mode, the current value 'P2' disapears, any idea where it is wrong for below template code of this field?


<template slot="Destination">

          <oj-bind-if test='[[$current.mode === "navigation"]]'>

            <oj-bind-text value="[[ $current.data]]">

            </oj-bind-text>

          </oj-bind-if>

          <oj-bind-if test='[[$current.mode === "edit"]]'>

            <oj-select-single data="[[ $variables.destinationADP ]]"

              :id="[['oj-select-single  -1829646926-1-' + $current.key]]"

                item-text="destination" value="{{ $variables.currentRowBuffer.destination}}">

            </oj-select-single>

          </oj-bind-if>

        </template>


$variables.currentRowBuffer is assigned with current row value on before row edit event.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!