IDEMPIERE-1792 Info Window - Default Logic missing / peer review

This commit is contained in:
Carlos Ruiz 2014-06-04 18:08:48 -05:00
parent ae2f5b0da0
commit 366f642f63
3 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,11 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Jun 4, 2014 6:03:55 PM COT
-- IDEMPIERE-1792 Info Window - Default Logic missing
UPDATE AD_Field SET DisplayLogic='@IsQueryCriteria@=Y',Updated=TO_DATE('2014-06-04 18:03:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203048
;
SELECT register_migration_script('201406041804_IDEMPIERE-1792.sql') FROM dual
;

View File

@ -0,0 +1,8 @@
-- Jun 4, 2014 6:03:55 PM COT
-- IDEMPIERE-1792 Info Window - Default Logic missing
UPDATE AD_Field SET DisplayLogic='@IsQueryCriteria@=Y',Updated=TO_TIMESTAMP('2014-06-04 18:03:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203048
;
SELECT register_migration_script('201406041804_IDEMPIERE-1792.sql') FROM dual
;

View File

@ -1005,9 +1005,11 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
fieldEditor.addEventListener(Events.ON_OK, this);
if (! Util.isEmpty(mField.getVO().DefaultValue, true)) {
// set default value
mField.addPropertyChangeListener(editor);
mField.setValue(mField.getDefault(), true);
}
} // addSelectionColumn
protected void addSearchParameter(Label label, Component fieldEditor) {