Result of the handful of XML data with httpservice

Hello

Please find my xml data http://121.242.211.152/janaagraha/get_complaints

I need to load these xml data through httpservice and depending on the result of the handle, I need access to individual data as complaints.complaint.title using the service loop. I tried this I could not get the result I need

" < s:HTTPService id = 'Complaints' url = ' http://121.242.211.152/Janaagraha/get_complaints "result ="Complaints_resultHandler (event)"fault =" Complaints_faultHandler (event) "> "

< / s:HTTPService >

< fx:Script >

<! [CDATA]

protected function Complaints_resultHandler(event:ResultEvent):void

{

var complaintarray:ArrayCollection = event.result.complaints.complaint;

var carray:Array = complaintarray.toArray ();

for (var i: Number = 0; i < carray.length; i ++)

{

var cmparray:Array is ObjectUtil.toString(carray[i]).split('~~~');.

Title: string var = ObjectUtil.toString(cmparray[0]);

Alert.Show ("HI" + title);

}

}

Please suggest I need to get data like title, complainturl, latitude longtitude etc.

Concerning

Jeremi

Your node of categories is not necessary contain two category nodes, check if there is in fact two categories:

var complaint_cat:XMLList = complaint.categories.category;
if(complaint_cat.length() > 0){
     var mainCategory:String = complaint_cat[0].toString();
     if(complaint_cat.length() > 1){
          var subCategory:String = complaint_cat[1].toString();
     }
}
trace("main category: " + mainCategory + ", sub category: " + subCategory);

--

Kenneth Kawamoto

http://www.materiaprima.co.UK/

Tags: Adobe Animate

