Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 29 DEC 2006 11:27:27AM Andrew Wilson wrote:

OI 7.2.1 question: I want the end user to be able to hit the ENTER key on an edit table cell which will cause a value to be inserted. If I enter a value in the cell (including BACKSPACE) and hit the ENTER key, a POSCHANGED event is triggered. If I do not enter any value before I hit the ENTER key, it does not seem to fire any event.

The cell is getting focus programatically:

x=Set_Property(@Window:".TABLE_PAY","SELPOS",4:@FM:LPVM)

x=Set_Property(@Window:".TABLE_PAY","FOCUS",1)

Column 4 is the only column with the protected and skipped properties unchecked.

Any ideas how to get around this behavior?


At 30 DEC 2006 12:40PM Richard Hunt wrote:

In the OpenInsight Help "Programmers Reference Manual" ] "Chapter 4 Proprties" ] " "Focus property"… It does state that the sentence you are using… x=Set_Property(@Window:".TABLE_PAY","FOCUS",1) suppresses all events.

You might want to use this sentence instead… RESULT=SET_PROPERTY('SYSTEM','FOCUS',@WINDOW:'.TABLE_PAY') This sentence does not suppress events.

Hope this helps!


At 31 DEC 2006 06:00AM John Godfrey wrote:

It certainly seems to solve my Dynamic Dropdown Lists in Edit Tables conundrum.

Thanks very much Richard.


At 02 JAN 2007 02:08PM Andrew Wilson wrote:

Thanks, Richard, but that did not solve my problem. It did not change the behavior of the ENTER key once focus was on the table and cell. You must enter a character or backspace before the ENTER key is recognized. I would like it to act the same as a TAB as it does on other controls.


At 02 JAN 2007 02:10PM Andrew Wilson wrote:

Thanks, Richard, but that did not solve my problem. It did not change the behavior of the ENTER key once focus was on the table and cell. You must enter a character or backspace before the ENTER key is recognized. I would like it to act the same as a TAB as it does on other controls.


At 02 JAN 2007 02:27PM Andrew Wilson wrote:

My protected property was checked to prevent insertions. I guess that stops the ENTER key. Problem solved. Thanks for the help!

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/67c5ee8fbd7fc22a85257253005a6761.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1