Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

GetEnvironment varaible to get the current user id in PowerBuilder 11.5 app

2 posts in DataWindow Last posting was on 2010-01-07 02:22:51.0Z
harlibra Posted on 2010-01-06 23:30:40.0Z
From: harlibra <harlibra@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: GetEnvironment varaible to get the current user id in PowerBuilder 11.5 app
Date: Wed, 6 Jan 2010 15:30:40 -0800 (PST)
Organization: http://groups.google.com
Lines: 11
Message-ID: <38e9629c-5f99-42f6-a381-ee682caa2dcd@u7g2000yqm.googlegroups.com>
NNTP-Posting-Host: 204.194.78.3
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1262820640 9012 127.0.0.1 (6 Jan 2010 23:30:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 6 Jan 2010 23:30:40 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: u7g2000yqm.googlegroups.com; posting-host=204.194.78.3; posting-account=Lm-JzQoAAABYrHMKae_hy57rk3Zcqsiq
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!news-out.readnews.com!transit3.readnews.com!postnews.google.com!u7g2000yqm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90541
Article PK: 410147

Hi. The users are using a Citrix presentation server to test our PB
11.5 app. When they run the app on the Citrix server the users dont
get the splash and login screen ( for user id and password) for the
app rather the application on the server is executed through the
command prompt directly. The app gets the userid and office id
directly from the environment variables which are set when the user
log into the Citrix server. I am building a new PB app with the same
feature i.e without a login screen which will be deployed on the same
Citrix server.. This app is supposed to get the user login from the
citrix login info. What command should I used like GetEnvironment
variable() etc. Please help its urgent. Thnks


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2010-01-07 02:22:51.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <38e9629c-5f99-42f6-a381-ee682caa2dcd@u7g2000yqm.googlegroups.com>
Subject: Re: GetEnvironment varaible to get the current user id in PowerBuilder 11.5 app
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4b45457b$1@forums-1-dub>
Date: 6 Jan 2010 18:22:51 -0800
X-Trace: forums-1-dub 1262830971 10.22.241.152 (6 Jan 2010 18:22:51 -0800)
X-Original-Trace: 6 Jan 2010 18:22:51 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90542
Article PK: 410146

I believe that would be GetContextKeywords function, preceded by
GetContextService to set it up

String ls_keyword

Integer li_return

ContextKeyword lcx_key

li_return = this.GetContextService ("ContextKeyword", lcx_key)

lcx_key.GetContextKeywords ('my_environment_variable_name', ls_keyword)

--
Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"harlibra" <harlibra@yahoo.com> wrote in message
news:38e9629c-5f99-42f6-a381-ee682caa2dcd@u7g2000yqm.googlegroups.com...
> Hi. The users are using a Citrix presentation server to test our PB
> 11.5 app. When they run the app on the Citrix server the users dont
> get the splash and login screen ( for user id and password) for the
> app rather the application on the server is executed through the
> command prompt directly. The app gets the userid and office id
> directly from the environment variables which are set when the user
> log into the Citrix server. I am building a new PB app with the same
> feature i.e without a login screen which will be deployed on the same
> Citrix server.. This app is supposed to get the user login from the
> citrix login info. What command should I used like GetEnvironment
> variable() etc. Please help its urgent. Thnks