Register  Login  
  September 9, 2010  
Forum    
Forum Minimize
 
ForumForumDiscussionsDiscussionsSQLGridSelected...SQLGridSelected...Alternate selections based on a conditionAlternate selections based on a condition
Previous Previous
 
Next Next
New Post
 7/23/2010 11:16 PM
 

I am working on an application of SGSV that searches a database of bibliographical information and returns a list of citations.One of the search fields is AUTHOR, and there are two ways that I need to implement the search.

  1. There are multiple authors in the AUTHOR field, and I want to match any character string, i.e. any author: WHERE AUTHOR LIKE %'[PARM:AUTHOR]%'
  2. There are multiple authors in the AUTHOR field, and I want to match the first author, i.e. the seach tries to match a character string at the beginning of the field: WHERE AUTHOR LIKE '[PARM:AUTHOR]%'

I would like to be able to select between these two options with a condition. So, there is a text field for the author and then there is a condition (check box) that, if checked, searches for the character string as the first author.

How might I go about implementing this?

New Post
 7/24/2010 9:20 PM
 

This one was actually easy once I thought about it. So, it's documented here in the event that someone has a need for something similar.

This requires a Text Search and a Condition:

  • Text Search: AUTHOR like '%[SEARCH3:Text]%'
  • Condition: ENDNOTE_STYLE.Author LIKE '[SEARCH3:Text]%'

So, if I enter CRAIG as the author in the Search box, the text search will return all records with CRAIG anywhere in the AUTHOR string. But, if the condition box is checked, the second clause is also added to the select, and it selects on the records with CRAIG at the beginning of the AUTHOR string.

Previous Previous
 
Next Next
ForumForumDiscussionsDiscussionsSQLGridSelected...SQLGridSelected...Alternate selections based on a conditionAlternate selections based on a condition

Print  

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