Hello all,
I am attempting to create a modification to the WHSReleaseToWarehouse form where the grid control changes the record to a color based on a condition. I will be overriding the displayOption method in the datasource of the form.
The condition I was hoping to use is based on a display method. As I follow through the pattern for changing grid record colors I found that display method fields does not work.
For instance the below code errors out in the compiler. With the error "The table WHSInventTransSumDim does not contain the field displayQtyLeftToReleaseDelta." This is because the WHSInventTrnasSumDim is actually datasource named WHSInventTransSumDimSO and the field displayQtyLeftToReleaseDelta is the display method.
Can anyone recommend a way to use the display method in my condition?
Do I need to go down the route of creating a temp table?
public void displayOption(Common _record, FormRowDisplayOption _options) { WHSInventTransSumDim whsInventTransSumDimLocal; whsInventTransSumDimLocal = _record; if (whsInventTransSumDimLocal.displayQtyLeftToReleaseDelta >= 1) { _options.backColor(WinAPI::RGB2int(255,255,0));//yellow } super(_record, _options); }
*This post is locked for comments