Path to Web Engine folder using LrPathUtils

Is there a way to refer to the Web Engine folder path (cross platform) using LrPathUtils or LrFileUtils in galleryInfo.lrweb?

Prateek,
You have two options, you can either concatenate the strings, or if the variable is already a string, enclose it in square brackets. The square brackets insert the value of the parameter.
Option A - Concatenate
print('My variable is: '||$p_parameter);
Option B - Inline
print('My variable is : \[$p_parameter\]');
Cheers,
Aaron
Edited by: Aaron Titmarsh on Feb 9, 2012 9:06 AM

Similar Messages

  • Return the path of a created folder

    hi all, this is a simple code to create a directory. but looks like im having some problem when i tried to return the path of the created folder. used boolean and boolean cant be referenced. duh. need help. is there any other alternative?
    public void createDir() {
             // Create a directory; all ancestor directories must exist
             boolean success = (new File("../kam")).mkdir();
             System.out.println(""+success.getName());
             if (!success) {
            // Directory creation failed
         }thx in advance
    Yati

    public void createDir() {
         // Create a directory; all ancestor directories must exist
    File file=(new File("../kam"))
         boolean success = file.mkdir();
         if(Success)
         System.out.println(""+file.getName());
    else
    // Directory creation failed

  • How to get the actual path of a file present in the Web content folder

    I have a jasper file which is present inside the Web-Content folder of my project.
    I need to pass this file as an argument to the FileInputStream object. How can i give the actual path of the jasper file, since this project can be deployed anywhere else also.

    You may be able to use the getRealPath or getResource methods in ServletContext

  • Why can't I save for web in a specific folder using actions?

    I cannot for the life of me figure out how to save in a specific folder desitnations when using Actions and Saving For Web with CS6 PS for Windows. It ALWAYS defaults to last folder used. I am not Batch Processing, just using Actions on one image at a time. I have 3 of these actions. Action one is for "Thumbnail" folder, Action two is for "Full" folder, and Action three is for "Large" folder. All these actions are doing is saving for web into these folders (path displays correctly in Action script). HOWEVER after I successfully  use Action one and save into the Thumbnail folder and move on to Action 2, it wants to save back into Thumbnail AND NOT into Full folder. In short I now have 3 actions saving to the same folder even though my recording designated 3 different locations. HELP!

    Ok...I switched to my home Mac and was having similar issues with the toggle Save for Web window on. Saving to same folder even in Mac OS. Tried your way by keeping toggle off and it worked, saving diff images to different folders. I guess I have to figure a work around for the naming conventions however. My original is a 5 digit number lets say 11111.jpg. When I duplicate / use a sizing action I get two additional photos named 11111 copy.jpg.  That is why I kept toggle window on in CS3 so I could simply paste the 11111 name back in the dialogue window so I'd have three diff size photos in three diff folders named 11111.jpg.
    These steps might seem super basic but I do these steps for a website all day everyday three months straight without issue and I guess I have to adjust. I usually use orignal photos and have to rename.  Is there a way to Duplicate images as the same 11111.jpg instead of 11111 copy.jpg? That way I can just rename the photo at the beginning (red_flower_000ddafjdflj to 11111.jpg) and not use toggle (or rename at all).

  • Generating hashes for multiple shares in one folder using BranchCache Publish-BCFileContent -Path

    When using Publish-BCFileContent to generate hashes for multiple shared directories that are all within the same parent directory, can I just specify the parent directory as the "-Path" parameter or do I need to run the cmdlet for each share
    separately?
    For example:
    My file server has 3 separate shared folders:
    E:\Shares\Documents
    E:\Shares\Music
    E:\Shares\Pictures
    (E:\Shares is not directly shared)
    To generate hashes for all 3 shared directories to export to a remote hosted cache computer could I run the Publish-BCFileContent cmdlet just once with just E:\Shares as the -Path parameter?
    Publish-BCFileContent -Path E:\Shares -StageData
    Or do I need to run the cmdlt 3 separate times as below?
    Publish-BCFileContent -Path E:\Shares\Documents -StageData
    Publish-BCFileContent -Path E:\Shares\Music -StageData
    Publish-BCFileContent -Path E:\Shares\Pictures -StageData

    Hi CharlesPool,
    If there are only these three subfolders under the directory E:\Shares, you can try the cmdlet:
    Publish-BCFileContent -Path E:\Shares -StageData -Recurse
    Use the recurse parameter to specify that hashes are created for content in subfolders. If you do not use this parameter, then hashes are created only for content in the top folder and no hashes are created for content in subfolders.
    If there are other folders under D:\Shares, you need to run the cmdlet separately, and you can also use the cmdlet foreach to loop every folders (E:\Shares\Documents, E:\Shares\Music, E:\Shares\Pictures):
    $folders = "E:\Shares\Documents","E:\Shares\Music","E:\Shares\Pictures"
    Foreach($folder in $folders){
    Publish-BCFileContent –Path $folder –StageData}
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src

    I get this problem Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src
    So far in the posts i only see this problem . Please let us know how to solve this?
    Thanks
    Sankar

    Tses wrote:
    Am I the only one in the world who tried ΟLT 12c with ADF 11g R2 PS3 ?
    :-(Hi! You're not alone :)
    We tried to record some load tests (OpenScript 12.2.0.1 Build 223) for our ADF R2 application.
    But during the playback I had the same error: "Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src ".
    Haven't you found the solution yet?
    By the way, when I use operation "Revert to Recorded" for all nodes of my test and playback it again, I see in results that the script has passed without errors, but nothing has changed in database.
    Thanks.
    Natalie

  • Create Navigation path in IDT4.0 and how to use these navigation paths in Webi report

    Hi All, I want to know how to create navigation path in universe? I am using IDT BO4.0 SP4 and relational connection and want to create navigation path. I would like to know how to use this navigation path in Webi report? If I create a webi report where can I see my navigation paths and how to use it. If you can give any document or link which expalins this whole process, that would be great. Thanks,

    HI REMI ,
    1. ANSWER TO YOUR 1st QUESTION i.e. HOW TO CREATE A NAVIGATIONAL PATH :
        IN IDT 4.0  , YOU WILL FIND A NAVIGATIONAL PATH IN BOTTOM WHEN YOU WILL OPEN YOUR      BUSINESS LAYER , THERE YOU CAN CLICK CUSTOM NAVIGATION PATH -> THEN CLICK AT      ADD A NAVIGATIOAL PATH BUTTON->THEN GIVE NAME NAVIGATIONAL PATH NAME->THEN ADD THE OBJECTS UNDER YOUR NAVIGATIONAL PATH IN A HIERARCHICAL SEQUENCE .     FOR EX :     COUNTRY->STATE->CITY . AND YOUR CUSTOM NAVIGATIONAL PATH IS     CREATED.
    2. ANSWER TO YOUR SECOND QUESTION WHAT IS THE USE OF NAVIGATIONAL PATH IN WEBI REPORT :
    NAVIGATIONAL PATH HELPS YOU TO PERFORM DRILL DOWN ON YOUR DIMENSION OBJECTS , FOR EX : LET 'S SAY YOU CREATED A NAVIGATIONAL PATH- REGION SALES  : Containing COUNTRY->STATE->SALES. THIS WILL HELP YOU TO DRILL DOWN IN YOUR WEBI REPORT AS SHOWN BELOW :
    COUNTRY                      SALES
    INDIA                             $1000000
    (after clicking INDIA you will get below structure in your Report)
    STATE                           SALES
    DELHI                             $600000
    ANDRA-PRADESH          $200000
    MAHARASHTRA             $200000
    (after clicking MAHARASHTRA you will get below structure in your Report)
    CITY                              SALES
    MUMBAI                         $150000
    NAGPUR                        $  50000  
    ACTUALLY , DRILL - DOWN AS THE NAME SOUND HELP TO DRILL THE DIMENSION TILL ROOT LEVEL & SEE THE MEASURES VALUES ASSOCIATED WITH THOSE VALUES LEVELS.
    1ST LEVEL WILL ALWAYS CONTAIN THE SUM OF THE MEASURE OBJECTS
    CHEERS ,
    KAPIL

  • Should I install Apache Web server to use Jakarta Tomcat Servlet engine?

    Hello,
    I have some problems and now have a question:
    Should I install Apache Web server to use Jakarta Tomcat Servlet engine?
    JTK home page is available via http://localhost:8080
    Tomcat ver 3.1.3
    Thanks.

    No, you don't need to run Apache webserver (httpd) to run Tomcat. Tomcat by default runs on port 8080, but you can set it to any port, including 80, if you have permission to do so (on *nix systems, you need root permissions to run services on any port below 1024).
    Tomcat is a webserver as well, just one that includes a servlet container and JSP processor. So it will serve your html files, images, etc (aka static content), just as well as Apache httpd, in addition to being able to run servlets and JSPs.
    Apache httpd has more options for serving static content than Tomcat, so many people prefer to use it as their main webserver and only use Tomcat as a sort of "plugin" to handle servlets and JSPs. This can be achieved through a connector. Instructions on how to set this up are on the Jakarta website.
    So you could use Apache and Tomcat combined, next to each other, or totally separated. In many cases, just Tomcat will do.

  • Using require() in Web-Engine Plug-in

    Wanted to require function to include a ser of functions in my web-engine plugin
    I added require 'myfunctions' to manifest.lrweb but i get an error that
    module 'myfunctions' not found:
       no field package.preload['myfunctions']
       no file './myfunctions.lua'
       no file '/usr.local.share........
    But in my web plugin Lightroom/Web Galleries/mygallery.lrwebengine there is a file called myfunctions.lua
    Is this where it should go, can't seem to find any documentaion on require with web-engine plug-in

    Hi,
    I haven't tried to write a web engine so don't know the answer off the top of my head. A quick glance at the SDK guide and the two SDK samples didn't give me any hints at the answer.
    Before I nudge one of the gallery developers to see if they know the answer I need to confirm one thing. Can you please confirm you have a file in the same directory as your manifest using the name "myfunctions.lua", and that your require statement looks something like this:
      require "myfunctions"
    (Thie filename should be considered case sensitive).
    I know its an obvious question but I need to ask before I ask one of the others for assistance.
    Matt
    UPDATE: It might also be worth having a look at Sean's 3 post series on web galleries, which is the only other resource I can recall re building web galleries.
    Added additional resource re web gallery development

  • Failed to solve variable web.formaction.myForm using path

    Hi,
    I am running several OATS tests for monitoring some EM apps through the EM beacons.
    These OATS tests have been running on a couple of beacons for several months with absolutely no problems. All of a sudden on saturday my service tests started showing down although the applications are up.
    When i go onto the beacon and run the debug script i am seeing the following error for all steps after my SSO step 06:02:12,662 INFO [1] Step: [1] Single Sign On - Login
    06:02:15,204 ERROR [1] Iteration 1 failed at line (script.java:25). Failed to solve variable web.formaction.myForm using path .//FORM[@name='myForm']/@action
    oracle.oats.scripting.modules.http.api.exceptions.SolveException: Failed to solve variable web.formaction.myForm using path .//FORM[@name='myForm']/@action
    at oracle.oats.scripting.modules.http.api.exceptions.SolveException.createSolveExceptionPath(SolveException.java:94)
    at oracle.oats.scripting.modules.http.api.internal.InternalHTTPService.solveXpath(InternalHTTPService.java:1096)
    at oracle.oats.scripting.modules.http.api.internal.InternalHTTPService.solveXpath(InternalHTTPService.java:1045)
    at oracle.oats.scripting.modules.http.api.HTTPService.solveXPath(HTTPService.java:1432)
    at script.run(script.java:25)
    at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:313)
    at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
    at java.lang.Thread.run(Thread.java:619)
    It is almost like its no longer picking up the username or something.
    Any insight into this issue?
    Many thanks
    Lynne

    Hi Jamie,
    I am also facing a similar issue and I am getting following error : "Failed to solve variable web.input.orgapachemyfacestrinidadfa using path .//INPUT[@name='org.apache.myfaces.trinidad.faces.FORM']/@value"
    which is making the script fail.
    Can you please let me know how you resolved the issue in your script so that even I can do the same.
    Regards,
    Sheena

  • Unable to FTP to folder using absolute path

    I'm unable to FTP to a folder on the server that I have permission to if I use the absolute path to the file instead of a relative path. I can't use "/var/www/", but going to the same folder through "../../var/www/" works. However, I think the latter may be causing some other issues around .htacess rewrite and php detection (false warnings after export about php not supported, and .htaccess file not written), but I'm unable to test because I can't get to the right folder without the "../../".

    Hi Andrew, knowing you're in the Prerelease Program, can you give the current Beta build a try and let us know on the prerelease forum whether or not you still encounter this issue? Thanks.

  • Pass export file/directory name in Web Engine plug-in

    I use a custom Lightroom web engine plug-in that I use to publish my website (5000+ pages).  Here is an example of an output section:
    http://www.johnkane.com/2010-03-01-MuirWoods/index.html.
    I use Dreamweaver to synchronize all the assets such as menus and links, including the plug-in files (Lua pages).  Each web gallery is published to its own folder in my website.  It works great except that every time I publish/republish a web gallery, I have to scroll and identify the directory in the Export / Save Web Gallery dialog box (or type the file (directory) name in for an initial export/publish).
    I have created a panel text box and variable (metadata.directoryPermalink.value) that can contain the directory name.  By storing this directory permalink along with the web gallery, I hope to ensure that each gallery is always published to its correct directory...
    ... except I don't know how to pass this variable to the export dialog box (as "File name" which actually is the directory name all the gallery files are exported to.
    Do I specify this in the manifest?  I don't see references in either the manifest or galleryInfo files... or in the sdk LrWebViewFactory section.  Perhaps I've missed it?
    Any help appreciated!
    Thanks,
    jk

    Hi,
    I haven't tried to write a web engine so don't know the answer off the top of my head. A quick glance at the SDK guide and the two SDK samples didn't give me any hints at the answer.
    Before I nudge one of the gallery developers to see if they know the answer I need to confirm one thing. Can you please confirm you have a file in the same directory as your manifest using the name "myfunctions.lua", and that your require statement looks something like this:
      require "myfunctions"
    (Thie filename should be considered case sensitive).
    I know its an obvious question but I need to ask before I ask one of the others for assistance.
    Matt
    UPDATE: It might also be worth having a look at Sean's 3 post series on web galleries, which is the only other resource I can recall re building web galleries.
    Added additional resource re web gallery development

  • Probelm in getting absolute path of the application folder?

    I have problem in getting the absolute path of the application folder.
    I wriiten the following line in my action class:
    String absPath = getServlet().getServletContext().getRealPath("/");
    when i run my application 'DTH' in Tomcat server, I am getting correct path :
    C:\Tomcat\jakarta-tomcat-5.0.25\webapps\DTH
    But when i run this application in weblogic server, I am getting null value for the above line.
    Can any one help me in this?

    public java.lang.String getRealPath(java.lang.String path)
    This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive).
    so, getRealPath() might not be a very good approach because of its different behavior when used from a war or exploded application.
    What you could do is:
    1. pass the path as a parameter inside web.xml (config files, log files etc)
    2. For dynamic lookup of files you could make use of ClassLoader.getResource().
    Hope it helps.

  • Starting and stoping SAP J2EE engine without using SAPMMC

    Hi All,
    How can we start SAP J2EE engine without using SAPMMC.
    My SAP J2EE version is 6.40.
    Kindly, help.
    Regards,
    Devender V

    hi Devender,
    if your SID = J01 system no# 00, host = hostabc
    open a command prompt,..cd to this exe folder... (/usr/sap/J01/SYS/exe) just cross check if startsap existing or not.
    then run
    startsap.exe name=J01 nr=00 SAPDIAHOST=hostabc
    if the PATH env variable already has a value C:\usr\sap\J01\SYS\exe then you may directly run the command from any folder.. no need to specifically go to the exe folder.
    (if you need help how to set env variable in windows, http://www.cs.usask.ca/~wew036/latex/env.html)
    Regards,
    Debasis.
    Edited by: Debasis Sahoo on Apr 29, 2009 8:56 PM

  • Opening a km folder using WebDav url

    Hi all
    I am trying to open a folder in km using the webdav url via explorer.
    I get a message :
    The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work.
    I want to open the folder automatically as web folder.
    Is there any way I can configure this ???
    Thanks
    Nitsan

    Hi Nitsan,
    It depends from where you want to open the webdav folder.
    1. From explorer:
       Go to My network places, and add a new one with the URL you used before. Now it should open directly as a webdav folder. You can also map this to a network drive.
    2 From a website:
       Insert a link in the website using the following format:
    <a style="behavior: url(#default#AnchorClick)" title="Webmap" href="" folder="http://<hostname>:<port>/irj/go/km/docs/<km path>">Webfolder</a>
    This should open directly from the website as a webdav folder.
    Johan

Maybe you are looking for

  • Eliminating duplicate loops when Soundtrack installed

    I've noticed in GarageBand that I have many duplicate items in the loops browser. Almost every sample, if not all, is present in the list twice. Soundtrack (and FCE) came preinstalled on my Mac when I bought it from Apple, but I don't use Soundtrack.

  • Highlight "current" page in CSS Dreamweaver TEMPLATE

    I have created 2 navigation bars (in my header) using an unordered list styled with CSS in a Dreamweaver Template that I created. Here is that template (in the template- the "Beads" link is styled as the current page): http://www.bfranklincrafts.com/

  • TV Tuner in Qosmio g40

    Hi There Can any one tell me if it is possible to connect the Satalite Directly to the G40 Laptop meaning: - i have my Dish Plate on the roof so using the Coax cable which come from that plate can i connect the other end directly to the laptop. - and

  • Servlet SSI with 6.1 SP2

    I am having a weird problem Sun ONE Webserver 6.1 SP2. I have an index.html file that uses a servlet tag to include information on the page. If I go to the full address of the html (i.e. http://www.mysite.com/app/index.html) everything works fine. Ho

  • Source rect not being used correctly.

    when defining a source rect for bitmapData when apply a shaderFilter to it, the rect is ignored when processing pixels. It seems that every pixel is examined regardless of what the source rect is. Why? I'm defining the rectangle of which I want the s