Similar Questions

  • Compare the current time and date with last modified?

    Compare the current time and date with last modified?

    What is the ideal way due to report at the last modified file with the date and time class? last modifed class in the file value is of type long.

    798642 wrote:
    No no no no, currentTimeMillis() only gets you the time... I need to compare the Date and time.

    You should read the docs more closely. It gives you the current time in time, which includes the date.

  • How to display XML data with the same form that generated?

    I am an inexperienced "developer", so bare with me please.  I just created an interactive form that my users will fill out and give me back.  I love the email button that let's them just click a button to send it - because it's so smooth.  However, all I get back is data XML that I don't know what to do with.  Is it possible that I can just open the form I send my users and have the XML data to automatically fill? Otherwise, suggestions?  I started a company - so it's just me without other resources (or fancy SQL DBs to pull this stuff, etc.).

    Hello

    You can configure a button on the form with the JavaScript next to the click event:

    xfa.host.importData ();

    This will open a window that will allow you to navigate to where you saved the returned XML file. Note that this button does not work in extended via Acrobat Forms.

    Depending on the version of Acrobat you are using (the menu changes slightly) you can go to the menu forms and select Manage form data / import data.

    Third option; You may also distribute the forms via Acrobat, which will put in place a response file, which will allow to import responses for you.

    Hope that helps,

    Niall

  • Problems with the display of XML data

    I'm a bit new to Flash and have problems out XML data in Flash. Basically, when I saw publication, all data load XML file and displays very well. But when I actually publish the file and view in a browser, no data is displayed.

    Data from XML is happening in the areas of dynamic text (title, description, image).

    I use an absolute URL to retrieve the XML data, and I tried a lot of text integrated solutions, and nothing has worked. Here, any help would be greatly appreciated.

    I have attached the script action, but also a piece of the XML file I get the data.

    After going through each difficulty as possible, I could find, I managed to miss the information contained in the link below. This fixed my issue.

    http://www.Adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213

  • Script for the use of XML data to pre file form open using the player

    I need to pre fill five fields when the user opens the form using Acrobat Reader (title, name, address, etc.). The values are saved in an xml data file in the same directory as the form (no database or web services connections). I tested the xml code and form structures using shapes-> manage form data-> import data and everything works fine. Now, I need to emulate this behavior programmatically, so it does not work using only Acrobat Reader. I can't find the magic java script command to import the data (I tried xfa.host.importData and xfa.datasets.data.loadXML without result). Require purchase Pro or Livecycle Server product is not an option. This seems to be a basic requirement, so I hope I'm just being stupid and missing of which is obvious. Thank you.

    Hello

    Unless you're reader allowing the form with LiveCycle Reader Extensions ES, users with reader will NOT be able to import (or export) XML.

    Summary here: https://acrobat.com/#d=3lGJZAZuOmk8h86HCWyJKg

    Based on your description that you look at options 2 and 3, users with the reader.

    Sorry,

    Niall

  • The value of XML data

    Hi all

    I am Oracle 11 g

    I have XML data as below

    < lines >

    < line-diff op = 'delete' line-stat = "oos" >

    < host rank = "targ" >

    < name of col = 'GUID' val = "7932504" / >

    < name of col = 'SCRTY_ROLE_ID' val = '1' / >

    < name of col = hex "GGROWHASH" = "o" val = 'ffffffffffffffff' / >

    < / row >

    < / line-diff >

    < line-diff op = 'delete' line-stat = "oos" >

    < host rank = "targ" >

    < name of col = 'GUID' val = "7933046" / >

    < name of col = 'SCRTY_ROLE_ID' val = '1' / >

    < name of col = hex "GGROWHASH" = "o" val = 'ffffffffffffffff' / >

    < / row >

    < / rows >

    Need to extract value and show as below

    OPERATION GUID SCRTY_ROLE_ID

    Remove 7932504 1

    Remove 7933046 1

    Please help on this.

    Appreciate your help.

    Thank you

    We can somewhat simplify the XQuery for @Gaz in Oz:

    WITH data(text) AS
    (SELECT
            '
                
                   
                      
                      
                      
                   
                
                
                   
                      
                      
                      
                   
                
                
                   
                      
                      
                      
                   
                
         '
    FROM dual
    )
    SELECT r.*
       FROM data x,
            XMLTABLE('rows/row-diff'
                    PASSING XMLTYPE(x.text)
                    COLUMNS operation     VARCHAR2(12) PATH '@op',
                            guid          NUMBER       PATH 'row/col[@name="GUID"]/@val',
                            scrty_role_id NUMBER       PATH 'row/col[@name="SCRTY_ROLE_ID"]/@val'
                   ) r
    ;
    
    OPERATION GUID SCRTY_ROLE_ID

    ------------ ---------- -------------

    delete 7932504 1
    delete 7933046 1
    Update 7933999 1

    3 selected lines.

  • How the filter E4x Xml data in a tile list?

    Hello!

    I am trying to use a search box for some xml data that I have in a tile list. Can someone point me in the right direction?

    Here is the list of tile:

    < mx:HTTPService id = "GetXmlService".

    resultFormat = "e4x".

    Fault = "getXMLFault (Event); »

    result = "getXMLResult (Event); »

    showBusyCursor = "true" / >

    < mx:TileList id = 'tileList '.

    dataProvider = "{GetXmlService.lastResult.image}" "

    itemRenderer = "CustomItemRenderer."

    columnCount = "4".

    columnWidth = "125".

    number of lines = '2 '.

    rowHeight = '150 '.

    themeColor = "haloSilver".

    verticalScrollPolicy = "on".

    itemClick = "tileList_itemClick (event); "backgroundAlpha ="0"height ="487"borderStyle ="none"="30"right ="10"left ="10"/ >

    And here is the XML data:

    <? XML version = "1.0"? >

    < Gallery >

    < user name image = "People1' rating ="5"="yes"/ >

    < / Gallery >

    Hello

    protected function searchFunc(item:Object):Boolean

    {

    var username:String = .@username (XML topic);

    var insession: String = .@insession (XML topic);

    username = (username.substr(0,ti.text.length)) .toUpperCase ();

    var chkUser:String = (ti.text) .toUpperCase ();

    If (username == chkUser & insession.toUpperCase () == "YES")

    Returns true

    on the other

    Returns false;

    }

    I changed the variable names to make it a little clearer. Now whenever you perform a search it will only show according to Yes (Yes). You can have nested If more more complex application but remember there is always need to be a return to true or false for each record (item).
    David.
  • Build the query to select date with status

    Hi guys,.

    Grateful if you can advise me on how to build the query on below scenario:

    Table A

    Date

    11.44.39.000000000 12-OCT-14 AM ASIA/SINGAPORE

    11.44.35.000000000 16-SEP-14 AM ASIA/SINGAPORE

    11.44.42.000000000 22-SEP-14 AM ASIA/SINGAPORE

    The result of the query:

    Date                                                                                            Status

    11.44.39.000000000 12-OCT-14 AM ASIA / SINGAPORE inactive

    11.44.35.000000000 16-SEP-14 active AM ASIA/SINGAPORE

    11.44.42.000000000 22-SEP-14 AM ASIA/SINGAPORE inactive

    Basically, the logic, I wanted is

    Active principles: today date or max (date) < sysdate

    Otherwise will be inactive

    And there is 1 active date in time.

    Thanks in advance

    Hello

    2753165 wrote:

    Hi guys,.

    Grateful if you can advise me on how to build the query on below scenario:

    Table A

    Date

    11.44.39.000000000 12-OCT-14 AM ASIA/SINGAPORE

    11.44.35.000000000 16-SEP-14 AM ASIA/SINGAPORE

    11.44.42.000000000 22-SEP-14 AM ASIA/SINGAPORE

    The result of the query:

    Date                                                                                            Status

    11.44.39.000000000 12-OCT-14 AM ASIA / SINGAPORE inactive

    11.44.35.000000000 16-SEP-14 active AM ASIA/SINGAPORE

    11.44.42.000000000 22-SEP-14 AM ASIA/SINGAPORE inactive

    Basically, the logic, I wanted is

    Active principles: today date or max (date)<>

    Otherwise will be inactive

    And there is 1 active date in time.

    Thanks in advance

    Sorry, we don't know what you want.

    Are you saying that 1 row (maximum) can be assigned status = 'Active' and if 2 or more lines are eligible, the last of them will be called 'Active'?

    If so:

    CASE

    WHEN tmstmp<=>

    OR ROW_NUMBER () OVER (PARTITION BY CASE

    WHEN tmstmp<=>

    THEN "could be."

    ANOTHER 'No Way'

    END

    ORDER BY tmstmp DESC

    )  = 1

    THEN "active."

    ELSE 'inactive '.

    END

    If you would care to post CREATE TABLE and instructions INSERT for some samples, so I could test it.

    DATE is not a very good name for a column, especially if the column is a TIMESTAMP, not a DATE.  I called the TMSTMP instead of the DATE column.

  • Cloning of the prod to test data (with names different ownerIDs/schema)

    Hello
    ID of owner or the schema of production data is different than in the Test environment; So what happens is that after cloning the database, all the tables are still owned by prod user and not the test user. So if we just update the ownerID in psdbowner, logging would not be possible because it begins to search tables in a different pattern. If we leave the entry in psdbowner as it is, then the connection is possible but is not what we want. We want owner id to be different in the TEST.

    If we want to have all tables with an ID of owner different test than production; What measures should be taken?

    Thank you
    Vikas

    You must export from the user of the production and import in the test user.
    IMPDP in db 10g and more, within REMAP_SCHEMA option. However, there is no real reason to have another username across different environment, it's much easier to have the same username across all the env, especially if you want to copy the data files...

    Nicolas.

    Published by: Gasparotto N on May 31, 2010 16:46

  • generate the xsd file xml data

    I would like to make my java application automatically convert a given to a one .xml .xsd file.
    I know that with jdev, you can generate an xsd one xml file, and I want my application to do the same thing.
    I also know that I can use JAXB: first of all, I bind the xsd file, then I marshall the java class created for the xml. But I don't know how to do it.
    y at - it a simple way to use the 'things' behind the generation of xml xsd jdev.

    Please see
    http://www.developer.com/Java/Web/article.php/3722211/using-JAXB-in-JDeveloper-1013.htm

    JDeveloepr 11 g includes JAXB 2.0.

  • How to recover the server response XML data

    Hey fellows,

    So I wrote this piece of code that sends an image to a server (thanks a lot Mantaker for the position you where has written on it!) and then I expect to receive a response in the form of XML code. I tried to use getResponseMessage(), which gives me a nice 'OK '.

    How could I achieve this? I read somewhere that it might be possible through a feed, could you help me?

    I'll give you a lot of congratulations!

    If you already have the basics of an HttpConnection down, it gets a little easier later.

    Once you have the your HttpConnection InputStream you can create a Document for analysis using the built-in XML parser.

    public static Document getXmlDoc(InputStream in)
    {
        Document doc = null;
        DocumentBuilderFactory docBuilderFactory
            = DocumentBuilderFactory.newInstance();
    
        DocumentBuilder docBuilder;
    
        try {
            docBuilder = docBuilderFactory.newDocumentBuilder();
            docBuilder.isValidating();
    
            doc = docBuilder.parse(in);
            doc.getDocumentElement().normalize();
        } catch (Exception e) {
            System.out.println("getXmlDoc Error: " + e);
        }
    
        return doc;
    }
    

    It is a basic function that I use to read a XML from a web server. If there are errors reading or parsing of the document, this function returns null.

    After making sure that you close your InputStream, you can start reading your document.

  • Results of the difference of two queries with a result zero

    Hello

    I use a query, as shown in the following example:

    SELECT the vault, id1 - id2, wf1 - wf2 tr1 - tr2 OF
    (SELECT sc, SUM (id1), SUM (wf1), SUM (tr1) FROM table1 GROUP BY sc) a.,
    (SELECT sc, SUM (id2), SUM (wf2), (tr2) SUM OF table2 GROUP BY sc) b
    WHERE arch = BSC.

    The results are good, but I have the problem if the baccalaureate is NULL that I get a result for the values. What I need, is that the result should show the vault and other values, if the degree is NULL.

    As

     SQL> select distinct deptno from emp
      2  /
    
        DEPTNO
    ----------
            30
            20
            10
    
    SQL> select deptno from dept
      2  /
    
        DEPTNO
    ----------
            10
            20
            30
            40
    
    SQL> select
      2     nvl(e.deptno, d.deptno) , nvl(e.c1,d.c1)
      3  from
      4     (select deptno, count(*) c1 from emp group by deptno ) e,
      5     (select deptno, count(*) c1 from dept group by deptno ) d
      6  where
      7     e.deptno (+) = d.deptno
      8  /
    
    NVL(E.DEPTNO,D.DEPTNO) NVL(E.C1,D.C1)
    ---------------------- --------------
                        30              6
                        20              5
                        10              3
                        40              1
    
    SQL>
    

    Published by: s_2 on November 3, 2008 17:37

  • The results in the debugger do not correspond with the result in the xml output is spent OPA


    Hello

    I use the OPM Version 10.4.6. I am facing a problem where I have a result field which is calculated by OPM in session of the debugger gives the correct result. While the same field has a different value in the output xml file passed from OPA to another system. Please give some advice on above question.

    Kind regards

    Mounia

    Sorry, I did not respond earlier. Do you have a support call opened in this regard, otherwise there is someone who has a very similar problem.

    I answered internally on this and the problem seems to be that of mathematical accuracy and very low values, which are then compared with zero. The debugger uses a .net implementation that can give slightly different numerical values at the extremes. I think that your rules would benefit from a degree of rounding applied before you test for equality with anything. Note the type of value that I've seen is 4-16

    I have provided more information to Schneider, who also provided a (Simplified) modules and some sample data.

    The debugger uses essentially the same engine of determinations and in general, you will see exactly the same result except that you've discovered to some extremely small numbers. In your case even if the value is 4-16 in the debugger and 0 in the API (or vice versa) the effect that has on the logic is that a single value is zero, so that the other does not which translates an extra 1000 added and results of 1000 and 2000 respectively.

    Concerning

    Ian

  • extract the pdf form xml data

    Hello

    What are the conditions to be able to extract data from a pdf form? I thought, that it is necessary to have the XML schema data connection and that all fields in the form must be bound to this data connection.

    But today I found, that domains can use the right connection 'use name (FieldName)', it's something by default - and that explicit data connection is necessary for this purpose.

    What is the common approach to the design of forms, which must be extracted by LC processFormSubmission?

    Thank you.

    All the data that is retrieved from an XFA form designed will be in xml format. The question then becomes how to control the format of the data that results. By default, the xml structure will follow the hierarchy (it is the Fieldname binding or binding normal use). If you want the data to follow a particular structure (so that you can use it with other systems that have a specific format) so that's when you would use sample XML or a schema in the data connection. Then by nodes of connection in the connection data in the fields, the form knows how to create the desired structure. If the structure is unimportant, then just stick with normal links and that no data connection is necessary.

    Hope that helps

    Paul

  • The result of the process so that dates are sorted by date

    I'm retrieve result to a query from a sql database with a column contains a string of this format:

    08/09/2008

    How can I treat this result as well as the dates are sorted by date?

    Thanks to anu help :)

    What is your db and the version?
    virtually all of the dbs have built-in string and date functions, a
    combinations that will allow you to update your field to be date-time.

    You'll probably want to create a new field in the table to store the
    Convertir convert dates, then check that all have been converted correctly,
    Remove the field from the current date, and then rename the new field to the old
    Date field name.

    using your db string functions, you should check out the day, month and
    years your date text pieces and pass them to the creation date of your db
    function.

    If your db is MySQL, it has a very practical STR_TO_DATE (str, format)
    function... check details in mysql ref. manual

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com/

