skafy
-
Posts
216 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Posts posted by skafy
-
-
Ok. This is solved.
procedure TMain.UniFormCreate(Sender: TObject);
begin
UniSession.AddJS('var WinNetwork = new ActiveXObject("WScript.Network");');
UniSession.AddJS('alert(WinNetwork.UserName);');end;
This pops up domain name of currently logged in user. Now I wonder how to get this WinNetwork.Username in a variable in outside JS. Eny ideas?
-
But if i choose that option user will have to enter credentials the first time he visit page right? Any other solutions?
-
Can you please show this by example?
-
User should get to his page automaticlly with Windows user name and doesn't need to log in again with same credentials.
-
This code works great!...But how could you get currently logged in user and not domain name? So no matter where user is it always return his user name.
-
You can use IP Reverse Lookup to resolve his IP address to a Name.
I've tried that but it doesn't working 100%. Any other idea?
-
How can I accomplish that?
-
Client PC is in trusted Intranet
-
I've put next function in MainModule but no success:
function TUniMainModule.GetCurrentUserName: string;
const
cnMaxUserNameLen = 254;
var
sUserName : string;
dwUserNameLen : DWORD;
begin
dwUserNameLen := cnMaxUserNameLen-1;
SetLength( sUserName, cnMaxUserNameLen );
GetUserName(PChar( sUserName ),
dwUserNameLen );
SetLength( sUserName, dwUserNameLen );
SetLength(sUserName, sUserName.Length - 1);
Result := UpperCase(sUserName);
end; -
Hello,
I was using trail edition of UniGui 98.80 until my license expired. Is there a way to renew trail license to fully test the product before i make purchase?
-
How about domain name? Program will be running only for company employee.
-
How could I get computer name/domain name of a current client ?
-
Hi,
Can you clarify the issue ?!
Best regards.
Sorry. I've edit the question. I would like to disable/hide horizontal slider on TUniScrollBox or TUniPanel.
-
And how to disable it there?
-
How can I disable horizontally scrollable panel?
-
What about DBColumnSort. It seems it does not work. I set Sortable value to True in column prop but still no effect. When I click column to stort only arrow works (showing asc/desc arrow).
-
Yes that was it. Setting Grid.WebOption.FetchAll to True solved the problem. Thank you guys.
-
No.
Any idea why would it be limited to 2 pages?
-
Is also DBGrid limited to 2 pages of data?
-
Thank you man! You're life saver
-
Why I can't change SesionTimeout and Title on ServerModule? When I set it to new value automaticlly sets itselfs back to old "default" value.
-
Yep that is it! Thank you Erich.!
-
So good! Thank you for sharing the code.!
-
Hello,
Can somebody help me with inserting pdf document from disc to uniHTMLFrame.
I've got following code, but its not working.
<div id="pdf">
<object width="400" height="500" type="application/pdf" data="3.pdf" id="pdf_content">
<p>Cant find document.</p>
</object>
</div>

Client username
in General
Posted
Correct. Since IE is default browser in our company this doesn't bother me.
Where do I put this code?. Where set form variable?
Thank you very much!