1. Arthur Foux
  2. PowerBuilder
  3. Monday, 16 September 2019

How do I enter a key value (such as an employee number) in a column of the DataWindow object, to retrieve that record. Thank You.

Chris Pollach Accepted Answer Pending Moderation
-1
Votes
Undo

Hi Arthur;

1) Make sure that the DWO you are using for data entry has the data entry retrieval column's "Tab Order" > 0 (unprotected).

2) Using the ItemChanged event on the DW or another control like a CommandButton (menu, etc), use a GetItemXxxx() command to access the DW's column data that was just entered.

3) From Step #2, now use the Retrieve() command passing in the new key value.

Regards ... Chris

Comment
Thank You Chris.
  1. Arthur Foux
  2. Monday, 16 September 2019
There are no comments made yet.
  1. Monday, 16 September 2019
  2. PowerBuilder
  3. # 1
Michael Kramer Accepted Answer Pending Moderation
0
Votes
Undo

Sounds like query mode. F1-Help has examples of using DataWindow query mode 

HTH/Michael 

Comment
Thank You Michael.
  1. Arthur Foux
  2. Monday, 16 September 2019
There are no comments made yet.
  1. Monday, 16 September 2019
  2. PowerBuilder
  3. # 2
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.