cancel
Showing results for 
Search instead for 
Did you mean: 

get selected view element

Former Member
0 Kudos

Hi @all,

how can I get the element-name from an view-element which is currently selected/cursor was set??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

define currently selected please.

If you mean action/selection then

you have an action method, the WDEVENT parameter has the info required.

ID or element.

I dont believe the current cursor position is return to user by framework anywhere.

cheers

Phil

Former Member
0 Kudos

With currently selected I mean an Input-Field where the cursor flashes and I can do an input...

I want to know on which Input-Field the cursor is...

thomas_szcs
Active Contributor
0 Kudos

Hi Stefan,

That's not possible for many reasons. I was wondering, if you could describe your scenario a bit please? Perhaps, there's an alternate solution.

Best regards,

Thomas

Former Member
0 Kudos

Hi Thomas,

here a little discription of my problem...

I have a WebDynpro application for my mobile barcode scanner. The man in the storage could do his entry's step by step. In normal use, I know where the cursor is, because it's saved in a variable an I set the cursor before in the current field. The problem is at the WebDynpro are some input fields, which the cursor is never set, but these fields could also be edited if it's necessary...so if the man in the storage set the cursor to one of these fields I didn't know where the cursor currently is, but i nedd this information at the time when the method WDDOBEFOREACTION is called, to check some entry's of this field (this is needed because WebDynpro for ABAP didn't allow to work with function keys and we made a own solution for this)!

thomas_szcs
Active Contributor
0 Kudos

Hi Stefan,

You could use the context change log to determine which fields have been changed by a user.

Best regards,

Thomas

Former Member
0 Kudos

Hi,

here's the link to the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/f95e42ff93c153e10000000a1550b0/frameset.htm">context change log documentation</a> which Thomas suggested.

Regards, Heidi

Former Member
0 Kudos

Hi,

the Context-Change-Log helps me a lot! Thank you!

Answers (0)