Link Editor - need to parse contents of a URL

I am receiving an xml document in a transaction that is all one string, such as:
"db://MyLibrary/WEB/Work/12345.xsl"
And I need to be able to parse it out to retrieve the part of it after the last "/" - 12345.xsl.
How do you find the last occurrence of a character (or count them) in the Assign action in MII?

Hi Scatham,
Try using the String List To XML Parser action in the XML Functions category.  Your input string will be "db://MyLibrary/WEB/Work/12345.xsl" and the Delimeter will be "/".  The output will be an xml document, in MII format, with each piece inbetween the / (forward slashes) in its own row.  The file name will always be in the last row.
Kind Regards,
Diana Hoppe

Similar Messages

  • Tag Query error when assigning mode in Link Editor

    Hi,
    I am receiving the following error when I run a transaction that contains a Tag query.  In my transaction I have set the tag query mode to be defined by a local property via the link editor.  Then when I execute the transaction I get the following error:
    "[ERROR] [TAG_QUERY_WRITE_TAG]com.sap.xmii.Illuminator.logging.LHException: Mode parameter was not found or is malformed"
    I am on version 12.1.8 Build(43).
    I import the project into MII 12.1.4 Build(53) and the transaction works as expected.
    In the new verson of MII is there a bug utilizing the link editor to set mode?  Or is there a specific way it wants the mode linked. (e.g. specific case)
    Additional details:
    I am trying to use the CurrentWrite mode.  I have tried setting Current mode via the link editor and that isn't working either. 
    Any suggestions?
    Thanks,
    Justin

    Hi Mike,
    Please correct me if I understand the logic incorrectly.  But here is what I am thinking....
    I have configured my transaction to have this flow:
    String_List_To_XML_Sequence --> Repeater_TagValues  -->  TAG_QUERY_WRITE_TAG
    The String_List_To_XML_Sequence would contain String_List_To_XML_Parser_TagValues & String_List_To_XML_Parser_TagNames.
    With this flow the logic would say that I will be running a seperate tag query for each tag value.  So if I have 100 tag values that I want to send, I will run 100 tag queries.  This doesn't seem the most efficient.  Also if this is how you were thinking I would configure the transaction then I could use the following links:
    Target Xpath: TAG_QUERY_WRITE_TAG.TagValue.1
    Expression: String_List_To_XML_Parser_TagValues.Output{/Rowsets/Rowset/Row[#Repeater_TagInput.CurrentItem#]/Item}
    Target Xpath: TAG_QUERY_WRITE_TAG.TagName.1
    Expression: String_List_To_XML_Parser_TagNames.Output{/Rowsets/Rowset/Row[#Repeater_TagInput.CurrentItem#]/Item}
    With this configuration updating 10 tags takes 2 seconds:
    [INFO] Statistics [Load = 35 ms msec, Parse = 35 ms, Execution = 2015 ms, Total = 2067 ms]
    With my old configuration updating 10 tags took 700 ms. (original transaction on 12.1.4 Build (53)
    [INFO] Statistics [Load = 11.137 msec, Parse = 224.113 msec, Execution = 451.78 msec, Total = 736.62 msec]
    Please let me know if I interpreted your thoughts incorrectly.
    If there is a way to utilize only 1 Tag Query, then I am not sure how the transaction flow should be configured.
    Thanks for your time,
    Justin
    Edited by: Justin M Brown on Jul 14, 2011 7:29 PM
    Edited by: Justin M Brown on Jul 14, 2011 7:33 PM

  • Handling Infinity in Link Editor

    Hi,
    I have requirement where I need to handle value 'Infinity' (∞) in Link Editor and set certain conditions based on that. But the conditional statements (if, stringif) do not seem to catch it (MII version 12.2)
    ∞ as number(integer, double) is not recognized by Link Editor, but "∞" as a string is accepted. Hence I tried converting it to a number using number("∞"). But that too doesn't work.
    Any idea on how this can be acheived?  Thanks
    Note: I get ∞ as an output of SPC Component as its considered as the a valid value per the requirements

    Yes it is.
    For AND : <<Condition1>> <b>&&</b> <<Condition2>>
    For OR : <<Condition1>> <b>||</b> <<Condition2>>
    You can use the <b>double ampersand (&&)</b> for <b>AND</b> and <b>double pipe (||)</b> for <b>OR</b>

  • Passing query template name to BLS SQL action in the link editor

    I want to have one transaction that uses the SQL query action, but which query template it uses will be dependent on some user input. I am having trouble passing the query name. I'm using the full file path in xml format (i.e. "c://<folder1>//<folder2>//<folderN>//"&PassedFileName&".xml", but with backslashes instead of forward slashes). I got an error around the connector, so I set that too. Then I got an error around mode, so I set it to "FixedQuery". Now I'm getting, "The Query expression was not set with the Query parameter".
    There are only 3-5 possible queries that will be used, so I'd rather build SQL queries and just pass the transaction the name of the query, as opposed to passing the full text of the query each time.
    Thanks,
    Carrie
    Edited by: Carrie Schimizzi on May 9, 2008 6:38 PM
    Edited by: Carrie Schimizzi on May 9, 2008 6:39 PM
    Edited by: Carrie Schimizzi on May 9, 2008 6:40 PM

    Carrie,
    If you haven't already done so, configure your master BLS transaction with a proper representative runtime variation, which will make the whole process simpler to create and troubleshoot.  Quite often when people try to use the dynamic capabilities of MII, they end up getting confused because of user over-complication.  In your SQLQuery action block make sure you configure it to a valid template that would be one that the user would provide as an input (don't forget to allow the generation of sample results for making any subsequent trx efforts easier).  Then look in the link editor and you should see this string value for the query template link if you hover over the corresponding blue T icon.  This will show you the format you need to provide from your Transaction input property (which should also have a valid default value assigned so you can test the transaction by itself, without needing to initially rely on the Xacute Query template layer.
    Regards,
    Jeremy

  • Enhance Req: ADF BC Assoc and Link editor

    Hi JDev team
    I'd like to raise the following enhancement requests please for JDev 11g TP.
    For both the ADF BC Association and Link editor, to view the Relationship you need to click on the Relationship category. Seems to me 9 times out of 10 when you access these objects you want to see the relationship. I'd suggest the Relationship information needs to be under the General category as part of the default view.
    Can you raise an enhancement request for this please.
    Also, for the Association editor, to view the properties of the association, you need to click on the Relationship category, Accessors editor button, and then in the Association Properties dialog you see the association properties (eg. Implement Cascade Delete etc). This seems unnecessarily hidden too deeply.
    Can you raise an enhancement request to promote these options to the editor rather than in this dialog please.
    Thanks & regards,
    CM.

    Filed ER for the first one (#6121857)
    The 2nd one has already been implemented post-JavaOne Tech Preview. There is a "Behavior" section on the Relationship panel now with those options accessible.

  • Link-editor

    Hello,
    Wanted to get some help/advice regarding the following.
    I see that there are generally two link-editors available - /usr/ccs/bin/ld and /usr/ucb/ld
    I am guessing that generally the two lds are the same, except that ucb (where applicable) makes use of BSD semantics/routines and provides BSD compatibility, where as ccs is the more “standard” Solaris link-editor.
    I also see that the Solaris Lib and Linkers Guide only makes explicit reference to the ccs link-editor.
    What are the pros/cons of using either of these ?
    Is the /usr/ccs/bin/ld the Solaris/Sun recommended ld to make use of to link-edit C/C++ code and if so why ?
    I do notice that using ucb requires /usr/ucblib/libucb.so.1 to be installed and hence incurs a hard run-time dependency on an optional Solaris package (BCP) and this package is not part of the base Solaris install/run-time and would need to be explicitly installed.
    Are there any issues arising from switching from /usr/ucb/ld to /usr/ccs/bin/ld
    Thanks very much

    akumargolf2000 wrote:
    Hello,
    Wanted to get some help/advice regarding the following.
    I see that there are generally two link-editors available - /usr/ccs/bin/ld and /usr/ucb/ld
    I am guessing that generally the two lds are the same, except that ucb (where applicable) makes use of BSD semantics/routines and provides BSD compatibility, where as ccs is the more &#147;standard&#148; Solaris link-editor.
    I also see that the Solaris Lib and Linkers Guide only makes explicit reference to the ccs link-editor.
    What are the pros/cons of using either of these ?
    Is the /usr/ccs/bin/ld the Solaris/Sun recommended ld to make use of to link-edit C/C++ code and if so why ?I guess if you need more or less an official answer, you should try Solaris linker forum, not compiler's forum.
    As to why /usr/ccs/bin/ld should be used - this is modern linker, it is patched and enhanced on a regular basis and is used by Sun Studio compilers. Don't know if C++ compiler, for example, will work correctly with linker from ucb/ (or rather the other way around).
    akumargolf2000 wrote:
    Are there any issues arising from switching from /usr/ucb/ld to /usr/ccs/bin/ld This definitely calls for a linker expert. Please post it to http://www.opensolaris.org/jive/forum.jspa?forumID=63

  • Logical expressions in Link editor

    Hi all,
    Is it possible to define logical expressions (using AND, OR) in the Link editor of BLS or are we left with only using the Conditional Action block? Thanks...

    Yes it is.
    For AND : <<Condition1>> <b>&&</b> <<Condition2>>
    For OR : <<Condition1>> <b>||</b> <<Condition2>>
    You can use the <b>double ampersand (&&)</b> for <b>AND</b> and <b>double pipe (||)</b> for <b>OR</b>

  • Bug in View Link editor

    When creating a many-to-many view link based on a many-to-many association, the view object on the left must be based on the entity that was on the left when creating the association. Why is this? Surely it shouldn't matter.

    Just to add to this:
    If the view object on the left of the link is not based on the entity that was on the left when creating the underlying association then the accessors for the association will not be visible under the view in the link editor.

  • The Web application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application

    Hi,
    I have created on windows service to fetch sharepoint list ad update the list items.
    when i run this service in sharepoint server(where the sharepoint site is hosted),it is working fine. If i run the same service in another machine(sharepoint installed in this machine also). it is giving the below error
    The Web application at [URL] could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
    Code snippet
    SPSite sharepointSite = null;
                SPWeb rootWeb = null;
                try
                    //SPList current = null, previous = null;
                    string colmId = ConfigurationManager.AppSettings[ID_COLM];
                    List<TaskEntity> list = new List<TaskEntity>();
                    sharepointSite = new SPSite(URL);
                    rootWeb = sharepointSite.OpenWeb();
                    SPList current = rootWeb.Lists[ConfigurationManager.AppSettings[OMEGA_REGISTRATION_LIST]];
                    WriteEventLog("current" + current.Items.Count.ToString());
                catch (Exception ex)
                    ExceptionMethod(ex);
                finally
                    sharepointSite = null;
                    rootWeb = null;
    I have pointed .net framework to 3.5 version and target palform as Any CPU. Please suggest me

    Hi mallela1,
    I also had similar issue couple of months back when I was trying to access a remote URL from a Windows service when the site does not exists in the server where service resides.
    You cannot access a remote url (even though it is SharePoint server and also in same network ) from server object model.
    SPSite can look in the current server only. here what is happening is SPSite will look for this in the current server DB and it is not finding this errror.
    So please dont use ServerObject model for accessing remote sites. You can use Client Object model for the code /requirement you have stated above.
    I wasted lot of time in finding a work around to make to work. It did not. So look for other options.
    Regards,
    Nandini

  • I have an Iphone 3Gs. I need to get contents of messages that were sent and received on the phone in June for evidence in court. I read online that the Iphone internal storage keeps all data done on phone in the storage. How do I get into it?

    I have an Iphone 36s. I need to get contents of messages that were sent on the phone in June of this year. I read online that the phone has an internal storage that keeps all data when phone is used and that this internal storage can be accessed. I need the contents of particular messages for evidence in court. How do I get into the internal storage? I've tried some of the methods that people post online, but none of them have been successful. Help!

    If you still have a backup from that point in time as part ofr your computer backup history, you could restore the backup folder, restore the phone from that backup and have the messages on the phone.
    More details about restoring from old backups can be found here: iPhone and iPod touch: About backups

  • Passing "-t" option to link-editor via CC

    Hi!
    Here is the simple task.
    we have some source file which is compiling with simple command:
    CC ./some_simple_file.C -lsome_lib -lanother_libCompilation process succed but we have the warning message:
    ld: warning: symbol ‘array’ has differing sizes:
    (file /path/libsome_lib.a value=0x4; file /path/libanother_lib.o value=0x8);
    /path/libsome_lib.a definition takenWell, apart from this warning - all works fine and the link-editor do matching symbol correctly in this case.
    To do not confuse users/parsers/mgrs team - we decided to remove this warning. Ok, here is a quote from sun linker document about "how to remove such warning" in section "Symbols Processing"->"Complex resolution":
    +....In both of these cases, the diagnostic can be suppressed by using the link-editor's -t option....+
    Thats nice! Lets go with this new option:
    CC -t ./some_simple_file.C -lsome_lib -lanother_libWe finally removed warning. But...oops! weve got another one!
    CC: Warning: Option -t passed to ld, if ld is invoked, ignored otherwiseQuestion! How we can pass -t option to the link-editor via CC cmd call and without any warnings?

    There doesn't seem to be a way to pass -t to the linker without the warning. You could file a request for enhancement via your Oracle support channel, if you have a service contract. Or you could file one at [http://bugs.sun.com]. (I'm not sure if that site is still active.)
    The best solution is to fix the problem and eliminate the reason for the warning, by making the declarations consistent. You might suppress warnings that matter if you always use -t.

  • ODI 11g link editor problem

    Hi
    I have recently upgraded to ODI 11g from ODI 10g.
    In ODI 11g when we are clicking on the Link Editor option it is throwing following error.
    ODI-20344 Cannot Launch the editor for this expression
    sun.awt.X11.XException: Cannot write XdndAware property
    We are using JDK1.6 .Please let me know the solution at the earliest.
    Thanks!!

    Thanks!! We have tried your solution ,it is working for first time, when we are trying to edit any other expression i.e second time, it is the trowing the same error.
    Edited by: 898955 on Nov 24, 2011 2:16 AM

  • Is there a ¿ is number function ? in the  link editor

    Good afternoon all,
    I would like to test if a character is a number or a string .  ¿ How can I do it ? .  I can not find any function in the link editor .
    Thanks in advance,

    If you use the number() function here are the results you will get:
    number("300") returns 300
    number("abcde") returns error
    number("301abcde100") returns 301
    number("abde300") returns error
    a better way to test for a number only vs an alphanumeric string is to use the format function like this:
    format(300,"#") returns 300
    format("300","#") returns 300
    format("abcde","#") returns error
    format("301abcde100") returns error
    format("abde300") returns error
    regards, Steve

  • Link editor - & and | symbols

    What's the use of "|" (pipe) symbol available in the calculations area of the Link editor? I thought it was an "OR" operator. But it doesn't seem to work as an "OR"
    Any ideas? I understand "&" is used to do a concatenate.

    hi,
    As per my understanding the link editor is based on xPATH. I have gone through some tutorial pages of xpath.
    In the logical expression thread you intimated that <b>or</b> and <b>and</b> is working as loical operators.
    In the same way | this symbol is used for the purpose of union operator.
    I am also working to make a good example. If you know something, plase update here.
    Some one else is asked for the not opertor. Try with this.
    <b>not()</b>
    Regards,
    P.S.Kishore kumar

  • How to change the name of an XML data element in link editor?

    Hi,
    Is it possible to change the name of a data element dynamically while doing the assignment in the link editor?
    Something like Transaction.ReceiveXML{/Rowsets/Row/Name1 (name="Name2")}?
    Regards,
    V M.

    Hi VM,
    in the link editor you can use the Dynamic Link (see [Expression Editor|http://help.sap.com/saphelp_mii121/helpdata/EN/45/b89adfaf1447f7e10000000a114a6b/frameset.htm]).
    With the dynamic link, you can enclose the property that contains the value with "#", which makes MII evaluate the value rather than use the property name. In your example, it looks something like this:
    ReceiveXML{/Rowsets/Row[name='#MyProperty#']}
    Hope this helps.
    Michael
    Edited by: Michael Otto on Oct 27, 2010 8:09 AM

Maybe you are looking for

  • SAP BO WebI Report on top of BI Bex Query with Authorization Variable

    Hi,      We are trying to restrict row level data using BI 7.0 analysis authorization concept. We have an authorization variable in the Bex query and is working perfect in Bex Analyzer as well as in RSRT. Now we are trying to achieve the same thing i

  • Kernel Panic When Installing OS X

    Hey everybody.. I have a strange Problem with my Mac Pro (1st revision).. if I try to install Leopard (or even Tiger from my old system disc) I get to the point where the Apple Logo shows up with lots of spinning going on underneath it.. then, the cr

  • Error "Error ERR-1014 Application not found. " after Installing APEX 40

    Hello, i have installed apex 4 to an existing apex 3.2 installation (oracle 11g windows) with oracle http Server. i follow the installations guide and install the full version. I try to call "http://dmsapex:7777/pls/apex/apex_admin" and it works and

  • 500 null error trying to run JSP

    I installed Coldfusion Developer Edition, which I understand can run JSP files with JRun. When I try to do so, however, I receive a "500 null" JRun Servlet Error. The file can be completely empty and I'll get this same error. As you can imagine, this

  • Problems with internet

    every one in the office uses windows xp we have a Ft connection , i have install solaris 10 on my p4 3 ghz computer , the network card is working fine i can see when is sending and reciving data but when i try to open INTERNET to browse the net ( the