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: 

double click from table control?

former_member537489
Participant
0 Kudos

Dear experts,

I need to be able to double click in a line of a table control. Is this possible, without having to define an extra field 'SEL' and selecting that? Is the cursor position stored somewhere?

thank you in advance,

Roxani

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi,

may be you can try this enable respond to double click and get the cursor position where the line is clicked.

for getting the cursor you can use the syntax <b>get cursor</b>

regards

vijay

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos

Hi,

may be you can try this enable respond to double click and get the cursor position where the line is clicked.

for getting the cursor you can use the syntax <b>get cursor</b>

regards

vijay

Former Member
0 Kudos

hai roxani,

you can use get cursor position instead of selecting extra field.

To retrieve information on the cursor position during an interactive event, use the GET CURSOR statement to refer to either the field or the line.

Syntax

GET CURSOR FIELD <f> [VALUE <val>] .

try it out.

regards,

praba.

0 Kudos

Thank you for your replies.

Does the "cursor field" statement work for table controls as well as in lists?

0 Kudos

Hi Roxani,

A simple get cursor wouldn't suffice in your case.

I think you need the line additon.

Get cursor <fieldname> line <line num>.

Regards,

Ravi

0 Kudos

Hi Roxani,

yes, it will work.

you need to use like this

<b>Get cursor fld line lineno.</b>

Regards

vijay

Former Member
0 Kudos

Hi

Yes it is possible to double click on a line of a table control,and the cursor position is not stored anywhere.Besically this thing done when you want to generate one action by clicking on the field of a table control.

I hope this will help you to solve the problem.

Thanks

Mrutyunjaya Tripathy

Former Member
0 Kudos

Hai roxani,

there are two get cursor commands for field and line.

GET CURSOR FIELD <f> [OFFSET <o>] [LINE <n>] [VALUE <val>] [LENGTH <l>].

Transfers the name of the field on which the cursor is positioned during a user action into the variable <f>.

GET CURSOR LINE <n> [OFFSET <o>] [VALUE <val>] [LENGTH <l>].

Transfers the number of the line on which the cursor is positioned during a user action into the variable <n>.

regards,

praba.