Jump to content

[SOLVED] baaGrid Problem.


shamilton

Recommended Posts

I am currently messing around with the baaGrid class by Barry Andrew.

I have the following sql statement:

 

SELECT 
'<a href=\"?sortby=Name&sort=$nameSort\">Name</a>' = CASE Name
WHEN '' THEN '[Empty]'
ELSE Name
END,
'<a href=\"#\">Address</a>' = CASE Address1
WHEN '' THEN '[Empty]'
ELSE Address1
END,	
'<a href=\"#\">City</a>' = CASE City
WHEN '' THEN '[Empty]'
ELSE City
END,
'<a href=\"#\">State</a>' = CASE State
WHEN '' THEN '[Empty]'
ELSE State
END,
'<a href=\"#\">Zip</a>' = CASE Zip
WHEN '' THEN '[Empty]'
ELSE Zip
END,
' ' = CASE ID
WHEN 0 THEN '<strong style=\"color:red;\">ERROR</strong>'
ELSE 
'<div align=\"center\">
	<button type=\"reset\" id=\"viewButton\" onclick=\"location.href=''index.php?click=manager&section=1&CustNum='+ numb +'''\">View</button>
</div>'
END
FROM 
(SELECT TOP $max_results * 
FROM 
(SELECT TOP $depth * 
	FROM Customer 
	ORDER BY $sortby $sort) 
AS tempTable1 
ORDER BY $sortby $altsort) 
AS tempTable2 
ORDER BY $sortby $sort

 

You'll notice on line #2:

'<a href=\"?sortby=Name&sort=$nameSort\">Name</a>' = CASE Name

this still works...but no matter what it is set to...only the first 30 characters show...this sucks because it cuts off my URL.

 

Anyone got any ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.