Autoload current Users

FormName.Session.UserID
FormName.Session.UserName
Â
Replace FormName with the name of the form you are customizing.
Â
Steven G.


________________________________
From: vacortes21 <vcortes@...>
To: vantage@yahoogroups.com
Sent: Tuesday, March 13, 2012 2:35 PM
Subject: [Vantage] Autoload current Users


Â
Hi everyone, Is there any way to auto populate a text box with the current user name or ID using customization?

thanks for your help.




[Non-text portions of this message have been removed]
Hi everyone, Is there any way to auto populate a text box with the current user name or ID using customization?

thanks for your help.
Yes there is

On Form Load Or Initialize Do

textBox.Text = ((Session)oTrans.Session).UserID

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Mar 13, 2012 at 2:35 PM, vacortes21 <vcortes@...>wrote:

> **
>
>
> Hi everyone, Is there any way to auto populate a text box with the current
> user name or ID using customization?
>
> thanks for your help.
>
>
>


[Non-text portions of this message have been removed]
Very easy. Make your dropdown a Retriever in customization mode and choose the user adapter (or userfile). It’ll drop the userID into the bound UDShortChar field of your liking. Just don’t put this in a CharacterXX UD field. Character fields are not joinable in Crystal Reports. So if you ever needed to generate a report on this data you’re accumulating, the above mentioned retriever only puts the UserID in the field. Not the full name. So when it comes time to write your BAQ and subsequently Crystal, Crystal won’t link a CharacterXX field with the UserFile table’s UserID. Character fields are memo type (same applies to SQL) and CR doesn’t permit joining that field. Remember that for ANY retriever in the system... always put in a ShorCharXX field (or NumberXX, where applicable).


Sent from my Windows Phone

From: vacortes21
Sent: Tuesday, March 13, 2012 2:35 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Autoload current Users


Hi everyone, Is there any way to auto populate a text box with the current user name or ID using customization?

thanks for your help.




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2114/4868 - Release Date: 03/13/12


[Non-text portions of this message have been removed]