Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

zk webui advanced search issue

Developers
bma99
2014-01-29
2014-01-31
  • bma99
    bma99
    2014-01-29

    Hi all,
    I faced an issue with advanced seach in zkwebui. let's say in a sales order, if I try to use advanced search for docstatus='DR' OR docstatus='IP', blank in the query when using docstatus the second time. also happen to doctype.
    much appreciated for your input.

     
  • ADAXA
    ADAXA
    2014-01-29

    Hi
    We saw and fixed same problem.
    Will ask for the fix to be provided.
    regards

     
  • bma99
    bma99
    2014-01-30

    thank you. happy to see your fix.

     
  • ADAXA
    ADAXA
    2014-01-31

    Hi,

    I'm not sure if the error you're experiencing is the same.

    Here's our patch, anyway.

    diff -r 070245bc49ac -r 4aef442a8e10 zkwebui/src/org/adempiere/webui/window/FindWindow.java
    --- a/zkwebui/src/org/adempiere/webui/window/FindWindow.java    Fri Dec 20 17:36:02 2013 +1100
    +++ b/zkwebui/src/org/adempiere/webui/window/FindWindow.java    Sat Jan 11 17:54:26 2014 +0530
    @@ -54,6 +54,7 @@
     import org.adempiere.webui.editor.WEditor;
     import org.adempiere.webui.editor.WNumberEditor;
     import org.adempiere.webui.editor.WStringEditor;
    +import org.adempiere.webui.editor.WTableDirEditor;
     import org.adempiere.webui.editor.WebEditorFactory;
     import org.adempiere.webui.event.ValueChangeEvent;
     import org.adempiere.webui.event.ValueChangeListener;
    @@ -1464,6 +1465,11 @@
             editor.setVisible(enabled);
             editor.dynamicDisplay();
             //
    +        
    +        if (editor instanceof WTableDirEditor && field.isReadOnly())
    +        {
    +           ((WTableDirEditor)editor).actionRefresh();
    +        }
             return editor.getComponent();
    
         }   //  getTableCellEditorComponent
    

    Regards,

    Paul Bowden

     
    Last edit: ADAXA 2014-01-31
  • bma99
    bma99
    2014-01-31

    Hi Paul,
    you are awesome! This works for me.

    Regards,
    bma