Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 16, 2024 
 
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!
 Web Forums - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: vb method to check is an alias is null or ="" in an action
David Nunnally
Posts: 206
 
vb method to check is an alias is null or ="" in an actionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jul 06 3:08 PM
fiogf49gjkf0d
I have an action creating some html and need to display some lines if techrev has some text and suppress those lines if not.
How do I test the alias in vbscript?

vHTML = vHTML + "Technical Review = <#F name=techrev>;"
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: vb method to check is an alias is null or ="" in an actionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jul 06 3:33 PM
fiogf49gjkf0d
Two ways:

1) DoSQL:
If Len(DoSQL("SELECT TECHREV FROM TABLE WHERE TABLEID='" & sID & "'", "0", "")) > 0 Then
vHTML = "Technical Review = Yes"
Else
vHTML = vHTML '** or don't even have an else....
End If

2) You can expand that, by creating a Handle, getting the value, like this:
lHandle = DBOpenSQL("SELECT TECHREV FROM TABLE WHERE TABLEID = '" & sID & "'", True)
DBMoveTo lHandle, "FIRST"
sTechRev = DBGetValue(lHandle, "TECHREV")
DBClose lHandle

If Len(stechrev) > 0 Then
vHTML = "Technical Review = Yes"
Else
vHTML = vHTML
End If

I'd go with option 1....you don't have to open a handle, close it (it's handled automatically). But either one should work.

Jeff
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: vb method to check is an alias is null or ="" in an actionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jul 06 3:45 PM
fiogf49gjkf0d
Thanks Jeff. Method 1 satisfied my requirement!

I love this site!
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/16/2024 10:34:12 AM