6/18/2025 8:28:14 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
SELECT CASE expression in datagrid
Posted: 14 May 07 1:39 PM
|
fiogf49gjkf0d Is it possible to create a datagrid that uses a CASE expression in the SQL statement? I am not having any luck getting it to work.
My SQL starts like this:
datagrid1.sql.text = "select 'CONDITIONAL' = case when (d.FIELD_A is null or d.FIELD_A like '') then 'F' Else 'T' end, d.OPPORTUNITYID, ... "
The query works fine when run within SQL, but when I try to build the datagrid within SalesLogix it thows an error saying that it "Failed to parse SQL".
|
|
|
|
Re: SELECT CASE expression in datagrid
Posted: 14 May 07 1:56 PM
|
fiogf49gjkf0d switch it around to alias the value at the end. For example, this is valid:
select accountid, case when type = 'Customer' then '$$$$$' else type end as newtype from account
Make sense? Do you see the difference? |
|
|
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|