• dominoViewValuePicker - searching with one column

    By Fernando Levi 1 decade ago

    I am trying to set up a value picker, using dominoViewValuePicker with dojoType="extlib.dijit.PickerListSearch", in order to provide search capability. The view shows books, it has 2 columns, one sorted with the name of the book, the other has the book code (ISBN). The issue is that there is only one property to setup: labelColumn. So the picker shows the column to search, and returns the same value. What I am looking for is to have one column to show in the picker and search, and a second column to return. Is there a hidden property I am missing?

    • Tried this... no success

      By Fernando Levi 1 decade ago

      Looking at the simpleValuePicker in the Extlib demo db, it uses a formula for the value list:

       

      var a = new Array("A|a","B|b","C|c","D|d","E|e","F|f","G|g","H|h");
      
      return a;
      

      I tried the "|" separator in the  view's labelColumn, but it does not work.

    • Please send a NSF showing the issue

      By Philippe Riand 1 decade ago

      and the steps to reproduce. Thanks!

      • Working example

        By Fernando Levi 1 decade ago

        Please find a working example here:

        http://levigon.sytes.net/TestDVP.nsf/test_picker.xsp

         

      • Working example

        By Fernando Levi 1 decade ago

        Please find a working example here:

        http://levigon.sytes.net/TestDVP.nsf/test_picker.xsp

         

        • Can you please rather attach the NSF?

          By Philippe Riand 1 decade ago

          I in fact need to debug through it. Thanks!

      • Find the nsf attached

        By Fernando Levi 1 decade ago

         

        • Thank you for the DB

          By Philippe Riand 1 decade ago

          It makes it easier to debug the issue.

          I made a fix that searches the label when a label is provided. It also requires the label column to be a resortable, so in your case the title column should have the option 'Click on column header to sot, ascending'.

          The fix will be in the next build