AS3, filtering data on the client

Hello again, friends:

Play again with cartoons, I'm working on another way to view them. The app is here, http://www.timos.com/timos/GreenEarthEN/GreenEarthEN.html and View Source is enabled for the corresponding code.

I want to be able to navigate the cartoons by category (the each topic) - it's the data grid column titled "key words". Some of the cartoons are more than one keyword, so the keywords, the fields are really LISTS. The combo box above the data grid view allows you to choose a keyword to fetch the relevant cartoons. Whenever you select a new keyword from the drop-down list, a call is made to the server for a new filtered list. These lists manipulation is very easy with ColdFusion or SQL.

Given that the whole dataset CreationComplete lights in the app and is always available, it would be smarter to do all filtering on the client. I searched all the Adobe docs and google all I could think of, but found very little on the filtering of the data with ActionScript.

Any ideas on how to proceed would be much appreciated. If you want to give a shot of this, keep in mind we are dealing with lists, not simple keywords.

Best of all,

Carlos

Using a filterFunction on your ArrayCollection collection function is probably the easiest way to go. I looked at only your code, but see if it works for you.

TS

Tags: Flex

Similar Questions

  • How to send data from the client to the server using tcp

    1. as I am new to watch I need help with sending data from client to server. I went through various examples of labview, but each of them also explains transfer of data to the client server. But I need help regardng send data from the server to the client.

    2.i would use the data type variant for sending my data.

    Can someone help me please. Thank you

    Regardless of the meaning. Once you have a connection each end allows it to send data to another. Just create what you want to look like interaction.

    Do you want the client sends a command that request data?
    How do you think the response data to look like?

    You can send variants, but probably not worth the effort.

    Mike...

  • How can I get the filtered data from the first form

    How can I get the filtered data from the first form in a second form to make an update of the multi.
    Thank you very much

    William,

    I would use for this collections. A link is good if you need to pass a single value.

    1. create a collection
    2 fill the collection with your result set
    3. go in the page target and uses a method of a query in your link to this page
    4. your target page receives a request and allows you to edit documents.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Filtering XML data in the grid

    I can't sem to figure out how to filter my XML data before entering my data grid. I want to load only the XML data with the ID 'BALUSTER' attribute and have tried to enter:

    data_grid. DataProvider dp =. (@ID IS 'BALUSTER');

    in my function xmlLoaded without success.  I'm fairly new to as3 and could certainly use the help.  Thank you.

    var dpataProvider;
    var products_xml:XML;
    var xmlReq:URLRequest = new URLRequest("data/products.xml");
    var xml_loader:URLLoader = new URLLoader();

    function xmlLoaded(event:Event):void {}
    var ldr:URLLoader = event.currentTarget as URLLoader;
    var xmlDP:XML = new XML (ldr.data);
    DP = new DataProvider (xmlDP);
    data_grid. DataProvider = dp;
    }

    xml_loader. Load (xmlReq);
    xml_loader.addEventListener (Event.COMPLETE, xmlLoaded);

    Assign the filtered data (not the original) to the data provider:

    function xmlLoaded(event:Event):void {}
    var ldr:URLLoader = event.currentTarget as URLLoader;
    var xmlDP:XML = new XML (ldr.data);
       
    var data: XML = ;
        data.setChildren (xmlDP.PRODUCTS. (@ID) IS 'BALUSTER'));
       
    DP = new DataProvider (data);
    data_grid. DataProvider = dp;
    }

  • Overview of the data in the service Console Regional on the client machine generates an error.

    When I saw the data in the Regional (version 11.1.1.4) service console on a client workstation, I get a "cannot sign in the field. "Error of initialization of the ORB.java.io.FileNotFoundException: domain.db (access is denied)" error. Now, if I use the client URL to Admin Console on the same computer am able to preview the data correctly. Also when I saw the data on the client installed on the server can't correctly preview data. Just when I use the Admin console client installed on a workstation, I get this error. Any suggestions?

    Thank you
    Ted.

    Published by: Teddd on March 26, 2013 14:51

    TimG says:
    I certainly say it is your problem (I don't even know how to see / control when installing local vs. web-Launcher finds Java, or if indeed there is a difference) but I think it's plausible enough to a test value

    In 11.1.1.3 the Regional (not the web version) service console will resume java installed on the machine, if Java has not been installed it will use the settings in the admincon.lax file for example lax.nl.current.vm=E:\Hyperion\common\JRE\Sun\1.5.0\bin\java.exe
    So basically if you have installed Java 1.6 it will pick up and use that otherwise it will use the default JRE INSTALLED with Hyperion. The web console needs a version of Java installed in order to use Java Web Start.
    And I agree to have a different version of Java that sustained can cause problems using the Regional service console.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • LabVIEW TCP/IP Client and server, I need to send commands and receive comments side server from the client regarding the command sent.

    Hi all

    I can configure my two PCs, one as a client and a server very well. I am able to send commands from the server to the client. However, I am trying to determine how I can get feedback from the client to the server that something has changed, or a CQI that the command has been received. How I can do this in LabVIEW with the box to TCP/IP tools, or is there a better way to do it?

    Thanks for your help!

    Best regards

    -Gmac

    Once the connection is established, TCP does not care which end is the 'server' and the 'customer '. Data can be sent in both directions using the same read and write functions. So, if you are already able to send data to the client and read on the server, you should be able to do the same to send data from the server to the client, using the same TCP connection.

    If this is not clear, please your postal code so that we can provide more specific advice.

  • Store the value of the client side in the .jsf page

    Hello

    I implemented the functionality of line selection using check box in an af:table paginated . The user can select a record by activating the individual checkbox at the level of each line or select all the records by selecting the checkbox "Select all" at the level of the table header. I added a client listener that fires on the box click and the javascript function I capture the unique value of each line and then invoke a server event and by passing all the unique values captured.

    I've also attached a server listener that calls a method in the managed bean. In the method I capture all the unique values (which went from java script) in the java collection and then storing the collection in the view range.

    On the page, I have a button 'Submit' who collect all values stored in the field of view and execute the necessary business logic. This full feature works very well.

    My requirement is to improve the flexibility of the page.

    When the user selects the check box, it takes around a second deal with the life cycle complete .jsf page.

    Is it possible to avoid the call Server to store the values in the field of view instead if I can store the decision-making value on the client side-side (which I believe will improve performance) and then finally when the user presses the button "submit" I'll enter the stored values on the client side and complete the rest of the business logic.

    Please let me know if this is possible in the page .jsf which is developed in the ADF with JDev 12 c (12.1.3) or please suggest another approach.

    Indications will be useful.

    Thanks in advance.

    Kind regards

    Gerard

    There are two ways to do this, consider for example the browser Local storage / storage of Session:

    http://blog.teamtreehouse.com/storing-data-on-the-client-with-localStorage

  • Is it possible to download a file from the client flex on the server?

    In my plugin I would ask the user to provide me with a local of files I need to upload to the server (server blank when my Java code is running). Since flex is launched in the sandbox inside the browser, they provide an API for downloading files the from/to the URL of the server built-in. Is it possible to define my own servlet (or something like that) inside the Virgo vSphere server to listen for the event upload? Y at - it another possibility to upload a file from the client flex on the server?

    Thank you

    Valeria

    Yes it is possible, but it is not recommended to download the large amount of data to the client Web server.  Don't forget that your java plugin is just a transmission in your own background when real business logic and/or data sources are provided.  You might as well send the file directly to your back-end, there is no reason to keep it on the server of the Web client.

  • Possible to save the file to the client?

    Hi people,

    Is it possible for a customer to take, say, Flex content textual content in the flex application, create a .txt or .xml file and launch the dialog open/save/cancel the browser without involving a server?

    Thank you!

    Thank you, Greg.

    I am famaliar with shared objects. I'm sure there are reasons of security to have this configuration in this way, but still seems strange to me that I can't already data in the client (and so in the memory of the client) on the computer of the physical client as a normal file. I guess it must have something to do with the execution of malicious code?

  • Determine the flow of data to a Client

    5508 controller I clicked monitor - customers - I chose a customer who connects using 802.11ac
    Course TxRateSet m9 ss2

    The client is connected to a 3700 series access point.
    Using the plug-
    http://www.Cisco.com/c/en/us/products/collateral/wireless/3700-series-AC...
     
    Page 5 of the data sheet:
    Index of MCS - m9 = 9
    Space Streams - ss2 = 2
    9.2 = GI = 800 ns - 20 MHz rate 78 Mbit/s, 40 MHz rate 780 MB/s, Mbit/s 80 MHz rate 780
    IG = 400 ns - 40 MHz rate - 400 Mbit/s, Mbit/s rate of 80 MHz 866.7

    How do you that GI is used and what rate MHz, 20, 40 or 80.

    Any help is appreciated.

    This can be helpful on this. I think that WLC uses long guard interval

    https://supportforums.Cisco.com/document/11938046/how-interpret-80211ac-datarates

    Go to the AP and go below to confirm exit

     show controllers dot11radio2

    HTH

    Rasika

    Pls note all useful responses *.

  • Expiration date of the submitted client Web application

    I have a submissive client web app I need set the expiration date to the 15th or last day of the month, whichever is closest to you. So, it a web application of pay where the employee submits their hours and we want to show once the item now time to cut payroll, which is twice a month, the 15th and the last of the month and is always the one which is the next day. Is their some javascript or liquid I can tell from the date of such and such a date, if it is first?

    My second question I want to ask here is on a time field. If I use datetime, it shows just a calendar and all play with the input field seems to not work to make where they choose a time. If I change the field to a string, then set it as a time, the field is not entered.

    Third question, I am know liquid and love it. I know it can be done with the liquid, but still how it works to make the filling of liquid in the value of a field. For in and out time, I have a third field that is pretty much a sum of total time. I need the total of the time difference between the check-in and check out field and put in the field of the sum. What is the best way to write this liquid calculation? I know JavaScript, but feel that this can be done with easy liquid also. Suggestions or comments?

    Best regards

    Sarah Mullin

    Hello

    I don't think that there is an out of the box solution to find the last day of the month, however, build a hard coded relationship between the number of days and months is pretty easy to do, here's an example of code that I put in place for your particular case. It may be more polite of course (for example, in a few years that February has 29 days):

    {% assign day = Globals.Site.DateNow | date: '%d': convert: "string" %}}

    {assign % per month = Globals.Site.DateNow | date: "%M" | convert: "string" %}}

    {% assign year = Globals.Site.DateNow | date: "yyyy" | convert: "string" %}}

    {% assign middle_date = year | append: '-' | append: month | append: '-' | append: "18" | convert: % 'date'}

    {% If Globals.Site.DateNow > middle_date %}}

    Date in the past, the date you want to define is the 15 - th, which is {{middle_date}}

    {% other %}

    {% assign myDate = Globals.Site.DateNow | date: % 'MMM'}

    In the future, the date you need is the last day of {{myDate}}, which is

    {% If myDate}

    {% When 'Jan'-%} 31

    {% When 'Feb'-%} 28

    {% When 'Mar'-%} 31

    {% When "Apr"-%} 30

    {% When 'May'-%} 31

    {% When "Jun"-%} 30

    {% When "Jul"-%} 31

    {% When "Aug"-%} 31

    {% When 'Sep'-%} 30

    {% When 'OCTS'-%} 31

    {% When 'Nov'-%} 30

    {% When 'Dec'-%} 31

    {% endcase}

    -{{month}} - {{year}}

    {% endif %}

    I hope this helps!

  • Problem with negative filters of refinement and the source of data on the OID 2.3

    Hello

    I have a problem using the filters of negative refinement on a data source with Information discovered 2.3

    Here is the configuration of data source

    {
    "baseFunctions":]
    {
    "attributeKey": "COMPANY"
    "attributeValue": "PROMO."
    'class': 'com.endeca.portal.data.functions.NegativeRefinementFilter '.
    },
    {
    'class': 'com.endeca.portal.data.functions.RecordFilter ',.
    'recordFilter': 'OR (OID_RECORD_TYPE:RES, OID_RECORD_TYPE:DEF).
    }
    ],
    "datastoreName": "datastorename",
    'name': 'ABC ',.
    "port": "7770."
    "Server": "XYZ".
    }

    When I reached a dashboard page where all the portlets using this data source, the record filter is applied as expected. However, for negative refinement filter, so that it appears in the portlet of the breadcrumb, it has no effect on the data set. Guided navigation always displays the value as a dimension as possible and I can see in my table of results as the data was not deleted by the negative refinement filter. I tried to restart Tomcat, without effect.
    If I go to the guided navigation and define negatively this value on the dimension of the COMPANY, the data gets filtered and I get 2 negative improvements will appear in the navigation bar to the same value (!)

    Is there something escapes me to configure negative refining filter?

    Thank you

    Your configuration is correct.

    I see two possible problems, but we are really just shooting in the dark:

    (1) "rogue whitespace.
    -If your value is not actually "PROMO" "PROMO", then your filter would not exclude anything. This would also explain why you might then add a negative refinement for the "real value". To validate this, use a browser with some debugging functions (i.e., Chrome), have your applied by default negative refinement and then "apply manually" in Studio.

    And then open the browser debug mode (chrome, right click on the value you just added and click 'Inspect element'). If all goes well, the HTML code will show a little differently, and you can see the white space in the manually added refinement.

    (2) it would happen to be a managed attribute? I think that the managed attribute values can have display names and real names and real name should be used for filtering purposes. I doubt that's the problem, but it's the only other thing I could think of...

    Kind regards

    Patrick Rafferty
    Branchbird

  • Remove folders in a store of data through the VI Client?

    When I browse a store of data via VI Client, I can delete individual files, but not files (delete button grayed). Is it normal?  I can remove them if I FTP to the ESX host and do it from command line.

    It isn't really a problem, but more than a curiosity.

    Don't you can't delete the files via the browser of VIC data store.

    You can delete the folder via Winscp- http://winscp.net/eng/download.php (if you do not want to do it from the command line)

  • Storage of the client in the SQL data source fails all of a sudden

    After performing several Windows 2008 security updates last night, one of the sites started throwing errors related to access to the client storage database, which is the default value as defined by the CF Administrator:
    coldfusion.runtime.ClientScopeDBException: operation failed on the source of data DATA source NAME.
    Reason of failure java.security.AccessControlException: access denied.


    Most of our sites use this data source for storage of client, and none of them have the problem.
    Editing the file Application.cfm to use clientstorage = "cookie" got the site up.
    I then added a NEW data source to the list of storage Client and set the Application.cfm file to use instead.
    This works. As sson as I remove the Application.cfm file clientstorage attribute, the site breaks.
    Short to reboot the server (which happened last night after the updates), I restarted IIS all related services.
    Any ideas?

    Java security error, huh? You know, I had missed that in your first note. (He says he is, "reason for failure java.security.AccessControlException: access denied".)

    I'm starting to wonder now: what is a CF Enterprise Deployment? It is configured (in the CF Admin) to use what is called "Security Sandbox"? If so, the problem might be that this one app is in a sandbox that has not been configured to access the DSN. Sandboxes are configured for all code running in a given directory (and its subdirectories), which would explain this work for everyone, but this one.

    Purging of customer data is quite drastic, if data are important for your application. I recommend you try this if you have a little more time.

    If you're reading this I would like to learn more about Sandbox security, in addition to the docs, you can read more in some articles that I did for the Dev Center a few years previously, to http://www.adobe.com/devnet/security/articles/sandbox_01.html and http://www.adobe.com/devnet/security/articles/sandbox_02.html. While it was written in the period of CF6, it still applies to the 7 and 8.

  • Acccess filtered of measurement data, while the program is running?

    My main problem is that data that I take is 3-dimensional. I take measures of resistance, capacity and Q factor over a predetermined period of time, but the problem is that these measures are taken in a matrix of switching through provided pin code sequences.

    If I can take a measure of resistance from pin 1 to 20 pins between 10 am and I want a useful method for displaay these data to the user that the program is still collecting data. I write data to a TDMS file because it is collected, and the output format looks like this:

    My thoughts were going to have 4 separate controls that can be set to access specific aspects of the test while it is running to make this work. My idea is to have (4-6) something similar to the below:

    In this way the user can refine exactly what they are looking at in this case.

    Key question is whether I should / can:

    1) access to the PDM file for the information you selected with the commands above to fill the Microsoft graph chart?

    (2) the data measured in a wide range of stuff and then have sub - VI that filter of this large table to retrieve the data and complete the Microsoft graph chart?

    (3) another method...

    And advice have enjoyed. Thank you!

    ; How much data are you talking about?  Is - this low enough so that you would be able to keep the table in its entirety in the memory?  If so, then I would use your option 2.  Then design an interface that allows the user to determine what links they want to watch, and your program could analyze through this gathering the data and display it.

    If that's too much data, then you have to go with the PDM or another option of storing files and read the data back to the piecemeal and build your data table that applies to display.

Maybe you are looking for