guillermo88
Programmer
Hi,
I have table transactions. This table has a column status.
Status value can 'V','X' or ' '
In the grid I want to be able to display 'VOID' or 'CANCELLED' depending on the value of status.
I tried to put this code in the init event of the column
if transactions->status = 'V'
this.value = 'VOID'
else
if transactions->status = 'X'
this.value = 'CANCELLED'
endif
endif
But It's not working.
And also I want to change the color of the column to red/white when status = 'V'
I have table transactions. This table has a column status.
Status value can 'V','X' or ' '
In the grid I want to be able to display 'VOID' or 'CANCELLED' depending on the value of status.
I tried to put this code in the init event of the column
if transactions->status = 'V'
this.value = 'VOID'
else
if transactions->status = 'X'
this.value = 'CANCELLED'
endif
endif
But It's not working.
And also I want to change the color of the column to red/white when status = 'V'