Complete textfield with a greater value to an xml file

Hi all, I have an actionscript by extracting data from an xml file. As you can see in the code below, I textFields have been created on the fly.

I need to have the 'resultsField' textfield to be filled by programming with the largest value of 'column1' or 'column2 '.

Thank you all for the great service!

--------------------- XML  ------------------------

<? XML version = "1.0" encoding = "utf-8"? >
< cat >
< title >
USD
< /title >
< CAT >
0.5879
< / cat >
< CAT >
0.9875
< / cat >
< / cat >

-ACTIONSCRIPT 2.0-

this.createTextField("column1",25,0,50,200,30);
this.createTextField("column2",25,325,50,200,30);
this.createTextField("resultsField",20,0,105,200,30);

Column1.html = true;
Column2.html = true;
resultsField.html = true;

var my_xml = new XML();
my_xml. OnLoad = {function (success)}

If (success) {}
RootNode = my_xml.firstChild;
Column1.htmlText = RootNode.childNodes [1] .firstChild;
Column2.htmlText = RootNode.childNodes [2] .firstChild;

trace (column1. (Text);
trace (column2. (Text);
} else {}
trace ("Buah!");
}

};
my_xml.ignoreWhite = true;
my_xml. Load ("quotes.xml");


resultsField.htmlText = 'value here ';

use:

This.createTextField("hello_txt",0,10,10,100,20) ("column1", this.getNextHighestDepth (), 0,50,200, 30);
This.createTextField("hello_txt",0,10,10,100,20) ("column2", this.getNextHighestDepth (), 325,50,200, 30);
This.createTextField("hello_txt",0,10,10,100,20) ("column3", this.getNextHighestDepth (), 0,80,200, 30);
This.createTextField("hello_txt",0,10,10,100,20) ("column4", this.getNextHighestDepth (), 325,80,200, 30);
This.createTextField("hello_txt",0,10,10,100,20) ("resultsField", this.getNextHighestDepth (), 200,125,200, 30);

Column1.html = true;
Column2.html = true;
Column3.html = true;
column4.html = true;
resultsField.html = true;

var my_xml = new XML();
my_xml. OnLoad = {function (success)}

If (success) {}
RootNode = my_xml.firstChild;
Column1.htmlText = RootNode.childNodes [1] .firstChild;
Column2.htmlText = RootNode.childNodes [2] .firstChild;
Column3.htmlText = RootNode.childNodes [3] .firstChild;
column4.htmlText = RootNode.childNodes [4] .firstChild;

resultsField.htmlText = maxF ([Number (stripF (column1.text)), Number (stripF (column2.text)), number (stripF (column3.tex t)), Number (stripF (column4.text))]);

trace (column1. (Text);
trace (column2. (Text);
} else {}
trace ("Buah!");
}

};
my_xml.ignoreWhite = true;
my_xml. Load ("quotes.xml");

function maxF(a:Array):Number {}
Max: var number = [0];
for (var i: Number = 1; i
If (a [i] > max) {}
Max = a [i];
}
}
maximum return;
}
function stripF(s:String):String {}
Return s.split("").join("").split("\n").join("").split("\r").join("");
}

Tags: Adobe Animate

