How Get the users machine name
I need to develop the intranet ticketing system on SharePoint. When user create the ticket I need to fetch their machine name as well. I have search that lot of solution given for ASP. Net with c#. But I have use JavaScript for the application. if any
possibility to achieve this on JavaScript if it's not possible means what is the possible way to fetch user machine name in sharepoint
Ravin Singh D
Hi,
the below link I got answer. Thanks sagar
http://forums.codeguru.com/showthread.php?495819-Getting-windows-machine-name-via-the-browser
<BODY>
<Script Type = "text/JavaScript">
try
var ax = new ActiveXObject("WScript.Network");
document.write('User: ' + ax.UserName + '<br />');
document.write('Computer: ' + ax.ComputerName + '<br />');
catch (e)
document.write('Permission to access computer name is denied' + '<br />');
</Script>
</Body>
Above code do that. But we need change browser security level to low. And it showing one warning also. I have tested with IE. other browser I need to test.
Ravin Singh D
Similar Messages
-
How get the user initiador in gp?
hi all
How get the user initiator of a process GP with a Web Dynpro Callable Object?
because with this code I get the current user...
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
String userid = user.getUniqueID();
thanks!Hi,
processId is the design time template id of the process. This you can find in the instantiation tab while designing the process.
Code for getting user context:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IGPUserContext userContext = GPContextFactory.getContextManager()
.createUserContext(user);
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
Hope it helps.
Regards,
Srinivasan Subbiah -
Want to get the Client Machine name from Oracle Forms
Hi,
I want to get the Client machine name from the Oracle Forms.
I have attached web_util.pll.
I use user_name := webutil_clientinfo.get_host_name;
but i am getting following error - WebUtil Error:WUC-015: Your form must contain the following Bean for this function to be available: oracle.forms.webutil.clientinfo.GetClientInfo.
Can any one help me in this!
Thanks & Regards,
Avinash Bhamare.
Pune.Hi,
I have written the code on when-button-pressed trigger of a push button -
DECLARE
user_name VARCHAR2(50);
BEGIN
user_name := client_win_api_environment.get_computer_name;
message('user_name is :'||user_name);
message('user_name is :'||user_name);
END;
And on clicking on this button i am getting error -
frm-40734:Internal Error:PL/SQL error occurred
Can any one help in this asap please!
Thanks & Regards,
Avinash. -
How get the user that use CRM in my web site
Hi all,
I have a web app that connect to my CRM. I use C#.
I connect to CRM with my credential because I'm admin in CRM.
But my app is used from others CRM user and I need to know who is systemuser CRM that use app.
I need the same of Xrm.Page.context used in js or the same context used in plugin, but I have the problem that I connect to CRM with my user. So If I use WhoAmIRequest class I have my userid and not the userid of the user that use my web app.
Is it possible know this? Do I change my login with user login in CRM?
ThanksHi,
As you use system admin to connect to CRM, WhoAmIRequest does not return the user from website. You are correct. Change that so that it uses logged in user however be aware that means each user needs to be a valid CRM user else they
will get not a valid user error.
Hope this helps.
Minal Dahiya
blog : http://minaldahiya.blogspot.com.au/
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful" -
How get the current user system ?
I want to synchronize the portal with my database; but i need to know the system
current user to establish a relationship between UserCreator and UserCreated
in my databaseAs far as I know, you can't get that information directly
from air.
A strange and roundabout "hack" would be to get the string of
the user's documents folder or desktop using
"air.File.desktopDirectory" or "air.File.documentsDirectory" and
parse it to get the user's name.
This is, of course, VERY unreliable, but may be the only way
to get the currently logged in user's name.
Someone please correct me if I'm wrong. -
How to get the user name from Single Sign On Process?
Post Author: sasikumar
CA Forum: Authentication
I am loging in Single Sign On Page. Then it goes to one JSP which lists out some links including InfoView link. While clicking InfoView link, I need to pass user name with the url for authentication. How and where can I get the user name?Care to be more specific what you mean with single sign-on? There are numerous ways this can be done.
Just how you get the authenticated o/s user from within an Oracle session, depends on just how the actual authentication to Oracle was done in order to create that Oracle session.
E.g. dealing in Oracle with a LDAP server is very different than dealing with a NT Primary/Secondary Domain Controller using o/s authentication, than dealing with a Java-based application server that does it own thing, etc. -
How do I get the user name and password for the Apple Extreme Router to connect to a Slingbox
How do I get the user name and password for the Apple Extreme Router to set up my Slingbox? It will not accept the Apple Extreme Name and password.
The AirPort Extreme does not have a User Name, but it does have a device name and device password, which you may have already tried.
There is also a Wireless Network Name and Wireless Network Password for the AirPort Extreme, which might be what the Slingbox is looking for if you are trying to connect it to your wireless network.
There are no other "user names" or "passwords" on the AirPort Extreme.
You established the device name, device password, wireless network name and wireless network password when you originally configured the AirPort Extreme.
If you cannot remember these, you will need to perform a Soft Rest to reset everything. Follow the instructions in this Apple support document:
Resetting an AirPort Base Station or Time Capsule FAQ -
How to get the Users Name from the SSL certificate?
Trying to achieve the following:
Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
Does SSO do this or something else?Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
File scriptFile = File.createTempFile("script", ".js");
FileWriter fw = new FileWriter(scriptFile);
fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
fw.flush();
fw.close();
BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
String uName = br.readLine();
br.close();
scriptFile.delete();
if (scriptFile.exists()) scriptFile.deleteOnExit();
return uName;
} -
How to get the current schema name
Hi,
Can anybody please tell me how to get the current schema name, there is some inbuilt function for this,but i am not getting that. Please help me.
Thanks
Jogeshok folks, I found the answer at Tom's as usual.
http://asktom.oracle.com/tkyte/who_called_me/index.html
I rewrote it into a function for kicks. just pass the results of DBMS_UTILITY.FORMAT_CALL_STACK to this function and you will get back the owner of the code making the call as well some extra goodies like the name of the code and the type of code depending on the parameter. This ignores the AUTHID CURRENT_USER issues which muddles the schemaid. Quick question, does the average user always have access to DBMS_UTILITY.FORMAT_CALL_STACK or does this get locked down on some systems?
cheers,
paul
create or replace
FUNCTION SELF_EXAM (
p_call_stack VARCHAR2,
p_type VARCHAR2 DEFAULT 'SCHEMA'
) RETURN VARCHAR2
AS
str_stack VARCHAR2(4000);
int_n PLS_INTEGER;
str_line VARCHAR2(255);
found_stack BOOLEAN DEFAULT FALSE;
int_cnt PLS_INTEGER := 0;
str_caller VARCHAR2(30);
str_name VARCHAR2(30);
str_owner VARCHAR2(30);
str_type VARCHAR2(30);
BEGIN
str_stack := p_call_stack;
-- Loop through each line of the call stack
LOOP
int_n := INSTR( str_stack, chr(10) );
EXIT WHEN int_cnt = 3 OR int_n IS NULL OR int_n = 0;
-- get the line
str_line := SUBSTR( str_stack, 1, int_n - 1 );
-- remove the line from the stack str
str_stack := substr( str_stack, int_n + 1 );
IF NOT found_stack
THEN
IF str_line like '%handle%number%name%'
THEN
found_stack := TRUE;
END IF;
ELSE
int_cnt := int_cnt + 1;
-- cnt = 1 is ME
-- cnt = 2 is MY Caller
-- cnt = 3 is Their Caller
IF int_cnt = 1
THEN
str_line := SUBSTR( str_line, 22 );
dbms_output.put_line('->' || str_line);
IF str_line LIKE 'pr%'
THEN
int_n := LENGTH('procedure ');
ELSIF str_line LIKE 'fun%'
THEN
int_n := LENGTH('function ');
ELSIF str_line LIKE 'package body%'
THEN
int_n := LENGTH('package body ');
ELSIF str_line LIKE 'pack%'
THEN
int_n := LENGTH('package ');
ELSIF str_line LIKE 'anonymous%'
THEN
int_n := LENGTH('anonymous block ');
ELSE
int_n := null;
END IF;
IF int_n IS NOT NULL
THEN
str_type := LTRIM(RTRIM(UPPER(SUBSTR( str_line, 1, int_n - 1 ))));
ELSE
str_type := 'TRIGGER';
END IF;
str_line := SUBSTR( str_line, NVL(int_n,1) );
int_n := INSTR( str_line, '.' );
str_owner := LTRIM(RTRIM(SUBSTR( str_line, 1, int_n - 1 )));
str_name := LTRIM(RTRIM(SUBSTR( str_line, int_n + 1 )));
END IF;
END IF;
END LOOP;
IF UPPER(p_type) = 'NAME'
THEN
RETURN str_name;
ELSIF UPPER(p_type) = 'SCHEMA.NAME'
OR UPPER(p_type) = 'OWNER.NAME'
THEN
RETURN str_owner || '.' || str_name;
ELSIF UPPER(p_type) = 'TYPE'
THEN
RETURN str_type;
ELSE
RETURN str_owner;
END IF;
END SELF_EXAM; -
How to get the user piveliges in Solaris
Dear All,
In solaris how to get the user priveliges,
Example:lsuser -f "user name"
In AIX the above command will show the user priveliges,that user having su access or not like that,I want to know in Solaris,i gone through "ppriv" it not giving the valid information.
Kindly tell me how to get the user priveliges.
Regrads,
Venkatachalam.M-K- (!),
I followed your suggestions and it works well now. Do you know why I prefer to see the UI in english ? Because the help and everything else (documentation) is in english making very difficult to find in the french UI what is referred to in the english on-line help.
Merci de votre aide !
Christian -
Getting the user name and computer name
I've been trying to find out how to do this, but can't seem to get it.
I have an AIR application that needs to get the user's login name, and computer name for verification. I can't find anywhere to do this. Is AIR able to get this information? Is there work arounds if there isn't?
It won't ever be a web app, just an AIR app.What I did in Air 2 to accomplish that is the following:
public function getHostName():void {
if(NativeProcess.isSupported) {
var OS:String = Capabilities.os.toLocaleLowerCase();
var file:File;
if (OS.indexOf('win') > -1) {
//Executable in windows
file = new File('C:\\Windows\\System32\\hostname.exe');
} else if (OS.indexOf('mac') > -1 ) {
//Executable in mac
} else if (OS.indexOf('linux')) {
//Executable in linux
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
var process:NativeProcess = new NativeProcess();
process.addEventListener(NativeProcessExitEvent.EXIT, onExitError);
process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutput);
process.start(nativeProcessStartupInfo);
process.closeInput();
import utls.StringHelper;
public function onOutput(event:ProgressEvent):void {
var strHelper:StringHelper = new StringHelper();
var output:String = event.target.standardOutput.readUTFBytes(event.target.standardOutput.bytesAvailable);
output = strHelper.trimBack(output, "\n");
output = strHelper.trimBack(output, "\r");
trace('"'+output+'"');
The package that I used is from the manual:
package utls
public class StringHelper
public function StringHelper()
public function replace(str:String, oldSubStr:String, newSubStr:String):String {
return str.split(oldSubStr).join(newSubStr);
public function trim(str:String, char:String):String {
return trimBack(trimFront(str, char), char);
public function trimFront(str:String, char:String):String {
char = stringToCharacter(char);
if (str.charAt(0) == char) {
str = trimFront(str.substring(1), char);
return str;
public function trimBack(str:String, char:String):String {
char = stringToCharacter(char);
if (str.charAt(str.length - 1) == char) {
str = trimBack(str.substring(0, str.length - 1), char);
return str;
public function stringToCharacter(str:String):String {
if (str.length == 1) {
return str;
return str.slice(0, 1);
And sorry for the miss topic I just realized that it is on flex topic, but I post it either way it may be useful for anyone -
How to get the User ID's details in SRM Workflow EBP system
Hi Team
How to get the User ID's details in SRM Workflow EBP system. Example like i have User ID "BTEMPEST" but i want his full name . so please suggst me how to get the full name of user id where it is maintained.
Thanks.
Puneet.Thank you very much muthu.
For your information FM "RSPLPPM_GET_USERDETAILS" is working fine.
Thanks for quick response.
Thanks
Puneet. -
How to get the User Id from the user interactive task?
If I need to get the user id or whoever process the user interactive task and save this information to the database, how can I get the user identity who process the interactive task? I tried the owner, creator on the execdata, but it doesn't work.
Thank youtry using
Participant.id or Participant.name
in the interactivity and update this value in the database.
HTH
Narasimha
Edited by: Narasimha on Mar 6, 2011 9:42 PM -
Hi,
Can anyone say how to get the user view of a user logged in through admin interface.
I have tried to get the roles of logged in user as below:
<ref>waveset.roles</ref>
it did not work..
Please suggestwho said you cant create view for logged in user, try the following machi
<Action id='0' name='User View' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='getView'/>
<Argument name='authorized' value='true'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(WF_CASE_OWNER)'/>
<Return from='view' to='userview/>
</Action>
Rgds,
Purush -
How to get the users list that can Add/Remove or modify Vendors in Oracle?
How to get the users list that can Add/Remove or modify Vendors in Oracle?
I need to generate a report like name and responsibility. ThanksThat query gives the Supplier information.
But what i would be needing is to find out the USERS in oracle who can Add/Modify or Remove Vendors.
I assume it should be based on the Responsibility.
Maybe you are looking for
-
HT1349 how can i check my icloud account from another computer
Because i broke my iphone and i dont have insurance and i lost all my contacts son how can i do it if i have i cloud
-
Can you import visual albums from a CD to iTunes???
Does anyone knows how to import a visual album from a CD to iTunes? I bought Beyonce lastest album and i'm trying to import it to my iTunes but it keeps opening up in Windows Media Player anyone every done something like this before?
-
How do you determine the optimal size for Mozilla Firefox?
How do you determine the optimal size for cache in Mozilla Firefox? I am using Firefox 7.0.1 on a 64-bit Windows 7 Ultimate operating system with 3GB RAM and 300 GB hard drive, but I have other computers running Windows XP. If the answer doesn't appl
-
How do I transfer data from old laptop to new one without using time machine?
I just bought a new Macbook and want to transfer everything over and wipe my old Macbook so the kids can have it. I have an external hard drive, that has photos etc. on it already. When I try to do a Time Machine back up, it tells me the drive is n
-
Java Control Panel applet won't run
I am running Windows 2000 Server and I need to import a certificate into the certificate database. Both the jpicpl32.cpl and jpicpl32.exe fail to run. When I try to execute either of them they launch an instance of javaw.exe (confirmed in the task ma