Geting the user name

I have the need to display the username of the current user on a form. (This will be used to index scanned paper and therefore it is important to know who indexed the document, scanning is after processing the papers).
Maybe this has been beaten to death. I browsed the internet and Adobes JavaScript manual. Seems the Identity object fullfills all my needs, but it is restricted in security. I'm not at all clear why the username poses a security threat, but regardless..
I'm not clear on how to proceed. As far as I got it, you have to write some JavaScript, that goes to the JS folder of Acrobat and sets some application level variables.
In the document I can set the fields from those global variables. But I want to distribute the form as a self contained document an not to have to roll out the JavaScripts to many desktops.
I tried to use the code within the form in a app.trustedFunction between app.beginPriv() and app.endPriv() but the console tells me that security setting prevent execution of this code?
What can I do or where have I gone wrong (for a change)?
Thanks,
/gerold

Got it!  Granted this isn't the way to really do it but it shows that you can use an IAC application via VB or VBScript (in this case) to populate a Designer based XML form with username (and other) information  using the JS Object.<br /><br />~T<br /><br />'Begin Code<br />Dim objNet<br />On Error Resume Next <br /><br />'In case we fail to create object then display our custom error<br /><br />Set objNet = CreateObject("WScript.NetWork") <br /><br />'Dim strInfo<br />'strInfo = "User Name is     " & objNet.UserName & vbCRLF & _<br />'          "Computer Name is " & objNet.ComputerName & vbCRLF & _<br />'          "Domain Name is   " & objNet.UserDomain<br />'MsgBox strInfo<br />     'create the script object<br /><br />  Dim sFSpec   ' FSpec of file to write <br />   Dim sXmlPfx  ' fixed xml prefix <br />   Dim sXmlSfx  ' fixed xml suffix <br />   Dim aMeta    ' fixed meta/tag info <br />   Dim aData    ' changing data <br /><br />' needs your attention  <br />   sFSpec  = "c:\test.xml" <br />   sXmlPfx = "<?xml version='1.0' encoding = 'UTF-8'?>" <br />   'sXmlPfx = sXmlPfx + "<form1>" <br />   'sXmlSfx = "</form1>" <br />   aMeta   = Array( "form1", "TextField1", "TextField2", "TextField3") <br /><br />   aData   = Array(   Array( objNet.UserName, objNet.ComputerName, objNet.UserDomain )_ <br />                  ) <br /><br />' should work as is <br />   Dim sXML <br />   Dim aItem <br />   Dim nIdx <br /><br />   sXmlPfx = Replace( sXmlPfx, "'", """" ) ' not without risk of replacing <br />   sXmlSfx = Replace( sXmlSfx, "'", """" ) ' "'"s you want to keep <br />   sXML    = sXmlPfx <br /><br />   For Each aItem in aData <br />       sXML = sXML + "<" + aMeta( 0 ) + ">" <br />       For nIdx = 1 To UBound( aMeta ) <br />           sXML = sXML + "<" + aMeta( nIdx ) + ">" <br />           sXML = sXML + aItem( nIdx - 1 ) <br />           sXML = sXML + "</" + aMeta( nIdx ) + ">" <br />       Next <br />       sXML = sXML + "</" + aMeta( 0 ) + ">" <br />   Next <br /><br />   sXML = sXML + sXmlSfx <br />   sXML = Replace( sXML, "><", ">" + vbCrLf + "<" ) ' poor man's format <br /><br />   CreateObject( "Scripting.FileSystemObject" ) _ <br />   .CreateTextFile( sFSpec, True ) _ <br />   .Write sXML <br /><br />     'create the script object<br />Set WshShell = WScript.CreateObject("WScript.Shell")<br />'use the wshell to launch Acrobat<br />WshShell.Run ("Acrobat.exe")<br />WScript.Sleep 1000<br /><br />  'open a file<br />  WshShell.run "Acrobat.exe c:\DesignerTest.pdf"<br /><br /> 'if Acrobat or no document is open you get an error message about not finding the file. <br />set WshShell = CreateObject ("Wscript.Shell") <br />WshShell.AppActivate("Adobe Acrobat") <br />WScript.Sleep 100<br /> <br /> 'get the active Document for use with JSObject <br />Set AcroApp = CreateObject("AcroExch.App")  <br />Set AVDoc = AcroApp.GetActiveDoc  <br />Set PDDoc = AVDoc.GetPDDoc  <br />set jso = PDDOC.GetJSObject <br /><br />jso.importXFAData "/c/test.xml"<br /><br />'End Code

Similar Messages

  • How to find out the user name and email address from SAP user id?

    Hi experts,
    In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
    Thanks in advance.
    Sharat.

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • I had a power failure 2 days ago, have power now, but cannot send email from my iPad. Everything was fine before that. The box says cannot send mail, the user name or password for Gmail is incorrect. I haven't changed anything. I need help. Thanks

    Hi
    I had a power failure 2 days ago, my computer is running again, but now I cannot send email from my iPad using Cox or my gmail account. I am receiving mail in my Cox account but not my gmail account.It was working fine until the power failure. It keeps telling me, the user name or password for Gmail is incorrect. I have not changed anything. I don't know what is wrong. Can anyone help me? Thanks

    I agree, unplug and replug your router, then reset your iPad by holding down the sleep and home buttons, ignore the red power down slider, and wait til you see the silver apple. let it reboot and then try your connection.
    Chances are rebooting the router will help. You may also need to talk to cox. They may need to reset something on their end.

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad

    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    Logon failure: unknown user name or bad password 
    am using Windows integrated security,version of my sql server 2008R2
    I have go throgh the different articuls, they have given different answers,
    So any one give me the  exact soluction for this problem,
    Using service account then i will get the soluction or what?
    pls help me out it is urgent based.
    Regards
    Thanks!

    Hi Ychinnari,
    I have tested on my local environment and can reproduce the issue, as
    Vaishu00547 mentioned that the issue can be caused by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct, Please update the Username and Password and restart the reporting services.
    Please also find more details information about when to use the execution account, if possible,please also not specify this account:
    This account is used under special circumstances when other sources of credentials are not available:
    When the report server connects to a data source that does not require credentials. Examples of data sources that might not require credentials include XML documents and some client-side database applications.
    When the report server connects to another server to retrieve external image files or other resources that are referenced in a report.
    Execution Account (SSRS Native Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Question on how to Hide the User Name, Password, and Domain fields in the MDT Wizard

    MDT 2012 U1
    Deploying Windows 7 via Offline Media (ISO) to MS Virtual PC's
    I am looking on how to Hide the User Name, Password, and Domain fields which are prepopulated in the MDT wizard via the CS.ini (Not so concerned about the Domain field as I am User Name and Password)
    We do need the Computer Name and OU fields to be seen, so skipping the wizard is not a option
    The client just does not want these fields to be seen by the end users, they dont want them to even know the account name used for adding the machine to the domain, of course the password is not displayed but it must not be displayed either.
    But since we use the fields they must still  be fuctional just not seen.
    Thanks.....
    If this post is helpful please click "Mark for answer", thanks! Kind regards

    You shouldn't have to edit DeployWiz_Definition_ENU.xml. You should only need to add "SkipAdminPassword=YES" to the CS.ini file and your authentication information.
    Example:
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    OSInstall=Y
    SkipCapture=NO
    SkipAdminPassword=YES
    UserID=<MyUserID>
    UserPassword=<MyPassword>
    UserDomain=<MyDomain.com>
    SkipProductKey=NO
    SkipComputerBackup=YES
    SkipBitLocker=NO
    -Nick O.
    Nick,
    SkipAdminPassword=YES is for:
    You can skip the Administrator Password wizard page by using this property in the
    customsettings.ini.
    I am hidding the Username/Password/and domain field in the computer name Wizard pane which is read from the cs.iniDomainAdmin=xxxxx
    DomainAdminPassword=xxxxx
    DomainAdminDomain=xxxxxx
    JoinDomain=xxxxxx
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • TS3899 Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect

    Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect". Help

    Hotmail is having problems:
    http://bostinno.streetwise.co/2013/08/15/hotmail-outage-hotmail-is-down-for-user s-still-photos/
    http://www.engadget.com/2013/08/14/outlook-outage/
    http://www.infoworld.com/d/applications/microsofts-skydrive-outlookcom-are-down- some-users-224940
    http://mashable.com/2013/08/14/outlook-down/
    http://techcrunch.com/2013/08/14/microsoft-acknowledges-outlook-com-messenger-sk ydrive-outages/

  • How to display the User Name in Transaction MM04's output

    Hi Experts,
    My requirement is that in the Transaction MM04's output, along with all the fields displayed, I also want the User Name to be displayed.
    Here User Name must be the Person's Name and not the ID of the Person.
    Is there a way by which I can achieve it?
    Useful answers will definitely be rewarded.
    Thanks in advance.
    Regards,
    Himanshu

    Hi,
    Thanks a lot for your quick replies.
    But my requirement is to integrate the User Name Field with the MM04's output.
    So, I need either an Exit or any other way by which I can display the User Name in the Standard Transaction MM04's output.
    Regards,
    Himanshu

  • Is it possible to restore Gamecenter after update and restore?? After update, tried logging into Gamecenter and it says that the user name is already taken. Yeah, I know..... by me!!!

    One of my kids ipods needed an update. It wouldn't let me do it via the itouch (like the other 2 itouches did). I had to connect to the PC, sync, update and then restore. Once I did, the apps could be downloaded again via icloud (which wasn't on the itouch before) but progress on games that were through Gamecenter did not transfer. Tried logging into Gamecenter and it states the user name is already taken. Yeah, I know it's already taken, BY MY DAUGHTER!!! Apparently she has a dragon game app that she manages through Gamecenter that she has worked her way to level 22 and now it is all gone. It wants her to restart from level 1. I know this isn't life or death and not like losing work data etc. But to a 9 year old who has spent $40 of her own money on gems, coins etc....... this is the end of the world. LOL. I do want to try to help her, I just don't know how.

    Thank you. After posting I started to search for Backflip studios and found this support id. I had meanwhile created a new nickname, very similar to the original one, and requested that they swap the advanced world to the new id. I sent this last Saturday evening. This morning (so effectively on their first workday after my request!) I received a kind response from Rachael that they had swapped the parks. Like your daughter my son couldn't believe his eyes. Thank you for your post, original and reply, I hope others will find it too and that Rachael can keep up such excellent support. It means a lot...

  • How can I hide the user name and password from the url address?

    Good afternoon every body,
    I have a form running with Oracle9i Developer Suite Release 2 and when I run the form on the web it shows the user name and password of my data base. Can anyone of you please help me to hide the user name and password, if there's any way of course?.
    Thanks a lot!!.

    Luis,
    Then, as inolau's notice, create logon screen (or use the default one) and force the users to logon at runtime. Do not pass username/password as parameters.
    inolau,
    True that if the connection is specified in the config it will be the same for everyone. However, every case is different. For example one of our apps gets S3 credentials (from non-Oracle S3) as session parameters. It uses this common db connection to validate some stuff with the database, read security definitions and then it re-connects the forms using the credentials.

  • Error message in time machine: "There was a problem with the user name or the password of the network

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

  • HT204053 I changed my internet service provider and no longer have the email that is the user name for my apple id. Is this just anecdotal, or is it going to cause me problems in the future? I no longer receive any of the mail sent to that address.

    At first I thought I had to change the user name on my apple id, but I guess that is not possible.  If I want my apple id to be linked to my current email address which is a gmail, I guess I am basically creating a new apple id, with all the complications that brings, right?
    I have the same issue with my iCloud.
    Should I do anything about this?

    Roger, thank you.  I wish I had sent out this question a month ago, when I committed the folly of creating another apple id with my alternate email address.  Since then, I had realized that I didn't seem to need it, hence today's post.
    So now what do I do?  Is there anyway to delete that unecessary apple id?
    And it is even worse than that...the secondary address listed currently in our apple id is a mobile me one that my husband created, but never uses, never checks, and probably doesn't even remember the password for. 

  • Never had trouble before with my incoming mail but just now I get a messege saying the user name or password for verizon is incorrect on my iPad but is fine on my home computer what's wrong with my ipad

    Never had trouble before with my incoming mail but just now getting messege that says the user name or password for verizon is incorrect yet my home computer is fine only have this od my iPad

    I experienced same problem tonight and called Verizon technical support and they walked me through the settings on iPad. Took about 5 minutes. Basically it involved changing incoming.verizon.net to pop.verizon.net and changing outgoing.verizon.net to smtp.verizon.net. But it's worth the call to ensure other settings are OK. Evidently, change at Verizon was effective today!

  • Record of the user name that created a payment proposal (F110)

    Hello,
    I would appriciate your help with a question I have regarding the payment proposal process (F110).
    I am trying to find where the system keeps a record of the user name that created the payment proposal.
    I saw this field only in the table REGUA (Change of payment proposals: user and time),
    but I didn't see it for regular payment proposals (not in REGUH and REGUP).
    In general, My goal is to be able to check that the user who is creating the payment run is different from the user who created the payment proposal.
    Thank you in advance.

    In F110, display the payment proposal log. Shift+F7.
    in the heading line 'ob log overview for job'  you can see the job name.
    say  'F110-20110104-FR4NA -X'
    if it is F110-20110104-FR4NA -X / 05170400, you have to take the part before the slash that is F110-20110104-FR4NA -X
    Go to SM37, enter this in the job name. Enter * in the user id. Enter the date , on which payement run was done.
    Then execute. YOu will see, who has run the proposal or payement run in the resulting screen.

Maybe you are looking for

  • Pictures not transfering from computer to ipad

    I recently got a new computer and now the pictures on my computer will not sync to my ipad.  Any help will be appreciated.  I am not a computer expert so please explain in detail. Thanks.

  • HT3702 I'm trying to open payment history due to multiple charge on my card

    I was charge multiple on my credit card that I didn't purchase plus I got charge same items same amount on two credit card my last purchase was on July 29,2013 in the amount of 3$ for the chips of 1200chips on zynga poker

  • Acrobat 9 Pro - Kerning Issue

    I just loaded Acrobat 9 Pro on several machines with an XP operating system. If you use the Text Edit function it will create numerous spaces between letters (Kerning) throught the document. The changes appear to be random and makes the document unus

  • Expansion Module screen too dark?

    Hi, Has anyone used expansion module? I have tried this product recently, everything works fine except the screen. I think the screen is too dark to see the speed dial on it. I have tried both 7914 and 7915, but got same result. How can tune it more

  • Timestamp coming in report with evaluate function

    Hi All, I have one date prompt where i have defined the presentation variable pvar_strt_dt. Now i am running report which captures the value of pvar_strt_dt but i m getting following error as follows State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY