The values for the columns is drawn from a data object ( database ).
Here is the code I am using:
- Code: Select all Expand view
REDEFINE XBROWSE oLBx8 ID 496 OF oFld:aDialogs[7]
// Attach the database
oLBx8:setoDBF( oInsp )
add oCol to oLBx8 header "Pass" data oInsp:svcpas SIZE 40 ALIGN CENTER EDITABLE
oCol:setcheck( )
add oCol to oLBx8 header "N/A" data oInsp:svcnap SIZE 40 ALIGN CENTER EDITABLE
oCol:setCheck( )
add oCol to oLBx8 header "Code" data oInsp:svccod SIZE 100 ALIGN LEFT
add oCol to oLBx8 header "Category" data oInsp:svccat SIZE 100 ALIGN LEFT
add oCol to oLBx8 Header "Item" data oInsp:svcla1 SIZE 80 ALIGN LEFT
add oCol to oLBx8 Header "Value" data oInsp:svcva1 SIZE 80 ALIGN LEFT EDITABLE
add oCol to oLBx8 Header "Item" data oInsp:svcla2 SIZE 80 ALIGN LEFT
add oCol to oLBx8 Header "Value" data oInsp:svcva2 SIZE 80 ALIGN LEFT EDITABLE
add oCol to oLBx8 Header "Detail" data oInsp:svcdes SIZE 400 ALIGN LEFT
In column 1 and 2 I have logical fields and want to simply click on them to change the value ( or touch them on a touch screen device ).
On columns 6 & 8 I have small fields where I want to insert a value. If I click on them I can type in data but when I leave the field the data disappears.
The other columns are not to be edited.
So what do I need to add to make this work ? Thanks