Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How do i get current Data from Element created with oj-bind-for-each?

User_INPR6Oct 21 2021

Hey there,
so i created an oj-bind-for-each with a div with an oj-bind-text inside. I added a eventlistener to the div. On Click it should return me the current value of the oj-bind-text.

<oj-bind-for-each data="{{baudeliste}}">
        <template>
        <div  onclick="openListener()">
           <div><oj-bind-text value="[[$current.data.Gebaeud]]"></oj-bind-text></div> 
        </div>
    </template>
    </oj-bind-for-each>

How do I get the value that was just clicked?
Thank you

This post has been answered by John JB Brock-Oracle on Oct 22 2021
Jump to Answer

Comments

Post Details

Added on Oct 21 2021
2 comments
266 views