× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is off the top off my head - using a normal field that gets hidden -
as opposed to a field defined as hidden in the DDS. You get more options
to manipulate the field if you do this. You can condition your field to be
hidden in green screen using an indicator set to the value of the
QQFEnvironment() API if you have green screen users...

In the 'before' HTML overrides section put the following :-

<input type="hidden" id="l<%=zOrder%>_RECFMT$FIELD" value="
<%=request.getRemoteAddr()%>"></input><%--

..and in the after section, put

--%>

This basically comments out the generated field, but leaves the JS
declarations for it intact, and replaces it with your own hidden field
which has the same ID as Webfacing would have given your field, and the
value set to the IP address...

If you have no choice but to use a DDS hidden field then it is still
do-able but needs a bit of JavaScript...




"Shannon ODonnell" <sodonnell@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
21/10/2008 15:29
Please respond to
Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>


To
"'Websphere Development Studio Client for iSeries'" <wdsci-l@xxxxxxxxxxxx>
cc

Subject
Re: [WDSCI-L] Get IP Address of session for WebFacing






Since I posted the question I figured out:

<%=request.getRemoteAddr() %>

will get me the IP address of the PC. Now I'm working on the syntax to
drop that value into a display file field. If you have the syntax on that
handy, I'd love to see it. Otherwise, I'll figure it out eventually...

Thanks for the reply!

Shannon O'Donnell


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On
Behalf Of sbramley@xxxxxxxxx
Sent: Tuesday, October 21, 2008 8:53 AM
To: Websphere Development Studio Client for iSeries
Subject: Re: [WDSCI-L] Get IP Address of session for WebFacing

In the RPG layer or the web layer? It's easy to get it in the web layer
and then pass it down to the RPG - e.g. in a hidden field...




"Shannon ODonnell" <sodonnell@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
20/10/2008 19:59
Please respond to
Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>


To
"'Websphere Development Studio Client for iSeries'" <wdsci-l@xxxxxxxxxxxx>
cc

Subject
[WDSCI-L] Get IP Address of session for WebFacing






Has anyone figured out how to retrieve the current IP address of a given
webfacing session?



Maybe an IBM'er monitoring the list?



Thanks,



Shannon O'Donnell






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.