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.

Tags: Flex

Similar Questions

  • How to set up the filter to provide data for the last 7 days

    Hello

    In our environment of BAM Oracle 11 g, we have a data object that stores a date with the datatime data type field. In the report of BAM, we want to display data only for the last 7 days. Not sure how we can configure the filter to "during the" last 7 days

    Can someone help how to achieve this requirement?

    Thank you.

    Please try the following-
    (1) open the chart bar in edit mode.
    (2) in the editor view, click on the button 'Properties', then go to the tab "Format of the value.
    (3) in the tab "Format of the value", to "apply to" drop-down list, select your datetime field.
    (4) in the contiguous list of 'Catégories', select 'TimeUnit' as the category.
    (5) in the following list of 'Type', select 'day of the week.
    6) click OK/application to see the relevant changes.

    Now you should be able to see the day of the week on the horizontal axis 'Thursday', 'Saturday', etc.

  • 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.

  • How to remove an XML data model in data definition screen

    Hello

    Question: I downloaded the data definition file in the data model.
    How to remove it.

    What means each file type?
    XML Schema
    Data model
    Preview of a file
    Breaking control file

    I have an XML file and a XSL file. I need to have an output in XML format.

    So I installed my XML file in the data definition of data model.
    And the XSL file in the templates.

    Am I wrong?

    11.0.10.2

    Kind regards
    Sabine

    Question: I downloaded the data definition file in the data model.
    How to remove it.

    You can not remove it, but you can date deadline there.

    What means each file type?
    XML Schema
    Data model
    Preview of a file
    Breaking control file

    This is explained in the manual 'Oracle XML Publisher Administration and the Developer Guide Release 12' - http://docs.oracle.com/cd/B34956_01/current/acrobat/120xdoig.pdf

    I have an XML file and a XSL file. I need to have an output in XML format.

    So I installed my XML file in the data definition of data model.
    And the XSL file in the templates.

    Am I wrong?

    Good - See Chapter 2, "Creating the model" and Chapter 5 "models and chapter data ' in the same doc referenced above for more details.

    Thank you
    Hussein

  • How 2 get d xml data 2 devlp Orcl BI Business Publisher sql qry RPT

    I am new to Oracle BI Publisher Enterprise. To prepare a report of applications Oracle using BI Publisher allows us to obtain the simultaneous release of Oracle reports as XML (thru prg). Then, load the xml into the rtf document and define templt and data definition and rerun the GWP of conc... But in the company Oracle BI Publisher, how do we get the output xml from a sql query. Please bear with my ignorance and help me in this issue
    Thanks and greetings

    Create a new data source and make it as a sql query.
    And run the report, and then select the output in XML format.

    Save this XML and use it to RTF.

  • 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 can I embed XML data in a PDF file?

    I want to embed XML data in a PDF file if the file can be scanned for data behind the document. Is there a standard way to do this?

    For example, if the PDF file is a bank statement, the embedded XML would be his number and bank account balances. He would not understand the standard text in the statement such as the name of the Bank, etc.

    I read about the XMP specification, but this seems to be more than the document metadata (title, subject, etc.). And it contained are tagged but it's a different view of the entire document.

    ??? -Thanks - dave

    Although the XMP block are stored in XML format, you can just embed any XML file. The block must follow the standard, which means that each data packet must be defined in a schema - as the name suggests, XMP is extensible, you can set the new scheme for local use, but you can't mess with standard seals and add random new tags. The schema itself is not embedded in the file, it is referenced by a unique ID number and URI. of course have a lot of data in a custom schema does not mean that any software will see it - advanced search of Acrobat can be said to sweep the XMP block, but the search engines only tend to bother with tags such as "title" and "description".

    To see what is currently in a PDF file, open Document properties > Description > additional metadata > advanced.

    You can save the current XMP block in a text (.xmp extension) file and replace/add other files XMP. If you click on the 'i' icon in the upper right corner of the Advanced dialog box, you can access the system profiles - these can be created in other applications such as the bridge, but there is no Manager profile in Acrobat itself.

    For more technical information on the use of XMP and creating new schema, see http://www.adobe.com/devnet/xmp.html

    Note that the XMP SDK for CS6 does not work in the Acrobat family.

  • 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/

  • 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

  • How to extract an XML data that have different namespace prefixes?

    Hello

    I have inserted XMLs in an XMLTYPE column which are based on a common XSD that allows different namespaces.

    How can I extract some data from these XMLs using extractvalue when will be preceded different namespaces for this node?

    Thank you and best regards,
    A

    Hello

    You can use XPath:

    //*[local-name()="node_name"]
    

    For example:

    with t as (
     select xmltype(
     '
      mark
      del
     '
     ) doc
     from dual union all
     select xmltype(
     '
      john
      mum
     '
     )
     from dual
    )
    select extractvalue(t.doc,'//*[local-name()="name"]') as name,
           extractvalue(t.doc,'//*[local-name()="place"]') as place
    from t;
    

    or,

    with t as (
     select xmltype(
     '
      mark
      del
     '
     ) doc
     from dual union all
     select xmltype(
     '
      john
      mum
     '
     )
     from dual
    )
    select x.*
    from t, XMLTable(
    '
     {
      element name { //*[local-name()="name"] },
      element place { //*[local-name()="place"] }
     }
     '
    passing t.doc
    columns
     place varchar2(30) path 'place',
     name  varchar2(30) path 'name'
    ) x;
    
  • 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.

  • 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

  • presence of xmlns prevents the e4x XML data access

    I was pulling my hair out trying simply to access data in a tag of an XML object. When I remove the attribute xmlns, it works, otherwise it doesn't. In the following code when I remove 'xmlns = http://xyz' list the data. What I need to add to keep this xmlns in the XML file and always fill the list box?
    Thanks, JH

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" horizontalAlign = "center" >
    < mx:Script >
    <! [CDATA]
    public var ydata:XML =
    "< theResponse xmlns =" http://xyz "> "
    < theReturn >
    < > 1234 myId < / myId >
    < > 2345 myId < / myId >
    < > 5678 myOther < / myOther >
    <-c >
    < / theResponse >;
    []] >
    < / mx:Script >
    < mx:VBox width = "100%" height = "100%" horizontalAlign = "center" >
    < mx:List width = "50%" dataProvider = "{ydata... myId}" height="20%"/ >
    < / mx:VBox >
    < / mx:Application >

    Adding the following code resolves the problem:
    namespace private myNS = "" http://xyz "; "
    Use the myNS namespace.

  • How to remove the label of xml data in sql

    with a as
    (select '<?xml version="1.0"?>
    <ROWSET>
      <DEPT>
        <DEPTNO>10</DEPTNO>
        <DNAME>ACCOUNTING</DNAME>
        <LOC>NEW YORK</LOC>
        <EMP_LIST>
          <EMP_ROW>
            <EMPNO>7782</EMPNO>
            <ENAME>CLARK</ENAME>
            <JOB>MANAGER</JOB>
            <MGR>7839</MGR>
            <HIREDATE>09-JUN-1981 00:00:00</HIREDATE>
            <SAL>2450</SAL>
          </EMP_ROW>
        </EMP_LIST>
      </DEPT>
    </ROWSET>' from dual)
    select * from a;
    


    I want the output after removing the same < HIREDATE > tag

    <?xml version="1.0"?>
    <ROWSET>
      <DEPT>
        <DEPTNO>10</DEPTNO>
        <DNAME>ACCOUNTING</DNAME>
        <LOC>NEW YORK</LOC>
        <EMP_LIST>
          <EMP_ROW>
            <EMPNO>7782</EMPNO>
            <ENAME>CLARK</ENAME>
            <JOB>MANAGER</JOB>
            <MGR>7839</MGR>       
            <SAL>2450</SAL>
          </EMP_ROW>
        </EMP_LIST>
      </DEPT>
    </ROWSET>
    

    Please help me

    SQL> with a as (
      2  select '
      3  
      4    
      5      10
      6      ACCOUNTING
      7      NEW YORK
      8      
      9        
     10          7782
     11          CLARK
     12          MANAGER
     13          7839
     14          09-JUN-1981 00:00:00
     15          2450
     16        
     17      
     18    
     19  ' xmlcontent
     20  from dual
     21  )
     22  select xmlserialize(document
     23           xmlquery(
     24             'copy $d := .
     25              modify delete node $d/ROWSET/DEPT/EMP_LIST/EMP_ROW/HIREDATE
     26              return $d'
     27             passing xmlparse(document a.xmlcontent)
     28             returning content
     29           )
     30           indent
     31         ) as xmlcontent
     32  from a ;
    
    XMLCONTENT
    --------------------------------------------------------------------------------
    
    
      
        10
        ACCOUNTING
        NEW YORK
        
          
            7782
            CLARK
            MANAGER
            7839
            2450
          
        
      
    
    
  • The table in XML data

    Dear Sir

    The current ver is 10gXe

    I trf suite data through two table the Pl/sql procedure in table sales, filed (col) narr varchar2 (200)

    How can I select all in xml?

    is it possible to convert given below even even in Formate of xml

    > < 1 INVOICE NUMBER < / INVOICE NUMBER >
    < DATE 14/09/2011 invoice - > < / DATE of INVOICE >
    < BILLING - >
    Pipe of the first < DESCRIPTION OF PRODUCTS > carbon steel seamless < / PRODUCT >
    CETSH < NUMBER > 73049000 < / CETSH-NUMBER >
    QUANTITY < CODE > KG < / QUANTITY-CODE >
    < QUANTITY > 40 < / QUANTITY >
    < AMOUNT-OF-DUTY-set GAME > 3699 < / QUANTITY-OF-DUTY-INCURRED >
    < / BILLING >
    < / INVOICE-INSTRUCTIONS >

    You must use the getClobVal() method to convert the XMLType to a character data type:

    ...
    ).extract('/*').getclobval() as yourXML
    from demo_orders o;
    

Maybe you are looking for