Register  Login  
  February 5, 2012  
Search_Blog Minimize
Print  

Blog_Archive Minimize
Print  

Blog    
View_Blog Minimize
Mar 18

Written by: host
Saturday, March 18, 2006 10:41:47 PM 

I got a feature request for SQLGridSelectedView to allow multi-answers so the user could use the T-SQL "In" feature.  Specifically, the user, Paul Bennett, wanted a way to allow a copy and paste from Excel to be handled.

He wanted to pass in a column of Excel data containing Computername so he could do a Select like:

Select * from Requests where Computername in ( [Search:Text] )

While this would work for a single entry, I agreed that this is a worthwhile feature, so I added a Multi-Answer option to the TextSearch filters to allow the end-user to enter multiple entries.  Each Entry must be on a separate line.  If the entry ends with a comma (",") I will remove it.  Blank lines will be ignored.

So the above example would expand to something like:

Select * from Requests where Computername in ( 'COMP1', 'COMP2' )

Each entry is enclosed in single quotes and separated by commas. 

MultiAnswer.jpg

I have also added a similar feature to the Filter selections.  When the Multi-Select option is selected, SQLGridSelectedView display a ListBox that allows the user to select one or more items from the displayed list.

MultiSelect.jpg

Thanks Paul for a great suggestion.

Enjoy.

Tags:

1 comment(s) so far...

Re: Chinese Footware - and the removal of...

GameCoach Factory Outlet Onlineare usuallyCoach Factoryin By Coach Outlet Online on   Thursday, February 02, 2012 1:26:56 AM


Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 

Blog_List Maximize
Print  

  Home | Blog | Forum | Subscriptions | Free Modules | Videos   Page generated in 0.2660568 seconds.
  Copyright 2010 by TressleWorks   Terms Of Use | Privacy Statement