Better Filter VI?

I am working on a VI to read voltage inputs from a USB 6210 that vary from +/- 5 mV. I understand I will have noise, but there are instances where that noise can get up to +/- 1mV. It usually last for only a few milliseconds before settling down back to the normal +/- 0.2 mV. I have attached my VI with my idea to filter this noise out. Is there a better method than this?
Attachments:
PlainVIv1.vi ‏130 KB

Plenty of ways to filter - depends upon your application as to what is acceptable:
If you are not bothered about phase shift or dynamics of your filtered signal - then a simple averaging / low pass filter might work if the separation between the frequency of the noise and the signal you want to keep is sufficient.
If this is a problem, but you are not using as part of an online system - i.e the filtering can be done once all (or part) of the data has been gathered then there are multi-pass filters that preserve the phase shift (there is filtfilt command in Mathscript)
If you are bothered about phase shift and it needs to be filtered online - then you have to design your filter carefully, and may need something far more advanced, but depends upon the performance you need and frequency separation you have. If you are doing filtering within a control loop be careful the phase shift doesn't destabilise the control loop.
REMEMBER: The best way to deal with noise is identify the source, and reduce it at source before resorting to filtering - for example timing / synchronisation issues can make things look noisy.
Consultant Control Engineer
www-isc-ltd.com

