cancel
Showing results for 
Search instead for 
Did you mean: 

how to get field name on enter?

Former Member
0 Kudos

Hi

Is there a way to get field name on an action i have connected to this input field (like GET CURSOR FIELD....)?

I have on my MAIN view 3 input fields city1, city2, city3 i want to connect all of the to the same event and in the event i calculate something per field i presen enter on - is there a way to get the field name?

thanks Ami

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Ami,

In your action handler method, add standard parameter ID of type STRING and use this parameter to make the determination. (Alternatively, you can also retrieve the ID from the WDEVENT parameter). Parameter ID is the ID of the UI element which triggered the action.

Cheers,
Amy

Former Member
0 Kudos

hi

can you please explain me how can i do that?

thanks

Ami

0 Kudos

Hi,

In your onenter method you have a parameter 'WDEVENT'. If you put a breakpoint in this method and analize this(WDEVENT), you can see the ID of the UI element which triggered the action.

Best Regards

Former Member
0 Kudos

thanks for your reply, but how cani read this value in the program (not in debug).

Thanks Ami

Answers (0)