convert obj XML in text for a URLRequest argument

Hello

I'm new to Flex builder 2 and I'm stuck something that I know is very basic, but I'm still on a learning curve (I'm procedural php programmer, so I know OOP, but have not worked with him on a daily basis)

I have an XML file that one of the nodes contains a link to the documentation for the aid and there are different types of help documentation.

I have this Setup:

< mx:VBox label = "Help information" >
< mx:Label text = "STOP: {dgroomRequest.selectedItem.help.hphone}" fontSize = "12" / > "
< mx:Label text = "Links to Docs" textAlign = "left" fontWeight = "bold" fontSize = "12" textDecoration = "underline" / >
< mx:Repeater id = dataProvider = "{dgroomRequest.selectedItem.help.docs"helpdocsrepeater"}" >
{< mx:LinkButton label="{helpdocsrepeater.currentItem.@type}" click = "navigateToURL (new"»
URLRequest ({helpdocsrepeater.currentItem}), '_blank') "/ >"
< / mx:Repeater >
< / mx:VBox >

The problem I have is the URLRequest to recognize the databinding, a link that points to the html code in the XML file. Everything else works, but this part.

I thought the data binding was an obj, so I thought using toString() or by wrapping it with String() to convert, but it doesn't seem to work.

I appreciate any help or pointers.

Thank you
Hoyt

Hey leeng,.
Sorry for the delay, had a rough week. But here's a quick example of dirty that I stoked for you. Even if you use different components, it must still show you what to do. That's how I'd do:

My test xml is:


http://www.Amazon.com/books
second test of the label


http://www.Adobe.com
second test of the label

And my little fast app is:

http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" init () ">"

Import mx.controls.Alert;
Import mx.rpc.events.FaultEvent;
Import mx.rpc.events.ResultEvent;
import flash.net.URLRequest;

private var request: URLRequest = new URLRequest();
[Bindable]
private var xml = new XML();

private function init (): void {}
service. Send();
}
private void doClick(event:Event):void {}
trace (Event.currentTarget.getRepeaterItem (). (Link);
site of the var: String = event.currentTarget.getRepeaterItem () .link;
Request.URL = site;
navigateToURL (request, "_blank");
}
private void resultHandler(event:ResultEvent):void {}
XML = XML (event.result);
trace (XML);
}
private void faultHandler(event:FaultEvent):void {}
Alert.Show (event.fault.message);
}
]]>

<>
ID = 'service '.
URL = "test. XML ".
resultFormat = "e4x".
result = "resultHandler (Event); »
Fault = "FaultHandler (Event); "/ >







I'll try and send you a zip of it, so you can see it working, just check the trace. Let me know if this helped you or need to explain more.

Tags: Flex

