Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 18, 2025 
 
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!
 Architect Forums - SalesLogix Scripting & Customization
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: FormatString User
Kevin Austin
Posts: 105
 
FormatString UserYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Jun 07 3:20 AM
Hi folks,

A simple query (or it seems to be) just have never had to do it before. Basically I'm looking to format an editbox (that brings back a userid from the database) as a username but... not in the default format of surname, firstname but in the format of firstname surname.

I'm assuming it's something to do with the FormatString property. Can you please shed some light.

Cheers
Kev
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: FormatString UserYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Jun 07 3:10 AM
Sorry, it isn't. You just find those pieces and concatenate them into the eb e.g.

ebTextBox.Text = strFirstname & " " & strLastName
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: FormatString UserYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Jun 07 9:26 AM
I use a LookupEdit Box....lookupId points to the UserID/AccountManagerId....no (NO!) ftType.....in the Text box I populate it on the OnChange of the form or PopUp Return of the Lookup.

DIM UDATA()

IF GETFIELDS("USERINFO FIELDS","USERINFO","USERID = '" & yourIDVariable & "' ",UDATA) THEN
leUSER.TEXT = UDATA(1) & " " & UDATA(2)
END IF
[Reply][Quote]
Kevin Austin
Posts: 105
 
Re: FormatString UserYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Jun 07 9:46 AM
RJ Samp.. this looks like the direction I want to head in with this, any chance you could give me a bit more info on how the getfields function works? It's alien to me...

Cheers
[Reply][Quote]
Mike Boysen
Posts: 53
 
Re: FormatString UserYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Jun 07 2:52 PM
GetField and GetFields are in the "System:Database Support" script. Just included it in your script/form.
[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 © 2025 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/18/2025 4:28:25 PM