Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

How to set focus to a new row entry's textfield in sapui5?

$
0
0

Hello UI5 experts,

 

Please tell me how to set focus to a textfield of a new row?

In my application i am adding a new row on change event  of previous row's last column textfield. Now i want focus to get set on new row's textfield so that user don't have to click everytime on textfield in order to give some input.

 

How to achieve this?

Problem is i cannot use sap.ui.getCore().byId('').setFocus()  function because  textfield IDs get generated dynamically depending upon row and column of table.

 

So now how do i do this??

 

Thank you,

Best Regards,

Chetna

 

Title corrected by: Chandrashekhar Mahajan


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>