Whats the name of the server?
Whats the name of the server?
(OP)
Hallo again ;)
Ok I have a page in my web-aplication and on this page I have an action button that computes and calls an URL:
database := @ReplaceSubstring(@Subset(@DbName; -1);"\\";"/");
server := @Name([CN]; @Subset(@DbName; 1));
url:="http://"+server+"/"+database+"/all/$searchForm?SearchView";
url
It works fine, well not realy ;)
the only problem is @DbName
It's computet on server side, so for the server the server is localhost and @DbName gives me a NULL-String for the server name, but how to get the right name of the server?
It can't be that difficult.... I hope ;)
Thanks in advance
Stephan
Ok I have a page in my web-aplication and on this page I have an action button that computes and calls an URL:
database := @ReplaceSubstring(@Subset(@DbName; -1);"\\";"/");
server := @Name([CN]; @Subset(@DbName; 1));
url:="http://"+server+"/"+database+"/all/$searchForm?SearchView";
url
It works fine, well not realy ;)
the only problem is @DbName
It's computet on server side, so for the server the server is localhost and @DbName gives me a NULL-String for the server name, but how to get the right name of the server?
It can't be that difficult.... I hope ;)
Thanks in advance
Stephan
RE: Whats the name of the server?
Put a field in your form named Server_Name. In the browser, it will automatically be filled with the name of the server via CGI, and you can use that in your formula.
Look up CGI variables in your Designer Help for more info.
Pascal.
RE: Whats the name of the server?
My problem is, that I have a page....
But I will try to use a form
I already thought of using cgi variables but on poages it wouldn't work ;)
But a form is also a page, or? ;)
strange workaround
Regards
Stephan
RE: Whats the name of the server?
OK, field won't work.
Hmmm, using Java could work, but your button would need to be coded in Java instead.
If you do that, you could load the server_name in the OnLoad event (defined in a variable for the frame), then call that variable in the button code.
I think that could work.
Pascal.
RE: Whats the name of the server?
hope no one will ever save this frame ;)
but thanks
Stephan
RE: Whats the name of the server?