Notes |
|
|
Due the some logic, when a FormItem has an optionDataSource, SmartClient makes a request to get the possible values.
More info at: http://www.smartclient.com/docs/8.1/a/b/c/go.html#attr..FormItem.fetchMissingValues [^]
In the case of an editable line in a grid, SmartClient makes an item for each column. The product column is disabled in this case, but a request without filters was made to get the possible values (check the
request-product-selector.png file).
The fix is to set the fetchMissingValues at FormItem level to avoid this problem in all items.
After making the change no request is made to the product selector datasource (no-request-product-selector.png) |
|
|
(0047880)
|
hgbot
|
2012-04-23 14:29
|
|
Repository: erp/devel/pi
Changeset: 1853df5df43d6d5efc8ab9fc8c62dfe416ca9acb
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Mon Apr 23 14:28:13 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1853df5df43d6d5efc8ab9fc8c62dfe416ca9acb [^]
Fixes issue 20330: Set the fetchMissingValues flag to false at FormItem level
- If fetchMissingValues is set to true, SmartClient makes a request on init() or
setValue() when the FormItem has an optionDataSource
---
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
---
|
|
|
|
|
|
|
Code reviewed and verified on pi@c1950986e5af |
|