[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

New row on tab out with focus in datawindow

Posted on 2011-02-21
1
Medium Priority
?
650 Views
Last Modified: 2013-12-26
Hi

I have a multiple master-detail window
details are tabular
in detail I want in tab out (end of editable columns) to add a new row and keep the focus in the data window to continue editing

Thanks
0
Comment
Question by:basilhs_s
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
lbushby earned 2000 total points
ID: 34953101
In your tabular datawindow control map an event to 'pbm_dwntabout' e.g. call it 'ue_dwntabout', then all you have to do is code the event roughly as follows:

long      ll_row
long      ll_rowcount

ll_row = this.GetRow()
ll_rowcount = this.RowCount()

IF ll_row > 0 AND ll_row = ll_rowcount THEN
      // we are on the last row so insert a new one and move to it
      ll_row = this.InsertRow(0)
      this.SetRow(ll_Row)
            
      // have to post a setfocus to make sure we stay in the control
      this.function POST SetFocus()
END IF
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question