Make string from XML into link??

I am using httpServices to import data from an XML file. The data is returned as a string but I need it to be a clickable link. Please help.
here is my simple code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="myService.send()">
    <mx:HTTPService id="myService" url="data/infocenter_links.xml"/>
    <mx:DataGrid width="300" dataProvider="{myService.lastResult.links}" />
</mx:Application>
Here is a sample of the XML....
<?xml version="1.0"?>
<links>
<link>url:www.mmprint.com</link>
</links>
any help is greatly appreciated!!!

Another option is to create a custom renderer and use the htmltext attribute of a text control, like this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" height="100%" width="100%" horizontalScrollPolicy="off">
    <mx:Script>
        <![CDATA[
            import mx.controls.dataGridClasses.dataGridColumn;
            [Bindable] protected var myURL:String;
            override public function set data(value:Object):void {
                myURL= '<a href="http://www.example.com/myPage.php?pageID="'+value.id+'" target="_blank">'+value.name+'</a>';
        ]]>
    </mx:Script>
    <mx:Text htmlText="{myURL}" height="100%" width="100%" />
</mx:Canvas>

Similar Messages

  • Error editing task sequence: Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" From XML into WMI

    I've started getting an intermittent error editing my Windows 7 OSD task sequence.  Sometimes I can open the TS to edit, but when I try to apply changes I get the error.  Other times I get the error when trying to open the TS.  If I try again
    right away, I still get the error, but if I wait a few minutes and try again sometimes it will open the TS. 
    The error reads:
    ConfigMgr Error Object:instance of SMS_Extended Status{Description = "Failed to load dynamic properties for class \"SMS_TaskSequence_ApplyWindowsSettingsAction\" from XML into WMI";Error Code = 2147943746;File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";Line = 3454;Operation = "ExecMethod";ParameterInfo = "SMS_TaskSequencePackage";ProviderName = "WinMgmt";StatusCode = 2147749889;}
    Coinciding with this error, I show the following entries in the TaskSequenceProvider.log file: 
    [PID: 7608] Invoking method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Failed to protect memory buffer, hr=0x80070542
    TaskSequenceProvider
    Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load node Apply Windows Settings from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "PostInstall" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "Execute Task Sequence" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load XML for the task sequence into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    [PID: 7608] Done with method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Setting status complete:  status code = 0x80070542; Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI
    TaskSequenceProvider
    I exported the task sequence and checked in "object.xml" for the "ApplyWindowsSettingsAction", to see if there was something odd in the xml, but I don't find anything that jumps out as being wrong.  Here's the section of XML for
    that step.  I've removed identifying info, and replaced it with a generic term in bold.
    <step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="" runIn="WinPE" successCodeList="0" runFromNet="false"><action>osdwinsettings.exe /config</action><defaultVarList><variable name="OSDLocalAdminPassword" property="AdminPassword"></variable><variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable><variable name="OSDProductKey" property="ProductKey"></variable><variable name="OSDRandomAdminPassword" property="RandomAdminPassword">false</variable><variable name="OSDRegisteredOrgName" property="RegisteredOrgName">COMPANY NAME</variable><variable name="OSDRegisteredUserName" property="RegisteredUserName">COMPANY NAME</variable><variable name="OSDServerLicenseConnectionLimit" property="ServerLicenseConnectionLimit">5</variable><variable name="OSDTimeZone" property="TimeZone">Central Standard Time</variable></defaultVarList></step><step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="" runIn="WinPEandFullOS" successCodeList="0" runFromNet="false"><action>osdnetsettings.exe configure</action><defaultVarList><variable name="OSDDomainName" property="DomainName">DOMAIN.COM</variable><variable name="OSDJoinPassword" property="DomainPassword"></variable><variable name="OSDJoinAccount" property="DomainUsername">DOMAIN ACCOUNT</variable><variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable><variable name="OSDNetworkJoinType" property="NetworkJoinType">0</variable><variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable></defaultVarList></step>
    Is there any other log I should check for a clue on this issue?  What could be causing this error?

    Thanks for sharing that!  I tend to save contacting MS support until after I've exhausted other options.  I'm always afraid that I'll spend the $500 to open a case and then it turns out to be something simple that I would have found if I had just
    kept working on it myself a little longer.
    It looks like that link is for an update released in February as KB3023562.  I downloaded and installed it. I'll try opening/editing/saving the task sequence a few times today to see if the issue is resolved.  
    After I had already installed it, I thought to look up that update in configmgr.  The update is listed as superseded by 2 other updates.  The newest of those is KB3046049, which just installed last night with the other March patches, so it's possible
    that I didn't need to install KB3023562 after all.  

  • Need help in automating text from xml into illustrator

    I have seen some examples of automation script for filling text from xml into illustrator, need some help in this matter.
    Need script (currently working in mac OS)

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Output strings from loop into one string

    im trying my best to explain my problem so ber in mind:)
    hey having a bit of trouble with outputing strings from loop
    example
    i typed ab into the textbox
    the output should be 12
    but since it is in a loop it would only output the last string and in this case is 2
    im trying to get both strings from the loop and output strings from loop into one string.
    here is some of my code to understand my problem
    // characters a to f
         char[] charword = {'a','b','c','d','e','f'};
         String charchange ;
      // get text from password textbox
                          stringpassword = passwordTextbox.getText();
                          try {
                          // loop to show password length
                          for ( int i = 0; i < stringpassword.length(); i++ ){
                          // loop to go through alfabet     
                          for (int it = 0; it < charword.length; it++){
                             // if char equals stringwords
                               if (stringpassword.charAt(i) == charword[it]){
                                    System.out.print("it worked");
                                    // change characters start with a
                                    if (charword[it] == 'a'){
                                         charchange = "1";
                                    // change to 2
                                    if (charword[it] == 'b'){
                                         charchange = "2";
                                        }

    Not sure how you are displaying the result but you could display each value as soon as you find it.
    if (charword[it] == 'a'){
        System.out.print("1");
    }If it is in a text field then use append. Or if you really need a String with the entire result then use concatenation.
    if (charword[it] == 'a'){
        charchange += "1";
    }

  • How to make xsd from xml file?

    Hi,
    i have one xml file which has many node and element.
    anyone know how to make xsd from the xml file in order to make DT by using xsd ?
    Thanks and Best Regards;
    BangBang

    HI
    there are multiple ways of doing this if you have XML based 3rd party tool with you.. you can search on Google also and will get many tools which can convert this to XSD..
    few links with similar discussion..
    How to convert XML file into DTD or XSD
    XML to XSD
    How to creste a XSD ?
    Thanks,
    Bhupesh

  • Reading and Writing from XML into database

    Dear all,
    We have a requirement where we have to upload data to FTP location in XML files, and then read from this into our database daily 2-3 times a day.
    We have oracle 11g database, can someone kindly guide me how we can acheive this.
    Also is there any tool for this? my management is thinking of purchasing one if it exists.
    thank you

    user10243788 wrote:
    Thank you miheal,
    is there any tool also we can use?The person I turn to for ideas about XML going into and out of the database is Marco Gralike.
    Here's a sample (a couple of years old now) from his blog of mixing XML and SQL: http://www.liberidu.com/blog/2010/07/29/external-views-xml-based/
    It's the first one I happened to get to when I did a search on his blog for: external table.
    Some time back he sent me an example of running an SQL statement from the database which accessed the internet and pulled back the content of one of my blog pages in a form that would allow me to do: "insert into table select from {XML call}"
    Unfortunately I can't find the code right now - I know I stored it somewhere to make sure I didn't lose it but ...
    Regards
    Jonathan Lewis

  • Make photo grid objects into links?

    I would like to make the photos and captions in the photo grid into links. When I select a photo or a caption in the photo grid, the link inspector is grayed out and I can not click "enable hyperlink". Every thing works fine for images and text not in the photo grid. Is it possible to do this?

    That is the way photo page works, photo grid thumbnails can not be hyperlinked because they are rendered by javascript widget. But you can put a full URL in thumbnail caption and it is hyperlink as discussed in this thread:
    http://discussions.apple.com/thread.jspa?messageID=7358077&#7358077
    However, when you click on the thumbnail to go to detail view, the caption is no longer a hyperlink; because caption in detail view is rendered by javascript widget.
    That said, what you like to do is very possible but you need to have very good understanding how photo page widgets work and a lot of javascript. Here is one of my example:
    http://widgets.cyclosaurus.com/Lytebox/Photos.html
    All thumbnail image links in the page had been changed using javascript.
    Send them a feedback: http://www.apple.com/feedback/iweb.html

  • Loading of data from XML into Portal

    Hi,
    I have a XML schema generated from a Word document, containing chapters and appendices in diffrent levels.
    Is it possible to load this document into Portal text items, keeping the chapter/appendix structure?
    Regards,
    Nathalie

    Several third-party tools support converting a DTD into a "first-cut" XML Schema. It likely will need a lot of subsequent work to get it into a useable format -- since for example, all of the datatypes would need to be string.
    The tools I've personally used to accomplish this (and surely there are others) are:
    [list]
    [*]XML Authority from Extensibility
    [*]XML Spy 3.0 from Icon Software
    [list]
    The canonical format for XSU insert is precisely the default output format you would get by using XSU to generate XML for a select * from tablename statement.

  • Split a multiline string from TextEdit into multiple strings

    Hi all,
    I have a small question. I have a string that comes from a multiline TextEdit used for comments. This string has to be split into multiple strings with max 72 chars. The wrapping is set to "hard".
    Can anybody help me on this?
    Thanks
    Francisco

    Hi Francisco,
    this is the complete code I tested, a bit ugly concerning the println etc... (****, not formatting here?):
    package com.btexx;
    import java.util.StringTokenizer;
    import com.sapportals.htmlb.Button;
    import com.sapportals.htmlb.Form;
    import com.sapportals.htmlb.TextEdit;
    import com.sapportals.htmlb.enum.TextWrapping;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.rendering.IPageContext;
    import com.sapportals.htmlb.rendering.PageContextFactory;
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    public class TextEditExample extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            IPageContext pageCtx = PageContextFactory.createPageContext(request, response);
            Event lastEvent = pageCtx.getCurrentEvent();
            if (lastEvent == null) {
                Form form = pageCtx.createFormDocument("myFormDocument");
                TextEdit te = new TextEdit("Edit_Text");
                te.setId("TextEditID");
                te.setText("Text to change - or just add text");
                te.setWrapping(TextWrapping.HARD);
                te.setTooltip("Edit and/or add text");
                te.setRows(10);
                te.setCols(72);
                form.addComponent(te);
                Button btn = new Button("MyButton");
                btn.setOnClick("react");
                form.addComponent(btn);
                pageCtx.render();
            } else {
                TextEdit te = (TextEdit) pageCtx.getComponentForId("TextEditID");
                String text = te.getText();
    //            for (int j = 0; j < text.length(); j++) {
    //                System.out.println(text.getBytes()[j] + " - " + text.substring(j, j+1));
                StringTokenizer st = new StringTokenizer(text, "nr");
                String[] texts = new String[st.countTokens()];
                while (st.hasMoreTokens()) {
                    System.out.println("Line : " + st.nextToken());
    I swear, I did not press Return within the TextEdit box, and after that, 13/10 appeared within the text. If just this code does not work the same on your machine, then it seems to be a bug in (your) htmlb (because my P/HF are the most actual, at least they have been yesterday).
    Hope it helps
    Detlev
    Message was edited by: Mark Finnern
    added the [code ] [/code ] (without the blanks)

  • Load variables from XML into Flash

    I was wondering how to load variables from an XML document to
    a Flash file? I am familiar with the code to do it for a text file,
    but was wondering how to do it for XML.
    Many thanks in advance!
    JJ

    Thanks for the recommendation on the site. What I am trying
    to do is load varaibles from an XML file into text boxes in my
    flash movie.
    Here is my loading:
    var my_xml = new XML();
    my_xml.ignoreWhite = true;
    my_xml.onLoad = function(success){
    if (success) {
    gotoAndStop("slide01");
    my_xml.load("narration.xml");
    this is what I have on my frame with the text boxes (the text
    boxes are also have the variable name in the variable area)
    var narration = my_xml.picture01;
    var my_title = my_xml.my_title;
    var my_date = my_xml.my_date;
    should I do my_date.text = my_xml.my_date; instead?
    my xml doc looks like this
    <?xml version="1.0" encoding="iso-8859-1"?>
    <picture01>This is the text for picture
    01</picture01>
    <picture02>This is the text for picture
    02</picture02>
    <my_title>Las Vegas</my_title>
    <my_date>October</my_date>
    Any help on this would be GREATLY appreciated!
    Text
    my_date.text = my_xml.my_date;

  • Help needed Importing a string from labview into matlab for file opening

    Hello,
    I am using labview to allow the user to pick the file to open via the
    open labview measurement file block. Then I take the filename and
    convert it from a path to a string and try to import it into my matlab
    script which I use dlmread() to open my data file. However the
    datafile does not open. I was wondering if anyone would help me with
    this method?
    Thank you,

    Hi Nicole,
    Are you using the Matlab Script Node or the MathScript Node?  I know that dlmread is not currently implement with MathScript (although R&D is looking at implementing further features for future versions of LabVIEW).  Also, I'm not sure which VI you are using to get the file path because there isn't an "Open LabVIEW Measurement File" VI.  There are Read & Write LVM and a simple Open\Create\Replace File VI--are you using one of these?  If you are using the Open File VI, Matlab may be unable to read from the file because it is already locked for editing by LabVIEW. 
    I hope this helps!
    Megan B.
    National  Instruments

  • Import/insert data from XML into Oracle database tables?

    Hi. (I am using JDeveloper 10.1.3.3.0 and Oracle 10g)
    I have been able to export the data from one of my database tables by using a View Object and .writeXML.
    Now, I want to take an xml file that is formatted in the same way as what is spit out by the writeXML and put that info in my database table. I followed online examples and have tried using .readXML like so:
    Element element = XMLDoc.getDocumentElement();
    vo.readXML(element, -1);
    I know it is sort of working, because at first I got an error message that one of the required attributes was missing. So, I added that attribute to my xml file and ran my code. No errors. But, I checked my database, and the new records were not added.
    Is there something I have done wrong? Or is there perhaps something I left out? I also noticed there were several versions of readXML like readFromXML. Which one should I use and how?
    Thanks.

    KUBA, I changed my code to match your example:
    DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    File xmlFile = new File("C:/myfilehere.xml");
    Document doc = db.parse(xmlFile);
    Element element = doc.getDocumentElement();
    vo.readXML(element, -1);
    vo.getDBTransaction().commit();
    I still get no errors, but my database table has no new records.
    Any ideas why?
    Thanks.

  • Get string from XML

    I have the following in an execute script. It creates an XML quite nicely. However, I need it to retrieve the data for comparison versus creating an XML. Is there an easy way to convert what I have so this can be accomplished? I need to compare the commonName to a string value that will be static, and store the userId that corresponds to it as a string. 
    DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
    DocumentBuilder bd = fact.newDocumentBuilder();
    Document doc = bd.newDocument();
    Element root = (Element) doc.createElement("users");
    doc.appendChild(root);
    if(userlist != null)
    Iterator iterator = userlist.iterator();
    while ( iterator.hasNext() )
      User eachUser = (User)iterator.next();
      Element UserNode = doc.createElement("user");
      Element ValueNode = doc.createElement("userID");
      ValueNode.appendChild(doc.createTextNode(eachUser.userId));
      UserNode.appendChild(ValueNode);
      Element ValueNode = doc.createElement("commonName");
      ValueNode.appendChild(doc.createTextNode(eachUser.commonName));
      UserNode.appendChild(ValueNode);
      root.appendChild(UserNode);
    patExecContext.setProcessDataValue("/process_data/uXML", (Object)doc)

    I am not sure I follow.
    The Execute Script service instance, above, creates the process variable "uXML" of type Object. Is the intent to iterate over "commonName" in "uXML" in a subsequent operation to determine the existence of the content of a second process variable containing the name?
    Steve

  • HELP! How to make RRI from BEX query into Workbook with one report???

    How to make RRI from query into Workbook???

    Hi Alex,
    A workbook is a set format of queries, so when you try to jump to another query , you will definitely open another session and hence another excel file. This is the same for web templates also though you have an option of opening the new result in the same window.
    You would have to use some macros and open the query on the same page. A RRI is a query jump and not a drill down . A drill down would be getting more of the dimensions into the query.
    Regards
    CSM Reddy

  • Need help scrolling dynamic content from XML

    I am trying to make a photo gallery and I have succeed in
    importing the pictures from XML into Flash. There are still two
    problems:
    1. The content is loading into a movieclip and I tried to
    place a scroll pane on the stage to adding scrolling capabilities.
    I set the parameters to control the movieclip that holds the
    thumbnails but it is not making a scroll bar. I can see the
    pictures inside of the scroll pane but it will not scroll to show
    the rest of the pictures.
    2. I can not figure out how to space the thumbnails evenly. I
    made a variable and multiplied the x position of each picture by it
    but there are large differences between landscape and portrait
    pictures.
    Thanks for the help

    You need to switch from using loadMovie to using the
    MovieClipLoader object. This object has a listener called
    "onLoadInit" that allows you to get the size of your photo when it
    comes in, but before it appears on stage, so that you can adjust
    its placement. Check out the help docs for info on usage.
    WL

Maybe you are looking for

  • Best Practice

    What is the best practice with respect to cursor use in Oracle?

  • Material Receipt Interface

    Can anyone point me to a document or a book that provides a good explanation about how to used the material receipt interface? I would like to know how what fields mean, how to use it, etc. I would like to capture the cost of shipping material when i

  • Rman recover noredo vs. until cancel

    Hi, Oracle 11g 11.2.0.1 What is the difference please between rman +recover noredo+ and +recover until cancel+ ? According to Oracle documentation, noredo can be used if the database is in noarchvielog mode and the online redo logs are lost. Does thi

  • HT201077 Photo Stream won't go to computer

    My Photo Stream on my phone has pictures in it. How do I get these pictures to iCloud and into my computer? It used to happen automatically, but doesn't anymore... I have spent hours online but haven't found the solution...Thanks

  • Adobe Interactive Form On line in GP

    Any help on this would be appreciated. Instead of being able to prefill an interactive form and have it sent to a user through email, I was wondering if it is possible to have an interactive form display on the screen as a step in a guided procedure.