• More questions

    By Michael Strong 1 decade ago

    Sorry to bother again. First of all it works great but i have some more questions:

     

    1. How can I customize the Error Message Sorry, an error occurred?

    2. How can Customize the the hreflinkTitle? It now ony gives the form name

    3. How can i get The current row number

    4. I can i count the Search results?

    Thank  you and Kind regards

     

    Michael

    • answers in bold

      By F. Kranenburg 1 decade ago

      1. How can I customize the Error Message Sorry, an error occurred?

      use the 'errorMessage' dojo attribute from the dojo grid control (see dojo toolkit how it works)

      2. How can Customize the the hreflinkTitle? It now ony gives the form name

      do not use the build-in field names, use @formula code for your own computed values inside the 'columnFormula' property. This is runtime evaluated on every found document and may return a html string in whatever format you like

      3. How can i get The current row number

      I don't know, but why you need this? you can always make a custom dojo grid function to display row numbers. Another option is here http://stackoverflow.com/questions/16538012/dojo-datagrid-get-the-row-number

      4. I can i count the Search results?

      Yes, you can call the java component to get the count of results. Use for example :

      sessionScope.get("searchResultSet").getAllSearchResultDocs().size();

      • One more question

        By Michael Strong 1 decade ago

        Hello

         

        1 and 2 worked perfectly Number two was a bit tricky here is how i did it:

         

        In the Column Formular I had to put 

        @Text("")+@GetField("Title")+@Text("") it seems that only @Functions work

         

        Number 3 still no Luck

         

        Number 4  sessionScope.get("searchResultSet").getAllSearchResultDocs().size();allways returns 0

         

        Maybe you have an Idea Nr three is not that important. 

        Kind regards

         

        Michael

        • One other Observation

          By Michael Strong 1 decade ago

          I found out through extensive testing that sometime it does not find any documents. If you try it two or three times then it works. ANy ideas?

           

           

          Kind regards

           

          Michael