Maybe you are looking for

  • Sierra of off wreck left by El Capitan OS bug?

    El Capitan is buggy as a swamp in this thing (mid-2011 Mac Mini). Got it works just agree with 10.11.6. Are there beta experience with Sierra that suggests that it will be better? If so, should I uninstall first OS - X?

  • Energy saving - installation of the V 7.03.04 site update

    I just received a list of 15 updates to driver for my M30. I am running XP SP2. After you download the first to be installed was Power Saver Version 7.03.04. At startup after installing, I got an error message "a fatal error has occurred. The program

  • sampclktiming? How to use?

    Hello I tried many things and I read a lot, but I've always found this error massage: NO MORTALS RUN - TIME ERROR: "malloctest.c", line 198, col 25, id 0 x thread 00001764: DAQmxWriteDigitalU32 function: (is-200292 return value [0xfffcf19c]). Part or

  • INTERNET EXPLORE, FIREWALLS, ANTIVIRUS &

    I HEARD SO MUCH HYPE ON: WHAT IS THE BEST: INTERNET EXPLORER, MOZILLA, GOOGLE CHROME - WHAT IS THE TRUTH? WHO IS THE BEST FIREWALL OFFERRED AND WHY? WHAT IS THE BEST ANTI-SPYWARE, REGISTRY CLEANERS, ANTI-MALWARE (S) AVAILABLE TO USE TO ENSURE THAT TH

  • printer Deskjet 920C driver

    I have a Deskjet 920C I need to download a driver.My OS is Vista Home Premium Service Pack 2. This computer is never put on line Internet, and I don't want to do it now. I searched online, but the only drivers I found require a scan, a separate drive