How to get the user directory in HTML5 extension?

Hello

It may be too easy as well, but I am running with no luck here.

I am beginner in developing extensions to HTML5. First time I'm developing InDesign CC extension in HTML5. Before that, I used it to develop in Flex (AS3). SE directory of the user with the AIR API was pretty easy with the File class as: (File.userDirectory.nativePath). But with the HTML5 extension I do not know how to get it with Javascript.

I tried with two or three ways but no luck.

I tried:

var systemPath = new SystemPath();
  alert(systemPath.APPLICATION);

It says no "defined."

I also tried with a different API:


var tmpDir = OS.Constants.Path.tmpDir;

It says «Undefined OS»

Can someone please advise on this?

Thanks in advance

Mac

Try this,

var csInterface = new CSInterface();

Alert (csInterface.getSystemPath (SystemPath.user_data));

You can follow this link,

http://www.davidebarranca.com/2014/01/HTML-panels-tips-2-including-multiple-jsx/

Thanks to M. Davide, his advice will help a lot of newbies (whose too)

It will be useful,

Best...

AI

Tags: Adobe

Similar Questions

  • How to get the user input to dynamic Action confirmation message?

    Hi guys,.

    I use apex 4.1.

    I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?

    Thank you

    Hello

    you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions

    (1) confirm
    (2) execute the PL/SQL Code

    If the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • How to get the user name during the execution of a workflow?

    Here's what I would do:

    Say that each user is allowed to have 4 instances QA, create a workflow when a user run from vCenter plugin, it must be able to get the user name of the SSO user jsmith, and then he questions if there is an existing virtual machine jsmith_qa1, jsmith_qa2,jsmith_qa4, etc., if there isn't one, then create one for him; If not, indicate to the user that there are already 4 cases.

    I found that I can use getCurrentLdapUser to get [email protected] , now I want to remove the domain.name (there are several areas):

    username = actionResult.userPrincipalName.replace ("@[a - z].") +","");

    This does not work. Anyone know where I can find the right document for the document script of vRealize Orchestrator?

    Thank you!

    Jack

    vRO uses javascript as its scripting engine.

    UPN var = actionResult.userPrincipalName;

    var username = upn.substring (0, upn.indexOf("@"));

    Something like this will give what you want. You could also do a replacement, but I think that you should remove the quotes around the regex and use "/" instead.

    username = actionResult.userPrincipalName.replace (/ @[a - z] "+ /," "");

    Paul

  • How to get the active directory and environment variables

    Hello

    1 - is there a global variable to get the real (project, where is ORD and DSQ files) directory?

    2.-y there a way to get the directory of the user as the reading of the operating system environment variables?

    Thanks in advance.

    PD: I use Dasylab12

    Yes, use ropes of system

    For example, ${DATA_FOLDER}.

    For a list, the simplest method is to right click and select global chains. The lower half of the dialog box lists the system strings, including the date, time, name of the worksheet, with or without a path, the DEFAULT folders for the spreadsheet, data, other, black box, etc.

  • How to get the user name in "atfer serverror" trigger?

    Hi people;

    How do I get the name of the user who simply lack connection to the database in a trigger "after serverror"?
    The code of the trigger:
    create or replace
    TRIGGER TRG_LOGGON_FAILURES 
    AFTER SERVERERROR ON DATABASE 
    BEGIN
      IF (IS_SERVERERROR(1017)) THEN
      UPDATE utilisateur_ora SET UTO_STA='BLOQUE', UTO_DATE_STATUT=sysdate WHERE UTO_USR_GPL=<var_user>;
      COMMIT;
      END IF;
      
    END;

    11.2 you can use

    sys_context('userenv', 'authenticated_identity')
    
  • How to get the user name in a workflow?

    I have a simple request of what appears to be a basic workflow step.

    I create a workflow that has the user approve/reject their own review as the first step of the workflow. My question is, how do I get the username of each document as it comes in the workflow?

    I read on wfAddUser. If that's what I use, how to use it and where I can add it to the Workflow screen?

    Thank you.

    I don't know exactly what you are after all in a row. You want to get the original author?

    The document is checked and the user name is registered. It is the only name available at the moment where the document to enter the workflow, which would be the only user attached to the content so far.

    have you tried looking at the dDocAuthor variable?

  • "Changes Made" during the closing - how to get the user's response?

    When you press the close button after the change of some fields in text on a form, how can I find out what the user has selected? (Save, delete, cancel)

    Hey,.

    I found this link:

    http://www.BlackBerryForums.com/developer-forum/184021-save-discard-cancel-prompt-capture-button-SEL...

    After reading it, I wrote a little lil of the code.

    public boolean onSave()
        {
            Dialog.alert("Saved Data");
            return true;
        }
    

    It works for me and made the work of what I need. In my application, I want to save the data that a user makes when they leave the page. This code is called if 1) a change has been made on the page, and 2) if the user clicks on the "Save" option in the save/discard/Cancel dialog box.

    Hope that helps

    Mike

  • How to disable the user directory in the SSP?

    Hello

    Must turn off (do not delete) the directory of the user in the common Services of Hyperion. We use the Hyperion version 9.3.1. Is there a way we can do that?

    Thank you

    S

    Of the 9.3.1 docs:

    "If you do not want to use a configured user directory that has been used for supply, remove it from the search order so that the directory of the user is not wanted for users and groups. This action maintains the integrity of the information supply. It also allows you to use the directory of the user at a later date, if necessary. »

    http://docs.Oracle.com/CD/E10530_01/doc/EPM.931/html_cas_help/frameset.htm?removesearchord.htm

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • How to get the user clicks SeriesName APEX 4.2 flash chart and defined on a hidden element?

    Hello

    I'm developing a graphic clickable flash of APEX, which should be linked to a specific set of data on another page using the SeriesName (clicked several sets of cards).

    (Returned by a function) sql for APEX chart is

    Select distinct null link, d. DNAME label
    , sum(e. SAL ) over (partition by e. ( DEPTNO salary ( )
    , sum(e. Comm ) over (partition by e. DEPTNO ) comm
    de d Dep. , emp e
    e. DEPTNO = d . DEPTNO

    Currently I am able to disply SeriesName (e.g. salary or Comm) on the 2D chart. This is done by including {% SeriesName} Custome XML.

    But I am unable to detect which series name, the user clicks on - pay is comm.  for example, I am not able to enter the name of the series clicked and set it to a hidden item (called P38_SERIES_NAME).  I have to use JavaScript to achieve this? If so, how?

    The reason why I want to use the unique sql is due to that I will have to call a function to return the dynamic and running sql code, I don't know how many series I. i.e. could be comm, average age, salary, bonus etc...

    What is the easiest way to achieve this?   I use APEX 4.2 and Oracle 11 g.

    Thanks for your advice.

    Concerning

    Susanna Su

    Susanna,

    What you experience is the difference between session state and the value of the element on the page. The URL you have is generated on the rendering of the page and use the value of current session state of the question right now. Then when the page is on the client side and that you set the value of the item through javascript this value is still next to the customer and not in session state. Put the value in session state would not matter, however, because the link has already been made. Your best option is to send the page, ensuring the correct value is set to session state and use a branch in present after the process to redirect the user to the correct page.

    I have also described this here: https://forums.oracle.com/message/11110579#11110579

  • How to get the user name of the user logged into the E-Business Suite in OFA

    Hi all

    I developed a few screens in OPS and recorded also in Oracle applications. I need to enter the user name of the user who has logged in to the E - Business Suite to access my Application OFA, so that depends on his user name I will post a welcome Message on my screen.

    Can someone please suggest how to achieve?

    With our thanks
    Gerber

    Use pagecontext.getuserId or pageContext.getUserName in your controller

    Thank you
    Kassy

  • How to get the user name?

    Is there any place where the username is stored and can be accessed by javascript? I doubt it is stored anywhere that is accessible to the script.

    Other than a logon dialog box and asking the user entry is possible that he could be automagic?

    See http://forums.adobe.com/message/1109507#1109507

  • Dreamweaver connection "How can I get the user name to the other page?

    im a beginner in Dreamweaver CS4 and I'm learning to just watch the tutorial videos...

    I have a big problem...

    ADWCS4 is easy to make a login form...


    for these tutorials I watch I have not meet how to get the user to another page name which connect...

    I'm using PHP

    hope you can answer my question

    http://forums.Adobe.com/thread/417437

  • How to get current user profile on demand connection.

    Hi, guys

    I have a question.

    Currently, we have used the java portlet weblogic, my question is how to get the user profile currently.

    Like this:
    @RequestMapping
    public String listEventLogsList (RenderRequest request, response, model ModelMap RenderResponse) {}
    ....
    Download the profile of the user of the application.
    }

    is a tool util class can hep complete us this work.

    Thank you.

    Hello
    Use getUserPrincipal () .getName () (assuming always connected otherwise that you must check for null)
    ProfileWrapper pw = ProfileFactory.getProfile (userName, null);

    Theres also a way to get the HttpServletRequest to the rendering application, google, even if I do not remember the hand, then you can use the methods of accepting the request

    concerning
    Deepak

  • How to get the alert or deducted to the admin if the user AD installation of application in the domain system?

    How to get the alert or deducted to the admin if the user AD installation of application in the domain system?

    Hello

    I suggest you according to the question in this forum and check if that helps:

    http://social.technet.Microsoft.com/forums/en-us/winserverDS

    It will be useful.

Maybe you are looking for

  • Rescue OneKey 7.0 turn the laptop system

    When Windows 7 gives the possibility to turn off the computer this leave, but after a few seconds, the computer turns on itself and takes me to Onkey Rescue System 7.0. Why is this happening? because it becomes a cycle that keeps the computer is off.

  • Received error BSOD, ran Diagnostics, got the error code 2000-0146, tried to boot from different HARD drive, got the same stop error message

    So my friend gave me his computer dell laptop. The thing would boot normally for a few days until he would give me a blue screen of death with the "UNMOUNTABLE_BOOT_VOLUME" message constantly to not even upward. I ran the diagnostics and got the erro

  • in a cluster of vpn config sync

    Hi people, does anyone know how two concentrators vpn 3030 with VRRP active synchronize their configuration? I've yet to find a docu. I guess he's working on VRRP advertisements. I don't think, if you configure a secure connection, you need to do syn

  • Compact Flash ASA 5510

    Hi I want to know if a 2801, 2811, 1841, etc. compact flash works or it's the same as the compact flash for an ASA 5510. Thank you and best regards.

  • DBC file

    Hi allEBS R12.2.4RHEL 6One of the application developer where the dbc in our level apps file.Never heard of this file beforeDo you know what is the purpose of this file?Can you give me link and notes on how to install it?Thank you very muchJC