cancel
Showing results for 
Search instead for 
Did you mean: 

Onclick event in input field

0 Kudos

I am using sap.m.input field in which the text is already provided , I need to click on that text and get a dialog box pop up. So can anybody help me regarding this that what code should I write to get these results??

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos
0 Kudos

Hi Dennis ,

Can u explain the code , that what is 'click' and 'show dialog' , are they the ids??

saivellanki
Active Contributor
0 Kudos

Hi Tanya,

They are not the id's.

1. "click" is the event type: JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.core.Control

2. console.log("show dialog"😞 It is just a string text, where on click of the input base (which has some value) the text is shown in console. Here, you have to create the dialog control for your requirement.


Regards,

Sai Vellanki.

0 Kudos

Okay thanks Sai, but Do I need to write the code for Dialog inside this function only or I have it call it from the function??

saivellanki
Active Contributor
0 Kudos

Hi Tanya,

It is your wish, you can do it either way.

Regards,

Sai Vellanki.

former_member182862
Active Contributor
0 Kudos

Sorry for not explaining much. Please let us know if you still have questions.

@Sai, Thanks

Answers (0)