locked
How to get the value in Quick Find box from ISV.Config RRS feed

  • Question

  • I have one more small requirement. Can you let me know how to get the value entered in the Quick Find box from ISV.Config file. I want to place a button on grid tool bar and get the value entered in Quick Find box.

    Many thanks

    Tuesday, April 13, 2010 11:46 AM

Answers

  • Yes, once you get the control you can access its properties. If you do not check that you have the control then it will throw an exception even with document.all.findCriteria.value.

    var text = document.all.getElementById('findCriteria');

     if(text != null)

    {

         alert(text.value);

    }

     

     


    MSCRM Bing'd - http://bingsoft.wordpress.com
    Tuesday, April 20, 2010 1:04 PM
    Moderator

All replies

  • var text = document.all.getElementById('findCriteria');
    MSCRM Bing'd - http://bingsoft.wordpress.com
    Tuesday, April 13, 2010 11:51 AM
    Moderator
  • This doesn't seem to be working.
    Tuesday, April 20, 2010 12:52 PM
  • Minor correction 

    var text = document.all.findCriteria.value;

    Tuesday, April 20, 2010 12:58 PM
  • Yes, once you get the control you can access its properties. If you do not check that you have the control then it will throw an exception even with document.all.findCriteria.value.

    var text = document.all.getElementById('findCriteria');

     if(text != null)

    {

         alert(text.value);

    }

     

     


    MSCRM Bing'd - http://bingsoft.wordpress.com
    Tuesday, April 20, 2010 1:04 PM
    Moderator
  • Yep, thats much complete.
    Tuesday, April 20, 2010 1:06 PM