Register  Login  
  February 9, 2012  
Forum    
Forum Minimize
 
ForumForumDiscussionsDiscussionsSQLGridSelected...SQLGridSelected...Sorting issueSorting issue
Previous Previous
 
Next Next
New Post
 7/24/2010 3:10 AM
 

I have a need to be able to select one of four sort orders. What I would like to be able to do is to select one from a group of radio buttons to determine the sort order. As this is not part of SGSV, I'm looking for an alternative way of doing this.

Does anyone have any ideas?

New Post
 7/25/2010 1:36 AM
 

Is there a way to embed a comma in the "values" part of a Display/Values selection?

I'd like to have something like:

Display/Values: Choice 1; "A,B,C" , Choice 2; "D, E, F"

In other words if Choice 1 is selected, I'd like the value to be the character string "A, B, C"

New Post
 7/25/2010 1:52 AM
 

Joe,

This is where I resort to a stored procedure. One of the parameters passed in will be the store order. I use a DisplayValue list to define the appropriate selection and pass the corresponding value to the stored procedure.

Typically in the stored procedure you build the required SQL and use the exec statement to execute the build up SQL String.

Hope this helps
Paul.

New Post
 7/25/2010 2:00 AM
 

Joe,

Use the appropriate HTML decimal code for the comma , see http://www.obkb.com/dcljr/charstxt.html for a complete list.

So for A,B,C use A,B,C

Paul

New Post
 7/25/2010 2:42 AM
 

That will work fine for display, but it won't work inside of a SQL query.

But, I am beginning to understand that one way of viewing SGSV is as a very versatile tool for passing parameters to stored procedures and then displaying the results.

So, I will be rewriting my advanced search to utilize a stored procedure. I was already using one to format a complex response.

Again, thanks for this wonderful module.

Previous Previous
 
Next Next
ForumForumDiscussionsDiscussionsSQLGridSelected...SQLGridSelected...Sorting issueSorting issue

Print  

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