Use of Global Properties in URL path of XML Query

I am trying to use global properties to define the URL of XML query:
Globals.ImageFilePath&"SomePath/\File.xml"
but it does not like it. If I put the content of the Globals.ImageFilePath it works fine. What is the synatax for that?
I am using the XML query in a transaction within an image creation action block. When I try to define the URL parameter of the XML file as a link, it is not taken on account, and the image created has no data (it is empty). The URL is taken when defined on the Cofigure Object screen, but there I have the same problem to use the global variable parameter.
Any suggestions?
Thanks,
Vlad
Edited by: Vladimir Baltchev on Jul 29, 2008 11:33 PM
Edited by: Vladimir Baltchev on Jul 29, 2008 11:40 PM

As I mentioned in my first posting, yes, I can put the global variable of the link editor for the URL parameter, it evaluates well, but it is not taken on account by the query, and the image generated is empty. Obviously there is a bug here, so I am trying to find a work around to use the global variable on the Configure Object screen, where the parameter URL is taken by the XML query, but on this screen I can not use the global variable. It works only if I put the content of the global variable.
So, does anybody know if we can use global variables on a Configure Object  screen, or on the XML query URL field, and if so, what is the syntax to indicate global variable?
Thanks again,
Vlad

Similar Messages

  • Passing file location as URL parameter for xml query

    Hi all,
    A quick question regarding using a parameter to set the source URL in an XML query template.
    When assigning the URL, the static text works perfectly eg:
    //<servername>/<folder>/samplefile.xml . The xml is returned as required.
    However, we wish to call this from a BLS txn and set the source URL dynamically.
    To test this we assigned //<servername>/<folder>/samplefile.xml to Parameter no 1 and insert [Param.1] in the source URL field. No luck.
    Any suggestions?
    Cheers
    Mark

    Mark,
    In BLS, the double slashes (escaping the single /) are only necessary if you are building the full http url string in the link editor.
    If your XMLQuery template is something like http://localhost/Folder/Subfolder/[Param.1] then put in a default param value in the query template and make sure the query test works.  Then configure (or reconfigure) this in your BLS transaction and generate the sample results.  All you should have to do in BLS then is to assign your Transaction or Local property to the Param.1 link in your XMLQuery action block.  All of the dynamic replacement and subsequent xml file retrieval should then be done by the XMLQuery itself.
    If you can keep the majority of the URL in the XMLQuery itself and then just dynamically pass it the Param.1 piece it will be very easy to test and configure (also use localhost if the file lives on the xMII web server), but if you have to build the string external in BLS I would recommend using a combination of the expression editor and a Local property.  If the Local string property contains the base of http://localhost/Folder/Subfolder/ (no quotes or character escaping needed for the default value of a string property) then just assign something like the following to your Param.1 property of the XMLQuery:  Local.URLBase & "filename.xml" (a simple evaluate will confirm your efforts).
    Regards,
    Jeremy

  • URL constructor for XML query

    I can't seem to construct an http SQL query correctly using the Java URL constructor. When I enter the following string in the browser window, everything works fine:
    "http://aaaa.bbb.ccc.com/nwind?sql=select * from employees for xml auto&root=root". The results of the query are displayed in the browser window. I would like to get this to work using the URL and URLConnection classes. It seems I always get some sort of error with a response length of -1. I would appreciate any insight into this problem. Thanks for your help.
    Paul J. Lay
    [email protected]

    Thanks for your prompt reply. I tried your suggestion immediately. It didn't change the results. I still get a response length of -1. You can actually try this yourself by keying in a browser window the following string: www.itsmagical.com/nwind?sql=select * from employees for xml auto&root=root. I can't imagine what the problem could be. Thanks again for your prompt reply.
    Best Regards,
    Paul J. Lay

  • XML Loader action URL via global properties with no drive letter

    Trying to use the XML Loader action. If we hard code the URL as "c:\Inetpub\wwwroot\Camstar\Errors\logDetails.xml" it works fine. We want to use several global properties to construct the URL as follows.
    Resulting in:
    10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml.
    This does not work in the XML Loader action configuration but will work in IE every time. The XML Loader action throws the following errors.
    [ERROR]: Unable to complete requested action on XML document.
    10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml (Access is denied)
    [ERROR]: ACTION FAILED: End Action XmlLoader_LogDetails : ()
    Does anyone know how to resolve this issue?

    Tim,
    Ron is right about IE using the Microsoft magic of switching between Windows Explorer and Internet Explorer to locate the file.
    Your best bet would be to construct a true http formatted string such as:  http://localhost/Camstar/Errors/logDetails.xml
    This would of course be only good for files on the local server, but would also be very upgrade friendly for version 12.0 migration.  UNC paths would not work to other servers or network shares either.
    If the xml files are in the IllumDoc Rowsets/Rowset/Row format you could just as easily use and XMLQuery action block instead of the XMLLoader, which might make it easier you to use the [Param.x] tokens in the template, etc.
    Regards,
    Jeremy

  • Replacement Path variable with query

    Hi all,
       I have a replacement path variable in a query that use the result from other query (a pre-query), both of them use the same variables, exactly the same, although the query ask me for the values of the variables twice (for the query and for the pre-query), is possible that the query ask me for the  variables only one time (re-use the same values for both queries)?
    Thanks,
      Javier

    If possible use only the variable with replacement path on the query. Since the Pre-query has all the same variables as the main query, the user would enter all the required input on the pre-query one time. The result of the pre--query feeds the main query. If the main query has no other selection variables except for the replacement path, the selection screen will not pop up again.
    Thanks
    Vineet

  • JavaContentSet - use an environment var as part of the url-path

    Hi,
    I startet to use JDeveloper beside Eclipse.
    As such i got some ressources in my Eclipse workspace i want to use in my JDeveloper Projekt.
    Its easy to tell JDeveloper to link some Resources from the Eclipse Workspace into my JDeveloper Workspace. But i dont like the url-path Syntax. In my Case its ../../eclipseWorkspace/eclipseProjekt.
    It works, but its far away from perfect, because other developers would prefer different workspace layouts. As such it would be fine to be able to extend a environment variable to get the url-path. Example: "%ECLIPSE_WORKSPACE%/project/src/main/java" instead of "../../eclipseWorkspace/project/src/main/java".
    Is there a way to reach this goal?
    thx
    Bernhard

    Uf, sorry
    the alias has to be the first element of the RID.
    So if the RID is:
    /documents/user01/tester.txt
    and user01 is logged in, call:
    .../irj/go/km/docs/~alias~/documents/<user.id>/tester.txt
    or:
    .../irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/~alias~/documents/<user.id>/tester.txt
    (i've tested it now for being sure).
    Romano

  • URL paths and regular expressions in ASDM

    Some background info - I've recently switched to an ASA 5510 on 8.4(3) coming from a Checkpoint NGX platform (let's say fairly quickly and without much warning ). I have a couple questions and they're kind of similar so I'll post them up. I've read docs about regex and creating them both via command line and ASDM, but the examples always seem to include info I don't need or honestly something I don't understand yet (mainly related to defining class\inspect maps). If someone could provide a simple example of how to do these in ASDM that would help a lot in understanding how regular expressions are properly configured. So here we go.
    I know this is basic but I need to make sure I understand this properly - I have a single web server (so this won't be a global policy) where I need to allow access to a specific URL path\file and that's it. So we'll call it \test\testfile.doc. Any other access to any other path should be dropped. What's the best way to do this in ASDM (6.4)? I think if I saw a basic example for this I could figure out next few questions but I'll post them as well just in case.
    I have another single public web server (again this won't be a global policy) where I'd like to specify blocking file types, like .php, .exe., etc... again a basic example would be great.
    Lastly, and this is kind of related, but we have a single office/domain and sometimes we get spam from forged addresses appearing to be from our domain. On Checkpoint I used to use its built-in SMTP security server and could define if it received mail from *@mydomain.com to drop it because we would never receive mail externally from our own domain name. I saw something similar with ESMTP in ASDM and it looks kind of like how you set up the URL access mentioned above. Can I configure this in ASDM as well, and if so how?
    TIA for your help,
    Jordan

    /bump

  • How to move up within a URL path?

    Recently started using URLs in my programs. Works great. However, all the
    time I have been wondering how to move up in that URL path. For example,
    if my url1=("http://www.something.com/") I normally end up at the index.html.
    But how could one set up a relative url reaching a file or directory at the same
    level as that index.html? I suppose one should go up onel level and then
    specify the name of the required file.
    I tried to use things like url2= new URL(url1,"../myfile") but that doesn't seem
    to work.
    Anybody has an idea? Thanks in advance.
    Dirk

    martin@work wrote:
    Hi,
    you can't, if your web server provides the minimum of security. In the web server configuration you normally map a base url to a physical directory on the server and the web server does its very best to assure that you can only access files in that physical directory and below, and that all other files on the server in any upper or parallel directories are not accessible.
    If you want to access files in a parallel directory then you have to create a further mapping in the web server which maps another base URL to that directory.
    Martin To reinforce what Martin says: if you cannot do this with your web browser, don't expect to do it with Java.
    On the other hand, if you can do it in your web browser, we misunderstood your question and please
    reformulate it using actual URL's (or at least the portion following the host name).
    Edited by: baftos on Apr 25, 2008 9:28 AM

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • Creating new flat file using TextEdit w/specified name and path

    Hi all,
    I am working on an Applescript to create a blank new plain text file (in /tmp with a unique filename derived from today's date and time) and am missing something 'cause I keep getting an error message.
    Here's the code:
    <pre class=command>
    set Today to (do shell script "/bin/date +%Y%m%d%H%M%S") as string
    set DefaultFilename to (Today & "TMP.txt") as text
    set TMPpath to "/tmp/" as text
    set TMPFile to (TMPpath & DefaultFilename)
    tell application "TextEdit"
    set NewDoc to make new document with properties {name:DefaultFilename, path:TMPpath}
    end tell
    </pre>
    When I run the above code snippet I get the Applescript error message:
    TextEdit got an error: NSArgumentsWrongScriptError
    I understand that the properties listed in the make command should be a record, and that the individual properties comprising the record should each be text.
    What am I missing here? Something obvious I suspect.
    Any ideas would be greatly appreciated!
    Ed

    You're trying to use Unix-style paths for a Cocoa app, and that won't work.
    You need to use Mac-style paths, that is, colon-delimited, not unix-style (slash-delimited) paths.
    <pre class=command> set Today to (do shell script "/bin/date +%Y%m%d%H%M%S") as string
    set DefaultFilename to (Today & "TMP.txt") as text
    set TMPpath to ":private:tmp:" as text
    set TMPFile to (TMPpath & DefaultFilename)
    tell application "TextEdit"
    set NewDoc to make new document with properties {name:DefaultFilename, path:TMPpath}
    end tell</pre>
    A slightly better solution is to use the path to command rather than a hard-coded path. path to temporary items will give you the path to the current OS temporary file directory, which is more reliable than hard-coded strings, especially since non-English versions of the OS mght not use the same path names.
    <pre class=command> set TMPpath to path to temporary items as text</pre>

  • When opening a pdf in Firefox from a website, the navigation bar disappears. I would like to copy the URL path to send to staff.

    Using Acrobat Pro XI, Windows 7-64, Firefox 25. If I open a PDF from a website link in IE, the PDF opens and I can see the URL path where I can copy it and send to others. Opening the same link in Firefox does not show the URL path. I get the File, Edit menu but no URL.

    Is the PDF opening in a separate (popup) window? Sites can alter which bars appear on a popup window, but the address bar should always be visible (that's the default setting). Could you check and make sure that hasn't changed?
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''window_o''' and pause while the list is filtered
    (3) If the '''dom.disable_window_open_feature.<u>location</u>''' preference is bolded and "user set" to false, double-click it to switch it back to true so sites are disabled from hiding the location (address) bar on popup windows.

  • How to use Site collection url in feature xml

    Hello Experts,
    I think i am asking a very simple question but this question has realy desturbed me.
    I want to deploy 2 script files using modules in style library.
    here is elements.xml file of module.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="Scripts" Url="Style Library">
    <File Path="Scripts\jquery-1.3.2.min.js" Url="jquery-1.3.2.min.js" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" />
    <File Path="Scripts\splitlinks.js" Url="splitlinks.js" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE"/>
    </Module>
    </Elements>
    but when i activate the feature at root site collection then these files are deployed .. no probulem.
    but when i activate the feature on some other site collection like /sites/test then files should go to /sites/test/Style Library
    but it is not going there !!
    this is my requirement please help
    Mukesh

    Hi,
    Hi,
    Add the Path attribute to the following xml and verify again
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="Scripts" Url="Style Library/Scripts" Path="Style Library">
    <File Path="Scripts\jquery-1.3.2.min.js" Url="jquery-1.3.2.min.js" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" />
    <File Path="Scripts\splitlinks.js" Url="splitlinks.js" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE"/>
    </Module>
    </Elements>
    Please mark it answered, if your problem resolved.

  • XI 3.1 sp2 url path for report folders

    In XI R2:
    To navigate to the report folders we have used :
    http://<server name:Portnumber > /businessobjects/enterprise115/desktoplaunch/InfoView/main/main.do?objId=0
    What is the equivalent of url path in XI 3.1 SP2..
    Edited by: senthil gobal on Apr 29, 2010 10:56 PM

    The path doesn't change in XI 3.x the way it did in XIR$2 also the SDK has changed. You may want to post in the SDK forums to get help updating your code. If you were hitting main.do
    I assume your code was creating a logon session for you in some way? There is a link to the SDK forums in the sticky post at the top of this forum.
    Regards,
    Tim

  • How to use web services with Dynamic url behaviour

    Hi,
    IView created by me currently uses some web services whose url behavior is static but i want to give a dynamic url behavior. i.e. i want to use the url which user provides. So here are my questions
    1. How I shall assign the url supplied by the user to IView?
    2. If I want to set some config variables during runtimes how I shall do it?
    Thanks in advance,
    Vishvesh

    Hi,
    1. I'm guessing you mean the webservice's url the user provides is pointing to an identical webservice to what you used to create your proxy... otherwise I think it will be very hard to do (I can imagine creating the proxies using the wsdl tool in run time or using code dome.. but that can't be what you want, right?).
    So if what you wanted is to use the same web service with a different url, then the web service's proxy class you created has API for doing this in code! (it inherits it)
    2. you can't, simply since the portal application doesn't ever use the config file... it isn't even deployed to the portal... so dynamic properties are "out of the question" here, sorry... see 1 again
    Regards,
    Ofer

  • Global Properties versus file under WEB

    I have a situation where I am using a central MII server to use virtual xacute queries to retrieve data from a number of remote plants.  For some reason, the client does not want to use Global properties to set Remote site specific properties.  In order to use generic transactions, I now use a set of filesunder the WEB folder to contain the site specific data.  These files are text in nature, but I anticipate using xml files there in the future.
    Can anyone tell me the pros and cons of using WEB folders versus Global Properties?
    I already know that it requires more sequences and action blocks to load the information instead of just referring to the property, but are there other drawbacks?
    What kind of performance hit will I take with this approach?
    Any thoughts?

    I think you answered the question yourself
    The biggest question would be
    1. Maintainability (Maintaining Global properties as opposed to maintaining a file would definitely be easier)
    2. Accessibility.
    From a performance point I don't think it'll be too big a overhead reading XML or text files but the above 2 reasons should win the argument for global properties.
    Other than that if these remote calls are User/Role specific then you can explore Custom Attributes as well , which are global in nature and easily accessible.

Maybe you are looking for

  • Diff b/w netweaver platform and exchange infrastructure.

    Dear SDNers, I am new to net weaver.first of all what is the diff b/w netweaver platform and exchange infrastructure. i want to learn more about net weaver.if anybody give me the links, i would be grateful to them. reward sure... Senthil kumar

  • PCI slot in Thinkpad Dock II unusable

    Hello, I have a Thinkpad a22m 2628-S1U which can be used with the Thinkpad Dock II. To avoid feeling tempted to buy a new laptop I bought that dock as well as an ATI Radeon x1550 to put in its PCI slot. These items were said to be compatible on http:

  • Transfer of Video from Windows Movie Maker to PE7

    Hi, I put together my first video using Windows Movie Maker, and the audio tracks are wma files. I just got Premiere Elements 7 and want to transfer the video to it from Movie Maker, but I understand that in PE7 audio files should be either mp3 or wa

  • Importing images in Word file

    Hi, after importing a Word doc into RH7 most images are correctly displaying in their topics but some just show a placeholder and filename of a .png image. This means presumably that png images are not supported by the Word conversion routine. I have

  • Mac Newbie trying to get a handle on photoshop pull downs

    I am fairly new to osx and really love the design of photoshop with one exception: layer pull downs.  When I used photoshop on a pc I could select the layer mode and then up or down arrow key to preview how a  layer mode would look.  I could just up