Similar Messages

  • Can i get a casino/ bet filter for Mac?

    Hi,
    Just wondered if anyones knows of any software for Macs that prevents people from getting onto gambling sites. I can only find ones that work with Windows.
    Thankyou.

     
    wiggle wrote:
    Hi,
    Just wondered if anyones knows of any software for Macs that prevents people from getting onto gambling sites. I can only find ones that work with Windows.
    Thankyou.
    Check the following places:
    http://www.apple.com/downloadsMap App Store 
    http://www.apple.com/downloads/macosxApple Downloads MacUpdate 
    CNET Mac Downloads
    Good luck!

  • How does digital filter order influnce filtered data , the higher the better?

    Seems that higher order filter has better filter effect ofcut-off frequnecy is set to be constant.
    So filter order the higher the better?
    is there any side effects for higher order? such as phase delay?

    fenny,
    The main effect of a higher filter order is that the roll-off is much quicker (i.e., there are fewer frequencies between the pass band and the stop band). Depending on the type of filter that you use, there may be more phase delay with higher orders. Some filters are designed for phase delay (I think elliptical and Chebyshev are phase delay filters), but some filters will not give anymore phase delay with higher orders (e.g. a Butterworth filter). But there aren't really any "side effects" to having higher orders other than possibly longer processing times. I hope this answers your questions!
    Tyler S

  • Using a filter to find Masters, only

    I have a very large Managed Aperture library and want to filter out all the Masters while I do some cleanup = since if I then delete something it will not be a master and that won't be as much a problem. I thought of using the Adjustments are NOT applied filter == would that find all the masters or is there a better filter???
    I can eye ball the pictures and delete dups but it might be much easier to get the masters off the front first and then deal with the remaining pics and whether they are dups...

    kathy, Can you validate this?
    >>>
    From: Kathy J. Mikich<[email protected]>
    To:novell.support.groupwise.6x.other-gateways, novell.support.groupwise.7x.other-gateways
    Date: 8/5/2007 11:54 PM
    Subject: Re: Using a connector to sync addresses only (not mail routing)?
    I believe if you install the Exchange Gateway then go to optional gateway
    settings you can choose if you want dir synch both directions and or mail to
    flow there but the other way to make this work would be to install the
    gateway use it for dir synch then change the link type to be a GWIA gateway
    link so that the mail would go out the GWIA. I will check this out and let
    you know once I have.
    >>> On 8/3/2007 at 12:04 PM, in message
    <H6Ksi.2260$[email protected]>, Joe
    Walters<[email protected]> wrote:
    > Does anyone know if it's possible to use the GW to Exchange connector (or
    >
    > some other mechanism) so that it synchs the address books
    > bidirectionally,
    > but routes messages via SMTP (not over the connector)?
    >
    > If I understand correctly, if you implement the GW Exchange connector
    > for
    > address book syncing, it also MUST be used for mail routing as well. We
    >
    > would much prefer to use SMTP routing for message flow, and not have it
    > go
    > over the connector.
    >
    > Is this possible?
    >
    > Or is there perhaps some other way to share email address information
    > between the two environments while still using SMTP for mail routing?
    >
    > Thanks!
    > Joe

  • Regular Expression Credit Card Filter

    I've been playing around with filters for credit cards and have yet to find one that stops all credit cards while limiting false positives because it is matching any random 16 characters.
    I need one that blocks all amex, visa, mc, and discover without spaces, with spaces or with dashes.
    This one has worked the best so far (it's a mish mash of filters I have found or tweaked or have been sent to me), but I think it can be improved. Any ideas? Anyone have a better filter they are using?
    Visa/MC/Amex
    ^((4\d{3})|(5[1-5]\d{2}))(-?|\040?)(\d{4}(-?|\040?)){3}|^(3[4,7]\d{2})(-?|\040?)\d{6}(-?|\040?)\d{5}
    Discover Card:
    (6011|5[1-5][0-9]{2}|4[0-9]{3}) [0-9]{4} [0-9]{4} [0-9]{4}
    (6011|5[1-5][0-9]{2}|4[0-9]{3})-[0-9]{4}-[0-9]{4}-[0-9]{4}
    (6011|5[1-5][0-9]{2}|4[0-9]{3})\.[0-9]{4}\.[0-9]{4}\.[0-9]{4}

    im not so versed at regular expressions, but i have found the following regular expressions on the web.
    If someone can get these Ironport legal, maybe they might help with the false positives.
    if (type == "Visa") {
    // Visa: length 16, prefix 4, dashes optional.
    var re = /^4\d{3}-?\d{4}-?\d{4}-?\d{4}$/;
    } else if (type == "MC") {
    // Mastercard: length 16, prefix 51-55, dashes optional.
    var re = /^5[1-5]\d{2}-?\d{4}-?\d{4}-?\d{4}$/;
    } else if (type == "Disc") {
    // Discover: length 16, prefix 6011, dashes optional.
    var re = /^6011-?\d{4}-?\d{4}-?\d{4}$/;
    } else if (type == "AmEx") {
    // American Express: length 15, prefix 34 or 37.
    var re = /^3[4,7]\d{13}$/;
    } else if (type == "Diners") {
    // Diners: length 14, prefix 30, 36, or 38.
    var re = /^3[0,6,8]\d{12}$/
    thanks for the reg expression beneckij. I am still waiting to capture legit traffic, but getting false positves on South american phone numbers

  • Using OS X Server as Spam Filter Passthrough

    Can OS X server be used to Scan Emails before they are sent to an Exchange server? We are trying to find a way to better filter spam before it gets to a users inbox. I was wondering if OS X server either Tiger or Panther are able to have mail sent to it, Scan the mail, Filter the Spam then forward it to an exchange server?
    If so can I do it through the server admin or do I need to edit some config file?

    As I said before. Can't be done through Server Admin. You will need to modify configuration files.
    Start by looking at this thread:
    http://discussions.apple.com/thread.jspa?messageID=1795596&#1795596
    There is far more info than you need. Take Jeff's example setup. Pretend your OS X Server is Server 1 and your Exchange Server is Server 2&3.

  • May Release: New partner support, Infrastructure updates, Site templates and bug fixes

    Link: http://www.businesscatalyst.com/_blog/BC_Blog/post/May-release-New-partner-support-Infrast ructure-updates-Site-templates-and_bug-fixes/
    We are announcing a new Business Catalyst release, scheduled to go live on Thursday, May 3rd. With this release, we are continuing our investments in system performance and stability by increasing our web servers capacity, enabling HTTP acceleration to provide faster site loading times, and improving the site creation speed by using pre-generated sites.
    On the product side, we have completely revamped our partner support workflow taking advantage of the Adobe support infrastructure and tools, enhanced the site templates workflow for partners, and included lots of bug fixes and improvements. Read through the following sections to get detailed information about this release:
    Partner support
    Infrastructure updates
    Features and enhancements
    Issues fixed by this release
    What's next
    You can jump to the corresponding section by clicking the above links.
    Partner support
    Updated Help & Support partner experience
    Following Adobe ID support, we have upgraded BC  support tools (cases, chat, documentation) with standard Adobe tools. As a partner, you can now benefit from the same support tools as the rest of Adobe Creative Suite, and can track your support cases with Adobe BC, Dreamweaver, Muse or Photoshop in a single place.
    Partners with more than 100 paid sites will get 2nd level chat support, which includes a higher priority, by default. If you have more than 100 paid sites, but spread across different Partner Portals, please ask support to enable 2nd level chat for you.
    Support experience for your Small Business owner clients can now be owned by partners (see below).
    Custom Help & Support URL for your clients
    As a partner, you are probably already offering various additional services to your clients besides building & maintaining their BC site. Support, tailored specifically to your client needs, is usually one of these value-added services. We are now enabling you to take your Support service to the next level. In  Partner Portal Settings, you have the option to set a custom URL for what will open when your client clicks on Help & Support inside Admin Console:
    If you have multiple partner accounts, for different verticals, you can specify a Support URL for each of these.
    The default Support experience provided by BC for your clients will be updated in a few releases to be similar to the partner support experience. This includes BC-branded support cases and documentation. If you'd like to keep a white-label experience for your customers, please set your own Help & Support URL in Partner Portal.
    For more details please read the Improved support workflow and new forums announcement on our blog.
    Infrastructure updates
    Between our April release and the following infrastructure updates have been enabled
    Limited trial sites for free partners – starting with our May release, the number of trial sites a Free Partner can have will be limited to 100. Once the limit is reached, Free Partners that need to create a new trial site have the options to upgrade to a higher partner plan, upgrade some of the trial sites to paid or delete unused/expired trials.
    Automatic trial expiry extension - with this release, trial site expiry date will be automatically extended with 30 days every time an admin user logs in  the system through the admin interface or through FTP.
    Installed additional hardware - we have installed additional web servers on all our data centers, that translate into an increase of the existing capacity with over 70%.
    Updated DNS infrastructure - we have improved the DNS resolution for email delivery so that we can increase the rate at which we're sending the system operational emails
    HTTP acceleration – all sites static assets are served from a new cache engine (images, CSS and JavaScript files, together with improved headers that should allow the browser to cache them better for a browsing session). This update has been turned on along with our April release, and has made all the BC sites load faster on first and on subsequent loads.   
    Accelerated site/partner creation – we've changed the way new sites are created for faster speed, pre-creating them and reusing pre-created sites when needed, and have also improved the creation process for new partners, minimizing the impact of new CCM customers on the existing datacenters.
    Adobe ID for partners - in order to support an integrating experience between the various Adobe tools a partner may use (Dreamweaver, Muse, Support forums) we have added Adobe ID support for Business Catalyst partner accounts. Starting April 19, partners are asked to merge their current Business Catalyst account with their Adobe ID accounts. For more details about the transition process and FAQ please read the Introducing Adobe ID blog post.
    Updated Terms of Use - Along with several other changes in our processes in the past few months, we also revamped our Terms of Use and the signature process by requesting every admin user to sign a TOU. We have completed the rollout for partners, and we might be pushing an updated partner Terms of Use version within the following weeks. For more details and questions about this change, read the New Terms of Use for Business Catalyst blog post.
    Features and enhancements
    Site templates
    To support the increasing number of partners building, sharing or reusing  templates to create  new sites, we're extending our site templates support from our partner portal with a new template type and improved  management support. The update is going to enable partners to mark sites as templates and   choose between making them available in Online Business Builder and keeping them private in their partner portal. A template site will not expire and has the same limits as any other trial site.
    Based on your partner level, you can create private or public templates using the Site Details screen or the Tools>My Site Template section from your Partner Portal. Standard partners can only create private templates, while Free Partners can only view site templates that have been transferred to their accounts by other partners.
    The number of templates a partner will have will be limited and will vary based on partner level: free partners can store up to 5 templates in their partner portal, standard partners have up to 100 site templates while Premium Partners might have up to 200 templates. Paid sites marked as templates are not counted against these limits.
    Business Catalyst Partner fixes
    While we are really focused on making the Business Catalyst integration into Creative Cloud a smashing success, we are slowly resuming our efforts to deliver fixes that have been requested by our partners. This release includes the following partner fixes:
    Improved product custom fields - we have increased the maximum number of characters for product custom fields to 1024 (previous limit was 256); this gives partners and customers additional space to use when working with products
    Improved Secure Zone subscribers list - we have added the customer email address in the Secure Zone Subscribers list to enable partners better filter and manage customers
    Better experience when exporting data - to prevent customer confusion when exporting data from Mac computers, we have removed the export to excel option and exporting in CSV format by default.
    Social plugins integration updates
    Starting with our May release, we are updating the social plugins support to require users to get the plugin code from the third party provider and saving into his Business Catalyst website. The module tags and configuration will remain unchanged, but will render an empty tag until the partner or site owner will  update the module template to include the corresponding module code snippet from the third party platform provider.
    For more information about how you can enable the Social Plugins on a Business Catalyst websites, read the Social Media: Integrating Facebook and Twitter knowledge base article.
    Other changes
    Updated weekly emails - Starting with our May release, the information in the site weekly emails has been filtered based on the site's plan. For example, webBasics site reports will no longer include the sales report.
    Localization - we improved and increased the coverage of the admin interface translations into German, French and Japanese
    Site Settings -> Ignored IP addresses has been relocated under Reports -> Visitors -> More.
    BC-Dreamweaver integration performance improvements
    Development Dashboard has been removed, as it didn't provide a clear useful, ongoing benefit. The information present in the development dashboard has been integrated into our new Help & Support section.
    Payment gateway settings - for more privacy and data protection, we have updated the Payment Gateway configuration screens to obfuscate the sensitive login information. Fields that have been obfuscated are now requiring confirmation.
    Report abuse badge on trial sites - for compliance reasons, a "Report Abuse" link has been added to the front-end of all trial sites of free partners that don't have any paid sites. When they click the Report Abuse link, site visitors are redirected to a form submission page on businesscatalyst.com site.
    Issues fixed by May release
    Issues 3051303, 3168786 - Workflow notifications - Fixed a problem preventing workflow notifications emails from being sent.(see get satisfaction forum discussion)
    Issue 3164074 - Fixed a bug causing the lightbox gallery created from Muse to be displayed behind page elements
    Issue 3162810 - Fixed a bug in rendering engine to prevent  content placed between body and head tags being incorrectly moved inside the body tag
    Issue 3166610 - Fixed a broken link to Partner Portal in Internet Explorer
    Issue 3175003 - Fixed an issue that caused an incorrect price display for the Year One-Off Setup Fee when upgrading a site from Admin using CB
    Issue 2567278 - Fixed a bug causing site replication to ignore product attributes
    Issue 2947989 - CRM passwords are now case sensitive
    Issue 2723731 - Removed CSS files from the head section of the Layouts files, when downloaded and opened in Dreamweaver, via the BC extension
    Business Catalyst new admin interface updates
    Added "Save and Add New" button in Web App Item Add & Edit screens (see get satisfaction forum discussion)
    Updated Quick Actions menus to add more actions (see get satisfaction forum discussion)
    Fixed an issue causing Recent items menu to display deleted items (see get satisfaction forum discussion)
    Fixed a display issue on File Manager making top buttons unreachable (see get satisfaction forum discussion)
    Fixed the scrollbars in Email Marketing>Campaign>Stats>Bounced Emails reports (see get satisfaction forum discussion)
    Fixed an issue causing Recent items menu to brake after selecting the current page from the Recent Items menu (see get satisfaction forum discussion)
    Replaced the Success notification displayed when selecting Users or Permissions tabs from User Roles with an Warning
    Change the action label displayed in User Roles list from View to Edit to match the list pattern from Admin Users
    Fixed a missing file JavaScript error occurring when trying to open image manager from product details-> Attributes -> options
    Moved System Emails section from Site Setting to Site Manager (see get satisfaction forum discussion)
    Updated Domain Management interfaces to close the modal window and refresh the domain list after successfully adding a domain
    Fixed an issue preventing the Hyperlink Manager to function properly (see get satisfaction forum discussion)
    Updated the confirmation message received after copying a page to match the new workflow and button names
    Fixed an issue causing the current screen or section to not be highlighted in the menu
    Updated styling on the new dashboard, user management and email accounts interfaces
    Updated  dashboard reports filters and chart display; made the chart and the filter use the site time zone
    Fixed an issue preventing users from inviting new admin users or create new email accounts on Internet Explorer 8
    Fixed an issue preventing users from deleting Email Accounts or Admin Users in Internet Explorer 8
    Fixed some issues preventing password recovery email from being sent
    Removed the alert message displayed when the user or email account limit has been reached
    Added localization for the simplified dashboard
    Fixed display issues for site limits, domains and user list in the simplified dashboard
    Added Custom reports for webBasics plan
    Fixed a bug generating a "500:Collection error" on the simplified dashboard when user did not had View users permission
    Added TOU checkbox in the email account setup screen
    Updated Site Preview link in the dashboard to load the default domain
    Fixed an issue in the new File Manager forcing a user to press Undo twice in order to see the change take effect if the code that was previously formatted contained any <"tag" with more than 2 lines
    Fixed an issue causing the File Manager editor toolbar to incorrectly render if page URL path is longer than certain value; starting with this release, the site URL is trimmed
    Fixed an issue causing the invite users to be displayed as [object Object] in dashboard and admin user list
    Fixed a bug in the new admin causing the interface to become unresponsive when using the browser Back button
    Fixed an issue in the new File Manager causing "Save Draft" button to publish the default page template instead of creating a draft version
    Fixed a broken invite link issue in the Email Account invite email
    Updated loading indicators in File Manager and Email Accounts screens
    What's next
    The first item on the what's next list might not be news for many of you, but it's definitely one of the most important milestones this year. The Creative Cloud launch is just around the corner, and Business Catalyst is playing an important role in that, as the publishing platform for Adobe® Muse and Dreamweaver. This launch will capture all our attention within the next weeks as we want it to be our best ever. 
    We'll start our next development cycle on May 15th, while the next Business Catalyst release is going to be pushed live in mid June. That being said, the following items are already on our launch plan for the next release and a few more will join the list. Please expect an update on our 2012 plans around mid May.
    HTTP throttling – all page load and API calls to BC will be protected against attacks, this might trigger problems for API heavy sites. We are looking into enabling this update along with our June release, and will help make sure that a reasonable number of requests will be accepted from the same computer per minute.
    Automatic site deletion - Starting with the June release, we are going to start automatically delete expired trial sites and canceled sites. Customers will be notified twice before we are going to proceed with deleting the sites.
    Thank you,
    Cristinel Anastasoaie
    Adobe Business Catalyst Product Manager

    In reference to this change in the Custom Reports... Better experience when exporting data - to prevent customer confusion when exporting data from Mac computers, we have removed the export to excel option and exporting in CSV format by default.
    What is the customer confusion we are trying to stop here? I've got even more confused customers at the moment because all of a sudden they can't find the export to excel option but know it exists if they log in on a PC?
    Mark

  • [BUG?] Application Control Policies

    I have had the problem that I first want to locked down everything and than open security step by step.
    But this was not the best idea.
    The problem within the Application Control is the "Search & Find" option or the Filter.
    1. The Window is damn smal and it's not possible to resize.
    2. There are soooooooooooo many settings and options to set and there is no way to export or import. That would be damn cool to set the option within Excel or something like that.
    3. The worst thing is the search or filter option.
    I will give an example:
    When you try to find iPhone than you will get no return. Or give it a try with flash. No way.
    You need to search for the exact application name.
    Can someone change this to a better filter option because this is more than worse to browse through all each setting to find something.

    Hello Jahnke,
    Thank you for the suggestions. While the product is working as designed currently, we will convey your suggestions to the Development team. If those changes are within the scope of the product, it may be implemented in one of the future firmware releases. If you have any further questions, please feel free to reach out to Cisco SBSC and one of our Engineers will be happy to work with you.
    Thanks,
    Nagaraja

  • Offline data synchronization

    We are trying to use the offline data synchronization feature of DMS using data modeling.
    Below is the only example we found on adobe site and its working.
    http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Developing/WS4ba8596dc6a25eff-56f1 c8f4126dcd963c6-8000.html
    Also we have read “occasionally connected client”  and Model driver applications documentation in lcds31 user guide.
    Is there any other example to demonstrate how to use the offline data sync?. We don’t want to generate the  Java code and use assembler class for this .
    In our example we are implementing the SearchCustomerList Funcationality. Based of search criteria a list of customers is displayed to the user.
    Beloew are the configuration settings
                            var cs:ChannelSet = new ChannelSet();
                            var customChannel:Channel = new RTMPChannel("my-rtmp",
                                        "rtmp://wpuag85393:2038");
                            cs.addChannel(customChannel);
                            this.serviceControl.channelSet=cs;
                            this.serviceControl.autoCommit = false;
                            this.serviceControl.autoConnect = false;
                            this.serviceControl.autoSaveCache = true;
                            this.serviceControl.offlineAdapter = new
                                        com.deere.itarch.adapter.MaintainCustomerBeanOfflineAdapter();
                            this.serviceControl.fallBackToLocalFill=true;
                            this.serviceControl.encryptLocalCache = true;
                            this.serviceControl.cacheID = "localCache";
    CASE I:
    Below is our understanding of offline data sync. for our implementation.
    ·          LCDS server is started and application is connected to the server.
    ·          User enters search criteria and clicks the Search Button.
    ·          Data is fetched and displayed on the screen.
    As autoSaveCache is set to true it should automatically save result in local cache
    ·          Shut down the LCDS server.
    ·          Close the earlier Search Window.
    ·          Run the application and open the customer search page.
    ·          Enter the same search criteria and click search.
    ·          Result : Nothing is displayed on screen. ( No data fetched from local cache)
    Many times we are getting error cannot connect to server ( when server is running 50% of times)
    We also tried setting reconnect strategy to instance. ( but this is also not working)
    Also can you please provide end-to-end sample for data synchronization.

    Good to see you got a little further along with your application. I'm not sure why setting autoconnect to true helped.
    Regarding your search, I'm not sure how you implemented that but the easiest way to do it with model-driven development is by using a criteria filter. It will result in a new query in your offline adapter. You just add a filter element to an entity in your model and in that filter you specify your like expression. I added one to the doc sample app as an example. When you generate code for the offline adapter, you'll be able to see the proper structure for the like clause too. I'm including my fml and offline adapter source below.I've also included the MXML so you can see how I called the new filter method from the client. After I saved to the local cache, and I went offline, I successfully performed the search in the client app. There were no issues with it.
    Here's my fml. The new filter is in bold text. I should have chose a better filter name, since it will generate a method called byProductName, which is very close to the existing getByProductName. But you'll get the idea. Once you add the filter, just remember to redeploy your model and regenerate your code.
    Regarding your question about associations, I'll look into that, but I think you would generate offline adapters for each entity involved in the association and your relationships should behave correctly offline.
    <model xmlns="http://ns.adobe.com/Fiber/1.0">
        <annotation name="DMS">
            <item name="datasource">java:/comp/env/jdbc/ordersDB</item>
            <item name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</item>
        </annotation>
        <entity name="Product" persistent="true">
            <annotation name="ServerProperties" ServerType="LCDS"/>
            <annotation name="DMS" Table="PRODUCT"/>
            <annotation name="VisualModeler" width="114" height="88" x="66" y="79"/>
            <annotation name="ActionScriptGeneration" GenerateOfflineAdapter="true" OfflineAdapterPackage="com.adobe.offline"/>
            <id name="productid" type="integer">
                <annotation name="DMS" ColumnName="PRODUCTID"/>
            </id>
            <property name="description" type="string" length="255">
                <annotation name="DMS" ColumnName="DESCRIPTION"/>
            </property>
            <property name="price" type="float">
                <annotation name="DMS" ColumnName="PRICE"/>
            </property>
            <property name="productname" type="string" length="255">
                <annotation name="DMS" ColumnName="PRODUCTNAME"/>
            </property>
            <filter name="byProductName" criteria="productname like"/>
        </entity>
    </model>
    Here's the new query for byProductName in my offline adapter, which contains a valid like clause. That section of the adapter is in bold text.
    * This is an auto-generated offline adapter for the Product entity.
    package com.adobe.offline
    import mx.core.mx_internal;
    import mx.data.SQLiteOfflineAdapter;
    import mx.utils.StringUtil;
    use namespace mx_internal;
    public class ProductOfflineAdapter extends SQLiteOfflineAdapter
         * Return an appropriate SQL WHERE clause for a given set of fill parameters.
         * @param originalArgs fill parameters
         * @return String representing the WHERE clause for a SQLite SQL
        override protected function getQueryCriteria(originalArgs:Array):String
            var args:Array = originalArgs.concat();
            var filterName:String = args.shift();
            var names:Array = new Array();
            switch (filterName)
                case "byProductName":
                    // JPQL: select Product_alias from Product Product_alias where Product_alias.productname like :productname
                    // Preview: productname like :productname                
                    names.push(getTargetColumnName(["productname"]));
                    return StringUtil.substitute("{0} like :productname", names);
                    break;
            return super.getQueryCriteria(originalArgs);
    Here's my modified MXML. I'm still calling getAll(), but after that I use the new filter to filter the results/datagrid display to just the subset that matches the string I input in the search field. This results in a new call to productService.byProductName(), which is the client-side method generated from the filter element in my model.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:OfflineAIRAPP="TestOfflineApp.*"
                           preinitialize="app_preinitializeHandler(event)"
                           creationComplete="windowedapplication1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import com.adobe.offline.ProductOfflineAdapter;
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                import mx.messaging.Channel;
                import mx.messaging.ChannelSet;
                import mx.messaging.channels.RTMPChannel;
                import mx.messaging.events.ChannelEvent;
                import mx.rpc.AsyncToken;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                public var myOfflineAdapter:ProductOfflineAdapter;
                public function channelConnectHandler(event:ChannelEvent):void
                    productService.serviceControl.autoConnect=false;
                protected function 
                    app_preinitializeHandler(event:FlexEvent):void
                    var cs:ChannelSet = new ChannelSet();
                    var customChannel:Channel = new RTMPChannel("my-rtmp",
                        "rtmp://localhost:2037");
                    cs.addChannel(customChannel);
                    productService.serviceControl.channelSet=cs;
                    customChannel.addEventListener(ChannelEvent.CONNECT,
                        channelConnectHandler);
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getAllResult.token = productService.getAll();
                protected function
                    windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                    productService.serviceControl.autoCommit = false;
                    productService.serviceControl.autoConnect = true;
                    productService.serviceControl.autoSaveCache = true;                
                    productService.serviceControl.fallBackToLocalFill=true;
                    productService.serviceControl.encryptLocalCache = true;
                    productService.serviceControl.cacheID = "myOfflineCache4";
                protected function connectBtn_clickHandler(event:MouseEvent):void
                    productService.serviceControl.connect();
                protected function disconnectBtn_clickHandler(event:MouseEvent):void
                    productService.serviceControl.disconnect();
                protected function commitBtn_clickHandler(event:MouseEvent):void
                    productService.serviceControl.commit();
                protected function saveCacheBtn_clickHandler(event:MouseEvent):void
                    productService.serviceControl.saveCache();
                protected function clearCacheBtn_clickHandler(event:MouseEvent):void
                    productService.serviceControl.clearCache();
                protected function button_clickHandler(event:MouseEvent):void
                    getAllResult.token = productService.byProductName("%"+key.text+"%");
            ]]>
        </fx:Script>
        <fx:Declarations>
            <mx:TraceTarget />       
            <s:CallResponder id="getAllResult" />
            <OfflineAIRAPP:ProductService id="productService"
                                          fault="Alert.show(event.fault.faultString + '\n' +
                                          event.fault.faultDetail)"/>
            <s:CallResponder id="byProductNameResult"/>
            </fx:Declarations>
        <mx:DataGrid editable="true" x="141" y="10" id="dataGrid"
                     creationComplete="dataGrid_creationCompleteHandler(event)"
                     dataProvider="{getAllResult.lastResult}">
            <mx:columns>
                <mx:DataGridColumn headerText="productid" dataField="productid"/>
                <mx:DataGridColumn headerText="description" dataField="description"/>
                <mx:DataGridColumn headerText="price" dataField="price"/>
                <mx:DataGridColumn headerText="productname" dataField="productname"/>
            </mx:columns>
        </mx:DataGrid>
        <s:Button x="10" y="246" label="Connect" click="connectBtn_clickHandler(event)"
                  id="connectBtn" width="84" height="30"/>
        <s:Button x="112" y="204" label="Save to Local Cache" id="saveCacheBtn"
                  click="saveCacheBtn_clickHandler(event)" height="30"/>
        <s:Button x="110" y="246" label="Commit to Server" id="commitBtn"
                  click="commitBtn_clickHandler(event)" width="135" height="30"/>
        <s:Button x="10" y="204" label="Disconnect" id="DisconnectBtn"
                  click="disconnectBtn_clickHandler(event)" height="30"/>
        <s:Label x="270" y="204" text="{'Commit Required: ' +
                 productService.serviceControl.commitRequired}"/>
        <s:Label x="270" y="246" text="{'Connected: ' +
                 productService.serviceControl.connected}"/>
        <s:TextInput x="10" y="19" id="key"/>
        <s:Button x="10" y="49" label="Search" id="button" click="button_clickHandler(event)"/>   
    </s:WindowedApplication>

  • How can I prevent pages loading twice?

    Practically every time I click on a link in an email (Outlook 2007) Firefox 3.6.6. loads the page, displays "stopped" and then reloads it, leaving two tabs with the same title.
    When I looked for a solution in this forum, searching for "firefox loads pages twice" I got 514 results filling 52 pages, but I soon discovered that though various versions of the question had been asked, there appeared to be no answer, and some replies got into technicalities that were beyond the average user of firefox.
    So I raise two points:
    1 Can we have a better filter in the forums that does not list every individual hit on a word in the query, but only on the complete phrase (putting it in quotes did not help)?
    2. Has a solution been found yet?
    == URL of affected sites ==
    http://

    What is the point of this forum if over 500 people have a problem with pages loading twice, but nobody, neither volunteers nor someone from Mozilla, can provide a solution?
    Perhaps it is time to switch to Opera.

  • Why has my recently added playlist disappeared

    why had I lost my recently added under the playlist on my iphone

    If you've deleted the playlist in error the default rules are shown here, though you're free to define the list any way that suits you.
    It's worth noting that some builds of iTunes won't sync smart playlists that include references to podcasts so Playlist is Music may be a better filter than Media Kind is not Podcast.
    tt2

  • Filtering of advanced html

    In my opinion, the text input box should better filter and strip out advanced html formatting when stuff is pasted. Here are two examples:
    http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=282858
    http://forums.ni.com/ni/board/message?board.id=MathScript&message.id=354
    LabVIEW Champion . Do more with less code and in less time .

    You have to call adg.validateNow() after assigning the
    GroupingCollection as dataProvider to the AdvancedDataGrid and
    before applying the filterFunction.
    It should be like -
    adg.dataProvider = gc;
    adg.validateNow();
    IHierarchicalCollectionView(adg.dataProvider).filterFunction
    = filterFunc;
    IHierarchicalCollectionView(adg.dataProvider).refresh();
    Note: The filter function will be applied to group rows
    also.

  • Why does Mail keep creating a Junk folder that I don't want

    I don't want Mail to filter for Junk because it always gets it wrong. I have another, better filter. I have unchecked the box. Nevertheless, Mail persists in creating a Junk folder and occasionally putting messages into it. Many of these messages are perfectly good and go unnoticed for a few days before I notice them in the new Junk folder. I keep deleting the folder, but eventually it comes back again.
    Why is it doing this, and how can I stop it??

    Thanks for your interest, but unchecking 'Enable junk mail filtering' hides the junk folder, and it will not be regenerated unless Apple Mail unilaterally decides it wants to put something in it. This problem only started for me last year, and for years before that, I did not have a Junk folder. My own spam filter (Spamsieve) works perfectly well.
    As I have unchecked 'Enable junk mail filtering', the two options you mention do not exist: they are greyed out.

  • P55A-GD65 Can not see Sata III drive

    I can not get the bios to see my 250gig sata III. I have it connected to sata#7 white connector.
    I tried to first see it, no go. I am trying to fresh install w7 hp upgrade 64bit to my new sata III drive. I can not find the drive. I do not know if it is bad or what?
    I set Integrated peripherals- sata 6g/s controller mode to ahci, and in on-chip ata devices raid mode set it to ahci. I tried to install w7 from disc. It just Says I have made a hardware change. Try to do a repair start or start as normal. Then said my boot sector was messed up. I pressed  reset and got into bios and set it all back to ide mode.
    It would not start normal. But from page it says try w7 disc etc. I told it to start windows normally it did, I have rebooted So I guess it fixed the boot sector..
    I am not sure what to do. I can not find the drive, and no place in my bios can I find the sata 7-8 connectors. they are listed as 1-6 and 9.. everything skips 7-8. I am in w7 now. I could do the reg tweak. I want to fresh install w7 upgrade on my new sata III drive. then nuke this sata II and make it a storage drive..
    Maybe I need to press a key with w7 disc in  during restart. I can not figure out how to make Let me reinstall w7. I did press F6 but I did not know what to do. Upgrading from xp was pretty easy. This sata III and  mobo and w7 is a head ake. It is no simple instructions no place to make this stuff work right. Ha ha the manual is no help either.
    I do not know if maybe the drive is bad or not. I never had to do this stuff in bios just to install a drive, and then controllers 7-8 show no place. I do not know what to do..

    Follow up.
    My cam batteries are acting up. Sorry not better photo'. The second photo. I changed out my speakers set up etc, and its photo was with our cam corder, it has no flash.. The top 5.25 bay filter is a test. I need better materials to make a better 1, but it works well, not so pretty tho. If I relax the pantyhose, It looks a lot better, is black. You can not see through it, but less air flow...
    The blower box mod I made from a gutted opt drive, uses the rest of the 5.25 bay cage as the lower sides of the box. The top side, the actual gutted opt drive, I used my zig saw, cut along the sides from the top and back end. So it was free to bend down. You can not see from the photo, but it is down just above the top of the mobo tray, and extends out past the back side of the 5.25 cage. With both downward blowing air and is more compressed or moves faster because the top is bent down etc. I cut off the access on the side so not to go past the 5.25 cage. Made a face plate to mount the fan [can crank 103 cfm] to the other end of the gutted opti. It is easy in out, uses my normal case mounting gear, and is flush with the front of the case. The filter and or front cover are separate. I need to make a better filter frame. But it works. I like it for now.. My twin p160 case has the same set up, but using a 80mm face plate and fan, and being a normal 5.25 opti drive as it base, they can go case to case, most all cases have a 5.25 cage, so. I could use this on the lian li case below and just mount a normal fan filter right to the face plate..>>
    Build #2, my buds rig, was a snap to build. Not 1 fault in the entire build from- view reliability history. The large case was nice to work in.. Both systems running great and with AHCI support.
    Ha ha I got them running perfect in spite of ?
    MSI P55A-GD65 v1.1 bios 1.3. I5-750. W7 64 bit.
    Crucial 4GB kit CT2KIT25664BA1339 9-9-9-24 T1 1.5v
    Corsair CAFA50. ASUS ML248H 24". Corsair TX 650w.
    LIAN LI PC-A70F Black +120mm Intake Mod. EVGA 9800GT.
    Samsung DVDRW IDE. LOGITECH X-530 BLK5.1. AC MX2.
    WD2500AAKX Sata7C: WD3200AAJS Sata1E: Fios15\2mbps.
    Good to go..>
    See ya.

  • ADF: Autocommitting after PVO

    Hello there!
    Here's my case:
    I have two .jspx pages, let's say A and B.
    Page B has UncommittedDataWarning set to ON.
    Page A contains a Programmatic VO in order the user to better filter data of the table displayed.
    When I change a LOV of the Programmatic VO - table data remain intact - and go to page B, I get the classic message "Are you sure you want to navigate from this page? the page contains uncommitted data. Press Ok to continue,or Cancel to stay on current page.".
    How can I skip that since no change happens in the data?
    I would like to have a functionality like autocommit before moving to Page B.
    I hope my request is clear...
    Edited by: apostolosk on 12 Σεπ 2011 6:19 πμ

    OK I misunderstood! My apologies! Frank is right about that. Thank you John for the clarification.
    The thing is that the pages use the same template and when setting immediate=true in the menu command item, I lose the functionality of uncommittedDataWarning.
    In other words, in some pages I need the warning of uncommitted data and in other cases (like in a page with Programmatic VO for report generation) I dont. For those pages I need something like autoCommit...

Maybe you are looking for

  • Want to connect my old Laserwriter Plus to my new iMac

    My old LW+ has been connected to my equally old Quadra 700 and Performa 6116 via the old appletalk protocol. Since i rarely play with those anymore, I wanted to hook up the printer (which still prints beautifully) to the new iMac. Trouble is, I have

  • BusinessMessage Report State coming as "WaitFA" for EDIFACT

    Hi, I am facing an issue on B2B 10g(10.1.2.3.0). Description: 1)I have configured a partner (outbound) and i have kept the fileds "*Functional acknowledgement required*" = false "*Is acknowledgement handled by Integration B2B*" = false Still i am get

  • Reading Acrobat forms on iPad

    We use a fillable form created in Acrobat and readable by Reader for billing issues. On the iPad, the forms are blank when returned. Is there a way to have the data show up?

  • Error with db2start

    Hi, When try to start my db2 via db2start, it gives out the following error. DB2<SID>-0 : The service has returned a service-specific error code. 06/21/2010 09:18:43     0   0   SQL1042C  An unexpected system error occurred. SQL1032N  No start databa

  • FAQ Pages - Best Way to set up with Muse

    I need to design an FAQ page.  What is the best way to format it?  What are my options? Kevin