How to get the windows username in jsx

Hello,
I have a JSX script in "My Documents\Adobe Scripts" to make it trusted script. I have another text file I need to read from JSX. Since the location depends on logged in user, I need to find the windows username. If anyone know how to get the windows username from jsx please reply.
Thank you very much.
Regards
Nima.

Hey,
You can get username like this:
var myUsername = $.getenv('username');
You could also get My Documents folder like this:
var myDocFolder = Folder.myDocuments;
Hope that helps.
Marijan (tomaxxi)
http://tomaxxi.com/

Similar Messages

  • How to get the Windows Vista Driver for ATI Radeon 7500 card?

    How to get the Windows Vista Driver for ATI Radeon 7500 card?
    I am using a IBM Thinkpad T42 with a 32Mb ATI Radeon 7500 graphic card AGP.
    Is there any Vista 32-bit driver to update my card so that this system support Aero effect?
    Thank you.
    regards,
    W. Thong

    wthong wrote:
    How to get the Windows Vista Driver for ATI Radeon 7500 card?
    The Radeon 9000 driver works for the Radeon 7500 card.  I have successfully used it on a T43 with Vista Ultimate x86
    wthong wrote:
    Is there any Vista 32-bit driver to update my card so that this system support Aero effect?
    Unfortunately no.  The Radeon 9000 driver should bring your graphics score up to close to 2, but it will not get it high enough to enable Aero support.
    Cheers,
    Bill
    I don't work for Lenovo

  • How to get the Portal Username to SAP Transaction IView ( ABAP cust repor )

    Hi Experts,
    We have an ABAP program that will be exposed in portal as SAP transaction IVIEW.  However the username that is being displayed in the report is the username that is defined in SICF > SAP > BC > GUI > ITS > WEBGUI.  I tried to remove the username and password defined, changed the procedure to Alternative Logon Procedure and deleted some logon procedure list retained Basic and SSO Authentication but we are getting DDIC username.  We have successfully implemented SSO, and it works in Personal Information of Standard ESS.  The following are configure in our portal:
    1.  We have set SSO ticket
    2.  We are using User Mapping for portal and ABAP System
    3.  Retain Basic and SSO authentication
    what could be the cause why the program (iview) is still getting the user instead of Portal Username? How can we get the portal username for our abap customized report exposed in iview

    Hi,
    Make sure that the System you are using to connect to R3 has Log On Method and Authentication Ticket Type properties has SAP LOGON TKT as the value selected.
    Path: System Administration --> System Configuration ---> Systems....
    Regards,
    SrinivaS

  • How to get the admin username & password for JMX connection

    Hi All,
    I need to retrieve the username & password and pass it to the JNDI to get the JMX connection for MBean Server. I will be doing this locally.
    Is there an API that I can use to retrieve this information ?
    thanks
    -sheshi

    Forgot to mention, I am using WebLogic 9.1

  • How to get the current username (Adf Security) in a VO query?

    Hi all,
    I want to filter a VO query using the current username in the where clause. What is the correct object in the security context to do that?
    Thanks.
    JDEV 11.1.1.7

    Hi,
    Do not directly put the username in your query, you query should be something similar to:
    select abc, bcd, user_code FROM TABLE
    WHERE (USER_CODE = :LoggedInUser)
    then create a bind variable "LoggedInUser" of type String with value type as expression and value as (adf.context.securityContext.userName)
    - Lalit

  • How to get the window.opener object into a model window

    Hi,
    I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
    for e.g.
    var caller = window.opener
    then caller can be used as object but if i do like this
    var caller = window.dialogArguments
    then i can't use caller as an object.
    Can anybody tell me the correct way.
    manish

    Hi Manish,
    I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
      Caller page
      // showModalDialog for Non-IE browsers
      if (!window.showModalDialog) {
        window.showModalDialog = function(sUrl, vArguments, sFeatures) {
          var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
          var modalWindow = window.open (sUrl, "_blank", wFeatures);
          modalWindow.setFocusToWindow = function () {
            modalWindow.focus();
          modalWindow.setInterval ("setFocusToWindow()", 100);
      // Show modal dialog...
      window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
      modal_dialog.html
      // IE only - other browsers will be fine
      if (window.dialogArguments) {
        window.opener = window.dialogArguments;
      // Write something back in the opener window
      window.opener.document.write ("here you go...");

  • How to get the Windows service

    Hi friends,
    I can able to get My system ip address using InetAddress.But i need to get what are all services is going in particular ip address.
    Is it possible in java.If possible then can u send me the code for the same.
    import java.io.*;
    import java.net.*;
    public class IPaddresses
    public static void main(String args[])
    try
    System.out.println("local IP address " + InetAddress.getLocalHost().toString());
    catch (Exception se) {System.err.println("error " + se); }
    Thanks & Regards,
    Yousuf .

    yousufalam wrote:
    Hi friends,
    I can able to get My system ip address using InetAddress.But i need to get what are all services is going in particular ip address.
    Is it possible in java.No.

  • How to get the default selection color from JTable

    Hi, there,
    I have a question for how to get the default selection color from JTable. I am currently implementing the customized table cell renderer, but I do want to set the selection color in the table exactly the same of default table cell renderer. The JTable.getSelectionBackgroup() did not works for me, it returned dark blue which made the text in the table unreadable. Anyone know how to get the window's default selection color?
    Thanks,
    -Jenny

    The windows default selection color is dark blue. Try selecting any text on this page. The difference is that the text gets changed to a white font so you can actually see the text.
    If you don't like the default colors that Java uses then use the UIManager to change the defaults. The following program shows all the properties controlled by the UIManager:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java
    Any of the properties can be changed for the entire application by using:
    UIManager.put( "propertyName", value );

  • How to get the current user name in Provider hosted app using appOnlyAccessToken

    Hi, 
    Please help me, how to get the HostWeb UserName in Provider Hosted App
    i have Provider hosted App, and Anonymous Authentication is enabled on AppWeb, using appOnlyAccessToken
    Below code does not return current user who Log in in hostweb, it is returning
    SharePoint App (app@sharepoint)
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;
    Below code gives a blank name when Anonymous Authentication is enabled, if Anonymous Authentication is disabled
    app prompts for credentials 
    HttpContext.Current.User.Identity.Name
    Thanks
    Ram

    Hi,
    Since you are using a provider Hosted app if you want to get the current logged in name than do not use AppOnlyAccessToken else use AccessToken which is App + user Context AccessToken.
    then 
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;will return proper user Name.
    HttpContext.Current.User.Identity.Name will never return the user as this object is related to IIS server of your App Server not sharepoint.you should set this as Anonymous in case of provider hosted app.you can download the below sample which uses the AccessToken which has user name in it.https://code.msdn.microsoft.com/Working-provider-hosted-8fdf2d95
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to get the device token in windows phone 8 sliverlight application?

    Hi,
    I am developing a windows phone 8 silverlight application . For my application I want to add push notification service , for this service I have to call one web service in my app . This api requires device token , device id ..etc , I am able to get the all
    the things except devicetoken .
    How to get the device token of a device ?
    any help?
    Thanks...
    Suresh.M

    Most probably device token is the push channel url which is returned by MPNS when a request is made to it.
    Step 3 here: Push notifications for Windows Phone 8
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • *** How to get the username in a custom password change routine....

    How to get the username in a custom password change routine / procedure / form when a user's password has expired and is redirected automatically to this custom program?
    We use the 2nd parameter in LOGIN_URL column in WWSSO_LS_CONFIGURATION_INFO$ table to get to this custom change-password proc.

    OK !
    Use that maybe good :
    select USERID into v_user from sys.aud$
      where ntimestamp#=(
      select max(ntimestamp#)
      from sys.aud$ );

  • I tunes has stopped working in windows 7 and I don't know how to get the crash information that everyone else seems to get to know what the cause is....any help?  I have a toshiba windows 7 computer.

    I have a toshiba computer and it is windows 7, recently after I installed imatch everytime I open itunes I get the message 'i tunes has stopped working' and windows cannot find a solution and has to close.  There is no solution and I don't know how to get the crash information on my computer....can anyone help as I want to finish downloading all my songs to match to be available on my mac products.

    Re: That garbage is unreadable.
    If you really want help, stop messing with the fonts and post so that others can read and offer suggestions.
    Or better yet... try a search, I'm certain you'll find a solution to whatever issue you're experiencing.
    I have found that many times it is the things that make you most angry that push you to action. This was the case here. Thank you for causing me to get so angry that I found the answer myself.

  • How do you get music from your Itunes to your computer? im making a wedding video on windows movie maker but cant figure out how to get the bridal music off my ipod and onto my pc.

    Im making a wedding video and cant figure out how to get the bridal music off my itunes and onto my computer.. Im using the windows movie maker

    Marian,
    Let's be clear on one thing here. The manual setting is an iPod setting, not an iTunes one. So, once you've set it to manual (and you appear to have done that correctly), then you can connect it to any number of computers without changing that setting.
    "The grey thing occurs on one pc only"
    This is the thing that I don't understand, if your iPod is set to manual, then it shouldn't happen on any computer. If you connect the iPod that is set to manual to this pc, and then click on it in the source listing, then you would be looking at the songs on the iPod, and they should not be greyed out. When you connect to the "other pc" under these same circumstances, they are not greyed out?

Maybe you are looking for

  • Calculation of Tax Issue from FB60 (Tax Code Issue)

    Dear All, Normally when we purchase or received any services we post following entry. INVOICE VALUE IS 1000 Purchase Ac Dr   1000    To Vendor                   900    T o Tax                         100 But our requirement is that Purchase Ac Dr   1

  • Help needed in spooling a file

    hello gurus , i have a table emp consist of values like name place phno abcd ksla 123 errd lkis 456 ertw asd 324 reqq lsd 432 then i did was spool d:/file1/empdetails.xls select * from emp then the file got spooled but the output was not exactly wat

  • How do I install swype on my ipod touch?

    how do I install swype on my ipod touch?   I have the latest ipod touch.

  • Problem Installing Jive Portlet(please help me)

    Hi every body, i am installing the Jive Portlet on OralceAS 10g on a new instance of oc4j, but got errors. i extracted the OracleProviderForJive.zip, but when we run the test URL: http://localhost:7782/forum/providers/forum i get this error: Provider

  • How can I link to a certain scene in another project?

    Hi, I would like to make a add an advanced action to a button that links to a cetain scene in another project. as an example: On the last scene of project B I want to link back to project A scene 3. This is back to where the initial selection to open