Similar Questions

  • Extract the value of an xml file-

    Hello
    I have a requirement that needs to store the contents of the XML db tables. Here I give you the details of the sample, it must extract values from the XML file and place these values in the mapping table.

    Sample:

    I created a table - create the table txt_xml of xmltype.

    insert into table txt_xml values (xmltype ('))
    < NewDataSet >
    "" < DerivativeSecurity FAS157Level = "3" FAS157MVAdjustable = "N" OriginalMV = FAS157MVDelta "573174.3253" = "0.0" FAS157AdjustedMV = "573174.3253" PLCurrency = "USD" DerivativeSecurityID = "2009-BFWD-0001TRD' MetDerivativeID = '2009-BFWD-0001' MurexTransactionNumber = '36319' Trader '_GTELL' BuySell = =" B "DetailType = 'TRD' DerivativeType = 'BFWD' AL_ManagementSide = 'Active' CounterpartyCode = '3045' CounterpartyName =" ' JPM / CHASE "CurrencyCode ="USD"Coupon ="0,0"FixedFloatingIndicator ="FIXRT"IndexMultiplier ="1.0"IndexName = 'Bond' ="0,0"Comment11 = margin" PCG 6.05 01 / 03 / 34 "Comment12 ="2009-BFWD-0001"Comment13 ="694308GE1"Comment21 =" "Comment22 = Comment23"83003169"="1 618 300"TradeComment =" are created-credit of the assets for the current article "" specific - anticipation Hedge - PCG FWD 6.05% 01/03/2034. Are created. "" "" "" - Original M"OptionCallPut =" "OptionType =" "SettleType = 'Cash' RefISIN =" "RefObligation =" "sensitivity ="15044.6506"EffectiveConvexity ="0,0"Vega ="0,0"NextResetDate =" "LastResetDate =" "EffectiveDuration ="13.9289"Instrument"Bond"IssuerCode ="19039"IssuerName = ="PACIFIC GAS' IssuerREDCode '6FD738' strategy = = "CRD-PROT-07" StrikePrice = MaturityDate '105.89' = "TickerSymbol =" 2010-01-04 "" "MetPay =" "MetRec =" "Payrec =" P "RiskSection =" "HedgedItem =" deadline specific asset "ResetFrequency =" "ResetFrequencyNumber =" "PaymentFrequency =" "PaymentFrequencyNumber =" "CapFloorCoupon ="0.0"RefIndexRate ="0,0">"
    < name of classification = "XHSEC" Value = "Derivatives" ValueDescription = "950" / >
    < name of classification = "XSEC" ValueDescription = 'Credit' Value = '430' / >
    < name of classification = "XLEV1" ValueDescription = value 'Before' = "9400" / >
    < name of classification = "XLEV2" ValueDescription = 'Hedge' Value = "150000" / >
    < / DerivativeSecurity >
    ((< / NewDataSet > '));

    now what I need is OriginalMV value of this XML field. Please help me

    Published by: Govind2 on February 5, 2010 08:33

    Yes it will fail because error explains everything... excerpt from value does not return several values for a simple xpath...

    so in this case you must use the function xmltable...

     SELECT column_value
       FROM some_things v,
      xmltable('for $i in /NewDataSet/DerivativeSecurity return $i/@FAS157Level' passing value(v))
    

    edit your table name in the code above... and confirm

    Ravi Kumar

  • iOS: problem with loading the content of an xml file placed on a server

    So, I have an app that loads a few small things (pictures and text) of a xml/php file on the server. Everything works fine on both android and in the flash debugger, but when I install the ipa file on my iPhone my IOErrorEvent displays an error message. When the xml file and example photos come with the app (they are not on the server, but in the ipa file) everything works perfectly. There is something about iOS that prevents me to load all the data from the server, it seems. There must be a way around it.

    I would be grateful for advice.

    Kind regards

    Array must be table.

  • Can I use BI Publisher integrated with EBS to treat my own xml file?

    Thank you for your help in advance.
    Our company has several need to convert a related xml files, xml files come not directly from the EBS and we EBS 11i version of BI publisher is integrated 5.6.3 in EBS. Is there anyway that we can leave the BEEP integrated to convert the xml into PDF/RTF format?

    -Bill

    License issues aside, yes you can. As long as the files are accessible.
    you could build a competing program of java which picks up the XML files from a location (file/web), and then calls the appropriate XMLP API function to process the document with a template (this can be stored in the model or the Disk Manager) to generate the output.
    Simultaneous java program is the key to leave the concurrent Manager processes the request and handle the output. For more information on check-PCE, link: link: [http://blogs.oracle.com/xmlpublisher/2007/05/howto_java_concurrent_programs.html]
    You can also search metalink for more examples.

    To return to the authorization, if the data comes from the EBS schema delivered, are you in the terms of the license. If this isn't the case, then you should get a full license of Publisher.

    Tim

  • Timestamp not written with milli sec value in the spreadsheet file.

    Hello

    I write below table 2 d write worksheet VI. But at the opening of the spreasheet I could not able to find the milli seconds. Please, I beg you.

    1. tie the 2D table,

    2 scheme.

    3 see spreasheet

    I just did something like this...

  • Extract the value of an xml file (LPX-00601: invalid token)

    Hello

    I have this kind of XML / example...

    declare
        l_clob clob;
        l_xml xmltype;
    
    
    begin
        l_clob := '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:fu="http://www.fu.gov.si/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <soapenv:Body>
            <fu:BusinessPremiseResponse Id="data">
                <fu:Header>
                    <fu:DateTime>2015-10-02T10:56:40.416Z</fu:DateTime>
                    <fu:MessageID>2107C422-FC85-291C-E053-0CC910AC3C4F</fu:MessageID>
                </fu:Header>
                <fu:Error>
                    <fu:ErrorCode>S001</fu:ErrorCode>
                    <fu:ErrorMessage>eriworwiweorioweriorio</fu:ErrorMessage>
                </fu:Error>
            </fu:BusinessPremiseResponse>
        </soapenv:Body>
    </soapenv:Envelope>
    ';
     l_xml := xmltype(l_clob);
      put_xl_line(l_xml.extract('/soapenv:Envelope/soapenv:Body/fu:BusinessPremiseResponse/fu:Error/fu:ErrorCode/text()','xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"').getStringVal());
    
    end;
    

    what I want is to extract the /soapenv:Envelope / soapenv:Body / fu:BusinessPremiseResponse / fu:Error / fu:ErrorCode

    I get this kind of error:

    ORA-31011: XML parsing failed

    ORA-19202: an error has occurred in the processing of XML

    LPX-00601: token not valid in: ' / soapenv:Envelope / soapenv:Body / fu:BusinessPremiseResponse / fu:Error / fu:ErrorCode / text () '

    ORA-06512: at "SYS." XMLTYPE", line 107

    ORA-06512: at line 23

    Thank you

    Hi Peter,.

    What is your version of db?

    EXTRACT and related functions are all deprecated from 11.2.

    Use XMLTABLE or XMLQUERY.

    About the error:

    You have the XPath to the right, but missing the mapping prefix of "fu":

    (l_xml). Extract

    ' / soapenv:Envelope / soapenv:Body / fu:BusinessPremiseResponse / fu:Error / fu:ErrorCode / text () '

    "', ' xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"

    xmlns:Fu ="http://www.fu.gov.si/" "."

    )

    Example with XMLTABLE:

    declare
      l_clob        clob;
      l_error_code  varchar2(30);
    begin
      l_clob := '
        
            
                
                    2015-10-02T10:56:40.416Z
                    2107C422-FC85-291C-E053-0CC910AC3C4F
                
                
                    S001
                    eriworwiweorioweriorio
                
            
        
    ';
    
      select errorcode
      into l_error_code
      from xmltable(
             xmlnamespaces(
               'http://schemas.xmlsoap.org/soap/envelope/' as "env"
             , default 'http://www.fu.gov.si/'
             )
           , '/env:Envelope/env:Body/BusinessPremiseResponse/Error'
             passing xmlparse(document l_clob)
             columns errorcode varchar2(30) path 'ErrorCode'
           ) ;
    
      dbms_output.put_line(l_error_code);
    
    end;
    /
    
  • Select the values to an xml file

    i am unable to solve this....
    better solution or any useful steps. to get the required result.
    
    
     select sys, SYSS, accesskey from  xmltable('root/flexcube/contractStatus'         passing xmltype('
        <root>
          <flexcube>
            <confNum>123</confNum> 
              <contractStatus>
                   <system>12-JAN-2012</system>
                   <accessKey>eDealer</accessKey>
              </contractStatus>
              <contractStatus>
                   <system>12-DEC-2011</system>
                   <accessKey>iDealer</accessKey>
              </contractStatus>
              <contractStatus>
                   <system>12-FEB-2012</system>
                   <accessKey>USER</accessKey>
              </contractStatus>
         </flexcube>
      </root>') 
                       columns 
                       SYS VARCHAR2(12) path 'root/flexcube/conf',
                       SYSS VARCHAR2(12) path '//system',
                       accessKey varchar2(10) path '//accessKey');
    
    
    Result:
    
    SYS          SYSS         ACCESSKEY  
    ------------ ------------ ---------- 
               12-JAN-2012  eDealer    
               12-DEC-2011  iDealer    
               12-FEB-2012  USER       
    
    3 rows selected
    
    
    required result:
    
    SYS          SYSS         ACCESSKEY  
    ------------ ------------ ---------- 
    123        12-JAN-2012  eDealer    
    123        12-DEC-2011  iDealer    
    123        12-FEB-2012  USER       
    
    3 rows selected

    Try

    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as apps
    
    SQL>
    SQL> with t as
      2   (select xmltype('
      3        
      4          123
      5            
      6                 12-JAN-2012
      7                 eDealer
      8            
      9            
     10                 12-DEC-2011
     11                 iDealer
     12            
     13            
     14                 12-FEB-2012
     15                 USER
     16            
     17       
     18    ') col
     19      from dual)
     20  --
     21  select b.SYS, c.SYSS, ACCESSKEY
     22    from t,
     23         xmltable('root/flexcube'
     24                  passing t.col
     25                  columns SYS varchar2(100) path 'confNum',
     26                          tmp xmltype path 'contractStatus') b
     27        ,xmltable('contractStatus'
     28                   passing b.tmp
     29                   columns SYSS varchar2(100) path 'system',
     30                           ACCESSKEY  varchar2(100) path 'accessKey') c
    SQL> /
    
    SYS                                                                              SYSS                                                                             ACCESSKEY
    -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
    123                                                                              12-JAN-2012                                                                      eDealer
    123                                                                              12-DEC-2011                                                                      iDealer
    123                                                                              12-FEB-2012                                                                      USER
    
    SQL>
    
  • How to reference a value in an XML file

    Hey guys!  I have a valid XML structure is the following:

    <app>
         <settings>
              <setting name="defaultModuleSlug" value="apples"></setting>
              <setting name="defaultPageSlug" value="oranges"></setting>
         </settings>
    <app>
    

    XML info is an application object called application.config.

    So, how do you refer to the variable defaultPageSlug?  I know that I can use:

    application.config[ 'app' ][ 'settings' ].xmlChildren[ 2 ].xmlAttribute[ 'value' ]
    

    However, I would like to be able to reference the implementation by its name (defaultPageSlug) attribute and not assuming that it is the 2nd element of this node.  Can anyone help?

    Nevermind, I guess I can use XPath.

  • form2xml generate xml files with '? ' for non-Latin characters

    I used form2xml in oracle 10 g costume to convert formulas 5 .fmb .xml. using the command:

    frmf2xml.bat OVERWRITE = YES myform.fmb

    Forms contains the set of Arabic characters, but the xml file is generated with the character "?", and the xml file is unusable ".

    What can I do to keep the Arabic characters in the generated xml files.

    Edit:

    I run form2xml on windows xp SP3 with Arabic support (codepage = 1256)

    The xml file is generated in UTF-8 format

    I solved the problem.

    Step 1: Search the registry for each NLS_Lang key and change its value to the codepage 1256 using regedit

    Step 2: in the Panel of control-region and language, I changed the language to be Arab

    Now everything is good

  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • Read byte with a value up to 127 lire byte with an ASCII value greater than 7F (127 dec)

    Hello

    I have to read a byte with a value greater than 127, Labview turn 27.

    In help I saw that Labview provides a description of ASCII that pour values ranging up to ' 127.

    What do I need to do?

    LabVIEW 6.1

    Windows XP

    Hello

    I want to read a byte with a maximum value of 127, but Labiew reurn arround 27 value

    How do I do?

    Rigid wrote:

    Thanks for your help. I'm not changing lyke I understand (my English is poor quiet...)

    I have another program that communicate with the instrument. I know byte (6) must be greater than 18 (greater than 7F actually).

    But with Labview, I'm only 18.

    While it might be higher than 18 x, an I8 is signed, and therefore it cannot be greater than x7F - it has a range of-128 to 127. A U8 is not signed, and it's why he has a range from 0 to xFF. However, x 18 is the same if you treat as signed or not signed. I don't see how LabVIEW can read a wrong value on the serial port. Are you sure you're looking at the correct byte? Your code shows that you split the chain twice. Are you sure that you do this properly?

    Given that you use on Windows you can recheck the chain received using PortMon. Allows you to see what is actually received by the driver for the serial port on Windows.

    P.S. I actually meant the whole byte function.

  • Seized auto-complete textfield

    Can someone guide how to use auto-complete textfield for filtering values from the table database (SQLite).

    The link http://docs.blackberry.com/en/developers/deliverables/18125/Autocomplete_text_field_1200231_11.jsp

    shows with predefined tables.

    I want it to filter the db table. How to on this subject.

    Try to run this code

    import java.util.Vector;

    Net.rim.device.api.collection.util import. *;
    Import net.rim.device.api.database.Cursor;
    Import net.rim.device.api.database.Database;
    Import net.rim.device.api.database.DatabaseFactory;
    Import net.rim.device.api.database.Row;
    Import net.rim.device.api.database.Statement;
    Net.rim.device.api.ui import. *;
    Net.rim.device.api.ui.container import. *;
    Net.rim.device.api.ui.component import. *;

    SerializableAttribute public class AutoCompleteFieldDemo extends UiApplication
    {

    Public Shared Sub main (String [] args)
    {

    AutoCompleteFieldDemo app = new AutoCompleteFieldDemo();
    app.enterEventDispatcher ();
    }

    public AutoCompleteFieldDemo()
    {
    pushScreen (new AutoCompleteFieldDemoScreen());
    }

    public static String [] getDataFromDB()
    {
    Vector of names = new Vector();

    Try
    {

    Basis of data db = DatabaseFactory.openOrCreate ("database1.db");
    Instruction statement1 = db.createStatement ("SELECT name FROM Directory_Items");
    statement1. Prepare();
    statement1. Execute();
    Cursor c = statement1.getCursor ();
    Line r;

    While (c.Next ())
    {
    r = c.getRow ();
    names.addElement (r.getString (0));

    }

    statement1. Close();
    DB. Close();

    }
    catch (System.Exception e)
    {
    System.out.println (e.getMessage ());
    e.printStackTrace ();
    }

    String [] returnValues = new String [names.size ()];
    for (int i = 0; i)< names.size();="" i++)="">
    returnValues [i] = (String) names.elementAt (i);
    }

    Return returnValues;

    }

    public static final class AutoCompleteFieldDemoScreen extends screen
    {

    AutoCompleteFieldDemoScreen()
    {

    BasicFilteredList filterLst = new BasicFilteredList();

    filterLst.addDataSet (1, getDataFromDB (), "Names", BasicFilteredList.COMPARISON_IGNORE_CASE);
    AutoCompleteField autoFld = new AutoCompleteField (filterLst);
    Add (autoFld);

    }

  • TextField with an icon in

    Hello

    I would like to know if it would be possible to have a textfield with an icon on the left in this textfield. Someone suggested using a StackLayout and icon on the textfield of overlay, but I can't wrap my head on how to achieve this. Next to the icon of the overlay will not hide the text under?

    Thank you

    If you have available to battery including the properties the LefttoRight value, you might Label {} ImageView {} {} Label and icon should appear in line with the text.  Or if you have absolute available you could precisely where the icon is displayed on the control screen and wrap text around it.

  • Table with list of value to load on another value of the column that is never changed by the user

    Nice day!

    I work with JDeveloper 11.1.2.4.

    I have a Table of the ADF that has 4 lines.  Each row has a column with a unique value.  The plan should include a LOV column in the row show a different list of values based on a single column value.  I have install the list of values, use a display with a variable binding criterion.  When you create the data LOV source, I Specifies the name of a single column for the value of the bind variable.  However, it seems that the LOV changes none selecting different lines.

    Is there a good way to handle this?  I did LOVs of person in charge in the past, but this isn't quite the same as the user can view only the value that depends on the LOV on.

    Any suggestions are greatly appreciated!


    BradW

    Hey, it's always a case of use of the dependent list of values. If the attribute that you bind the bind variable view criteria at part of the view object then the value LOV to be examined accordingly. I did a quick test case and I see my lists filtered by an attribute in line (I used the HR schema and posted employees as candidates managerId. The employee list is filtered so that it only shows the employees in the same Department that the employee I want to put a new managerId on) Frank

  • ComboBox - updated database with the ID associated with the selected value

    Hello, first off I am a newbie to developing Flash Builder with PHP, so any help would be mucho appreciated.

    I want to update my database with an id associated with a seletcted value in a combobox

    -I'll create a combox and asociate to a data service that retrieves all possible values

    -With the help of selectedItem, I'm able to the value of the ComboBox to the value associated with the default data object

    -To submit, I want to update the database, not with the value directly, but with its associated id.

    -The list of values are a list of locations with a specific id.

    Here is my code

    ComboBox on a form

    "" < s:Form includeIn = "LocationAdd, LocationUpdate"x ="52" y ="320" defaultButton = "auLocnBtn{}">

    "< s:FormItem label = 'provider ID" "" >

    "" < s:ComboBox id = "spidComboBox" selectedItem ="locations.snam{}" includeIn = "LocationUpdate'x ='97" y ="539"

    creationComplete = "comboBox_creationCompleteHandler (event)" labelField ="name" > ""

    " < s:AsyncListView list =" getSplResult.lastResult{}"/ > "

    < / s:ComboBox >

    < / s:FormItem >

    " < s:Button id ="auLocnBtn"label ="Submit"click ="auLocnBtn_clickHandler (event)"label. LocationUpdate ="Update"tag. LocationAdd ="Add"/ > "

    < / s:Form >

    protected function auLocnBtn_clickHandler(event:MouseEvent):void

    {

    Locations.SPID = parseInt (spidComboBox.selectedItem);

    updateLocationResult.token = locationService.updateLocation (rentals);

    }

    This code will move to the selected item, in this case locations.snam. However, getSpl returns two fields - name and id. I want id associated with locations.snam to use to update the database.

    Do this in php and html is really straight forward, because there is a < value > property that allows me to pass the ID. Something similar in flash builder? I spent hours on this... Please don't laugh, I said I was new on FB!

    See you soon,.

    Brian

    Okay understood outside, what I had to do was

    protected function auLocnBtn_clickHandler(event:MouseEvent):void

    {

    Locations.SPID = parseInt (spidComboBox.selectedItem.spid);

    }

    that is the reference object properties... FB with PHP is great!

    This can be closed.

Maybe you are looking for

  • How can I transfer my iPad to a newly formatted mac apps?

    I did a clean install of Mac OS X. I copied my iTunes folder and applications and the preferences of the iPad. I can't see my apps in iTunes.

  • hp2540

    I have loaded all of the software and can print from a Tablet using eprint. When I create a document in Office 2010, and then click on print, it seems, to put it in a print queue, and then nothing happens and the computer and the printer seem to beli

  • Install sophos antivirus?

    Can someone tell me how to install this sophos antivirus on my iPhone 5?  I tried different ways, but it is not yet available for the App Store and when I try to download it directly I get a message "Safari cannot connect to the Servetus.  I know it

  • Pavilion Sleekbook 14-b065tx driver for Windows 7

    I can't find drivers for windows 7 for my 14-b065tx sleekbook. Whenever I search for it, all other sites brings me to page official hp, with drivers for windows 8/8.1 and ubuntu is available.I am currently using windows8, but I don't like this versio

  • Impossible to scan: "another program or computer using the HP imaging device.

    Original title: hp scanning problem I can't seem to find anything on the hp site regarding my being not scan with the center of Solution because that 'another program or computer use the HP imaging device ".  I have my Officejet 6500 connected via an