Similar Questions

  • Convert the varables in text

    Hello

    Anyone having the script to convert all variables to text for all pages.

    Kind regards

    Vinatier

    Hi Vincent,.

    Try this...

    app.activeDocument.stories.everyItem().textVariableInstances.everyItem().convertToText();
    

    Concerning

  • With the help of Photoshop CS6 how to convert raster to vector text?

    I submit work with text for a double cd. There is a picture with a text on a separate layer. I have converted the text because that's how I was told to convert the text to vector. Now, she's back saying text is raster and is printed blurry. How to convert raster to vector text? Thank you

    The only way you can keep the conversion raster vector is to save in Photoshop PDF format. Make sure you save without flattening and choose the option to keep the layers. Your only other option is to use Illustrator for the text and put the photoshop content in Illustrator.

  • How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    What is an actual field or just a piece of static text somewhere? Whatever it is, you can't do this using the Split Document command. You will need to use a script custom read the value of this 'field' and use it during extraction of pages in the file.

  • ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    Try this from another thread I saw.

    On iOS, go to settings > iCloud > keychain and tap button to disable iCloud keychain. (you will be asked to delete or keep the passwords on device) I chose to delete...

    Then turn it back on, and pop - up chose reset iCloud trousseau, on a chosen pop-up confirmation reset

    In the new window pop up use iPhone password like iCloud cryptogram? has chosen the use code

    Enter your secret code (4 digits) then choose country and your new phone number

    Although, to "Restore the iCloud Keychain," I took to erase the data and essentially set up a new keychain.  Not the case.  Strangely, after essentially bypassing the security system, setting a new password and verification number, I see my cards, passwords and other data have been restored.  Maybe it's all the iCloud account and this master password.  Or maybe it's a bug.  With Apple, we'll never know.

    Also have a look here: get help using iCloud Keychain - Apple Support

  • the system cannot find the message text for message number 0 x in the message file

    Hello

    I use the MKLINK command to share a public directory in my file server for all organizational units.
    After I set the NTFS permissions on the server, I can open directories related to all the directories of the OU but in client windows XP to return this error window:

    "The system is not message text for message number 0 x in the messages for \\Filesrv2\IT\Public file.

    Thank you for your time

    Hi Babak,

    The issue of Windows is more complex than what is generally answered in the Microsoft Community Forums. Appropriate in the TechNet Forums. Please post your question in the TechNet Forums.

    You can check the link to post your question:

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

    I hope that helps!

  • How to set remote spaced further icon to display more text for the name below?

    Windows 7 desktop has many icons with similar names. I want that name under the icon. How to set remote spaced further icon to display more text for the name below?

    Right-click on the desktop and select Personalize.

    Select the color of the window

    Select the appearance settings advanced.

    Select the drop down next to the element

    Go down and select icon spacing (Vertical)

    change spacing next to size according to the needs.

  • Create the help text for the column tabular APEX region

    Hi guys,.

    Please see the screen - shot below.

    I have to do two things:

    1. this "5000" value is passed in the URL, for example P_41_TOTAL_LEAD_VALUE and I want to display in the currency format, i.e. 5 000.
    If the value is 60000, it should be displayed as 60 000.

    2. I am required to display the help text for column of tabular form - expected quarterly value, how to proceed with that?

    Thanks in advance

    Arpit

    Capture.JPG

    Hi David,

    I have not tried to use the Format mask, however there is no change in the display format.

    Even I tried in a different format, nothing happens.

    Try the steps given, which will solve your problem

    1. create a hidden item I say P41_LEAD_VALUE

    Protected value: No.

    Pass the URL value on this element hidden instead of P_41_TOTAL_LEAD_VALUE.

    2 create a calculation on the point P_41_TOTAL_LEAD_VALUE

    Type: SQL Expression

    Point calculation: after region (s)

    Calculation: TO_CHAR (: P41_LEAD_VALUE, '999G999G999G999G999G999G990')

    Hope this helps you,

    Kind regards

    Jitendra

  • In indesign when the text is converted to be vectorised text, underlined text effect is not preserved

    In indesign when the text is converted to be vectorised text, underlined text effect is not preserved

    Adobe recommends strongly against systematically vectorised text conversion as being an unwise practice, destroyer of workflow, there is a very simple correction in Acrobat DC Pro control upstream that makes these conversions in one step.

    -Dov

  • When using the 'tools', 'Interactive objects', 'Add a button', how to make the text for the button name is displayed? I have tried everything and only the background, or lacxk, appears.

    I created a pdf document using Adobe Acrobat XI base and want to put a link on each page, return to the table of contents. However, the tool "Add a link" I cannot place this link on each page at a time. Accordingly, I used the tool 'Add a button' interactive Actions that allows me to do what I want. However, when I enter the name of the button, add background color (or not) and register, the name of the text for the button does not show, only the background appears (or nothing if I select no background). The button works, it just is not labeled. Any help will be appreciated.

    This is the area of the label, under Properties - Options.

    The game, 23:02, charlesc90551452, [email protected] , 14 may 2015

  • set the maximum size in the Options for field text for a field in bi publisher RTF

    Hi all

    How to set the maximum size in the Options for field text for a field in bi publisher RTF.
    I have a RTF which is a field I need to add a validation condition, but after the addition of certain conditions in the text to add tab helps, it does not after a certain length, how can I increase the unlimited length, please help me on this

    Thnaks

    You can try to keep the validation condition outside instead of form fields

    as do

    or

    If you want to use form fields break your calculation and use 2 or 3 form fields so that you have any calculation of form fields.

  • I created a form with fields default text for a user to update/customize.  Is there a way to style of the text, so I can quickly identify the changes to the default text in a field?

    I created a form with fields default text for a user to update/customize.  Is there a way to style of the text, so I can quickly identify the changes to the default text in a field?

    You can use a validation script customized to each text field that looks like:

    event.target.textFont = event.value = event.target.defaultValue? font. HelvI: fonts. Helv;

    This will make the text italic (Helvetica) when the field value is the value default and regular otherwise. There are other properties that you can use instead, as the field color, border width, background color, text or text size...

  • CAN´t change 'alternative text' for images in trial version?

    CAN´t change 'alternative text' for images in trial version?

    Hello

    Trial version comes with all the features that don't exist in the paid version of Muse. It's just that you can use the trial version for 30 days. To change the text, please right-click on the Image and go to the properties of the image.

    See you soon!

    Aish

  • Converter Standalone server and agent for Windows.

    I need to convert .sv2i Symantec backup images to virtual machines.

    I read that the format is supported only by "Converter Standalone server and agent for Windows.".

    I installed VMware vCenter Converter Standalone Client 4.0.1 but it does not recognize the input format.

    Must what else you install in order to perform the conversion?

    Concerning

    Marius

    Hello

    Sorry for the late response

    Please reffer to the following link

    http://www.VMware.com/support/converter/doc/releasenotes_conv401.html

    It may be useful

    concerning

    Maniac

  • Convert a statement of SQL for Oracle Server Update

    Hello
    I need to convert an update statement written for SQL Server to run on Oracle.
    the update is:

    UPDATE TABLE1
    SET TBL2 = CDate. CDate
    OF TABLE1 TBL1
    JOIN TABLE2 ON TBL2 TBL2. Code = TBL1. TBL2Code
    JOIN TABLE3 TBL3 ON TBL3. ID = TBL1. ID
    WHERE TBL3. TypeCode = '07'

    How can I make compatible with oracle?

    Thank you!!

    Try this...

    MERGE INTO table1 t1
         USING (SELECT t2.cdate cdate, t1.ROWID ri
                  FROM table2 t2, table3 t3, table1 t1
                 WHERE     t2.code = t1.tbl2code
                       AND t3.id = t1.id
                       AND t2.typecode = '07') src
            ON (t1.ROWID = src.ri)
    WHEN MATCHED
    THEN
       UPDATE SET t1.cdate = src.cdate
    

Maybe you are looking for

  • Recovery of accidentally deleted data

    Hello I have a feeling there is no solution to this but here goes, my daughter has deleted data recovery on the L300-299.Is it possible to recover? The partition has been formatted, so I couldn't t get something in return.Toshiba is no ISO or whateve

  • Ground and the USB-8451-&gt; it should reference?

    I use a usb-8451 attached to a PCB card which has its own means with separate analog and digital designs. When I join the 8451 grounded strange results of power supply occur. Is it allowed to leave separate and unconnected?

  • 2K vs HD

    Hello In the announcement for the new firmware 2.0 (see screenshot below) Stone said THAT HFR work for HD and 2K. But there are currently no field of working in 2K HFR report. I couldn't allow him to myself. I have 4 and a half questions: At 120 FPS

  • Split VISA Information

    Hello everyone, I'm here because im making my tesis, at the moment, im having problems, receives a hydrometer by VISA, the problem is that we need to split the information as it comes to us this way: Hydrometer---> Visa---> Labview---> T = 30,42 C =

  • Windows Server backup question!

    I need help.  I'm a guy from Server 2008R2 novice who tries to save not only the server (which I did successfully with Windows Server backup), but a shared external hard drive connected to one of my office workstation computers (it has information vi