on 01-09-2013 7:21 AM
Hello Gurus,
My scenario is when i clicked a any element in table that should be editable.
Its working with lead select but i want it with when i clicked on perticutar element only that element should get editable.
Can anyone tell me how i should get the that which element i had clicked ?
Any method to get the clicked element?
Thanks & Regards,
Mangesh Sonawane
Hi Mangesh,
What you need is an event to trigger which you can then handle to toggle your table cell from readOnly to editable, however there is no onClick event for InputFields (or other UI elements) so you cannot capture the user simply placing their cursor in the table cell.
InputField has an onEnter event. You could toggle its readOnly property when the user places their cursor in a table cell and hits the Enter key.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mangesh,
In Web Dynpro we have fixed set of event handler which you can you found in the properties of any UI element in the view. Simillarly chek in the input field of your table.
There is no event handler for on mouse click till now, so I dont think this is possible.
Regards,
Monishankar Chatterjee
Hi,
As Web Dynpro Application runs in browser, there are some restrictions. Unlike double click in R/3 there is no double click event in WDA.
You need to use LinkToAction UI and use onClick event to achieve the same.
For making the single cell editable check my article: How to make selected Row of table editable in Web Dynpro ABAP
Instead of lead selection do the same in onClick of Link to Action UI.
Hope this helps u.,
Regards,
Kiran
Hi Mangesh,
Each TableColumn in a Table contains its own Cell Editor. The events which are available for you to program against depend on what UI element you choose for the Cell Editor. For example...
But no UI element has an onClick event so you will not be able to trigger an event when the user simply clicks on a cell of the Table. You'll need to find an alternative approach (such as ones suggested in this discussion) that meets your needs since what you really want is not currently possible.
Cheers,
Amy
Hello gurus,
Thanks for all your valuable replies.
So i assume that it is not possible which i asked.
So created based on lead select http://scn.sap.com/docs/DOC-34955
Thanks & regards,
Mangesh Sonawane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you re-using the ALV component?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.