cancel
Showing results for 
Search instead for 
Did you mean: 

Focus

Former Member
0 Kudos

Hi,

I have 4 entities in my table view.

I want to put a focus(cursor position) on 3rd entity.

How it is possible? Can any body explain this.

I knew small clue about this i.e. set_focus method will help for this.

But i want know about set_focus method belongs to which class. and whether i need to write a code in set_focus method or i want to call set_focus method in my code of do_prepare_output method.

Regards,

Suresh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi suresh,


I no about set_focus method but we can achieve this task using following code.

In DO_PREPARE_OUTPUT() write this code

lv_index = 3.

me->typed_context-><context_node_name>->collection_wrapper->mark( lv_index ).

This code will select the row from the table view having index 3.