pralash
11th December 2017, 13:12
Hi,
I'm new for LN Programming... I want to know that how can i get the client machine name via script when I connected the LN Server from the client... Please let me know that with sample script.... Thanks in advance...
Regards,
Pralash

bdittmar
11th December 2017, 13:59
Hello,

get.client.hostname()
Syntax:

function long get.client.hostname (ref string hostname)

Description

This returns the hostname of the local client (if available). In case of Baan Windows this is the client machine on which BW is running. In case of Webtop, this is the client machine on which the Internet Browser is running.

Arguments

ref string hostname Output argument which will contain the fully qualified hostname of the client on return of this function.

Return values

true Function succeeded, hostname is filled.
false Function failed, client hostname is unknown.

Context

This function can be used in all script types.

or

get.client.ip.address()
Syntax:

function long get.client.ip.address (ref string ip.address)

Description

Get the IP address of the local client. In case of Baan Windows this is the client machine on which BW is running. In case of Webtop, this is the client machine on which the Internet Browser is running

Arguments

ref string ip.address Output argument which will contain the IP address of the client on return of this function.

Return values

true Function succeeded, IP adress is filled.
false Function failed, client IP address is unknown.

Context

This function can be used in all script types.


Regards

pralash
12th December 2017, 08:04
Thanks so much for your information...
Regards,
Pralash