Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger event when select one line of table

Former Member
0 Kudos
247

Hi Experts,

i created a table by wizard, now i want to functionality that when the user selects one line of the table, it should trigger some event, but i don't find out any option for implementing this.

So anyone could help me on this?

Thanks,

Lynn Liu

6 REPLIES 6

PedroGuarita
Active Contributor
0 Kudos
119

You have to activate the select event (F2) in the Interface Status and then catch it in the "USER-COMMAND" section.

0 Kudos
119

Hi,

I tried to press F2 on the screen after i select one line, and i got the system command code is PICK. i think it's what i want.

But could you tell me, how to active the F2 by coding without manual press?

waiting for your reply,

Lynn Liu

0 Kudos
119

To activate you just need to associate a user command to F2. Then it should be activated by double clicking the record, marking the record will not trigger any event in table control. The in the user_command module, catch the respective command (pick in your case) and use GET CURSOR LINE to see what record was selected.

kesavadas_thekkillath
Active Contributor
0 Kudos
119

One idea is you have to place a button in first column and remove the default selection box from the table control.

Now when a button is clicked the user command can be captured.

0 Kudos
119

@ kesav I dont the ur point.. Its impossible to add abutton such way

0 Kudos
119

I think you should add button and its possible.

Nabheet