forms - Calling methods on datasource in displayoption lags screen and prevents records from showing -
i have overridden displayoption method on forms datasource display lines in red don't have enough stock (based on stock position & released production orders) think calling several methods on datasource (which used display fields on form) has such impact on drawing of form lines red data isn't shown:
public void displayoption(common _record, formrowdisplayoption _options) { prodbom _prodbomlocal = _record; if (this.drs_getlineavailable(_prodbomlocal) < 0) { _options.backcolor(8421631); //light red } } for instance when there lot of lines available stock, released production quantity, etc needs queried 1 line shown instead of e.g. 30 lines
i don't know do, there way can pre-query data?
kind regards,
mike
have tried calling super()?
any computation in displayoption should fast, or form suck.
do not use color code in decimal, @ least use hex 0x8080ff (bgr code).
Comments
Post a Comment