cancel
Showing results for 
Search instead for 
Did you mean: 

insertrow on tab control from Menu

Former Member
0 Kudos

Hi All,

This is Vignesh, I have a question & it's little urgent. I am posting my question here for the first time.

I have a window with 5 tabs. Each tab has 2 datawindows. I have insert, delete & Save options are in the menu bar which is common for all the tabs. I have attached the Menu in this window.

Now When I am trying to insert a new row on Tab 2-> Datawindow1. from Menubar(When I click insert option)

How PB identifies which dataindow I am in rightrow? Please share me the sample code if possible...

Thanks in Advance,

Vignesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It's up to you to identify the correct datawindow.

There are many possible ways. You could look at PFC framework how it's manage this: There is an instance variable in the window that holds a reference to the current datawindow. The variable is set in the getfocus event. So you always know what datawindow has or had focus last time.