In a filter, I need don't want to use match but contains

So I will keep this simple
function ffBuck(ds, row, index){
return (row.Watershed.match("Buck")) ? row : null;
That works great when Watershed = "Buck but what if Watershed ="Buck Salt and Red Creeks"
I don't know too much javascript to do a string search and return. Any thoughts?
Thanks for the help in advance,
Jon

Gramps,
Thanks for the link. It isnt do what I want it to do but it is a helpful link for the future. I think in fact that the match javascript method is doing what I want it to do.
Lets say that row.Watershed = "Buck and White Creek". That row is an indicator of what watershed a specific document is for. The are filtering through a large dataset of docs in an xml file. In that example the document is about two watersheds, Buck and White.
I have a bunch of checkboxs with filters applied. If they click on the Buck Creek checkbox to see those documents for Buck Creek I fire the filter:
function ffBuck(ds, row, index){
return (row.Watershed.match("Buck")) ? row : null;
My question was concerning how the match worked. I know that it would work if row.Watershed="Buck" but didnt know if the match wanted an exact match of "Buck" or whether it was finding any instance of "Buck" in the row.Watershed. If it wants a match, then I assume this means I have to write a regEx that tells it to look for any instance of Buck.
Does that make sense? Thanks for your help.

Similar Messages

  • Don't WANT to use Excel, but Numbers doesn't cut it...

    Hi All;
    I have been an avid Mac user for 10 years, but I am still having issues when dealing with Numbers and find that what I need to accomplish I can only do with Excel. While it is a great program in and of itself, opening Excel files with Numbers on my iPad/ iPhone is not ideal, and I would love to take advantage of Versions and Auto Save that are now available with Lion as well as the mobile applications. This is not possible with Excel.
    Main issue at this point is as follows:
    I have a template file that I use for building files that I use multiple times [20-30 times] a day, I also have a file with commonly referred to information. In Excel I can keep my reference file up to date, then use the VLOOKUP formula in the spreadsheet to essentiall auto-fill in the common information. I am trying to accomplish the same thing in Numbers without much luck.
    For Example, if I have already created my file, I should be able to update my reference file and have the information readily available to ALL 1000+ files I have already created and be able to access the new information [ie- addresses or contact information] from any of them. Instead, what Numbers appears to be asking me to do is add my ENTIRE reference table to EACH file and update them individually. I know that it doesn't take up that much space on the harddrive, but still, this seems a little ridiculous, and it seems like a step backwards from the system I have already created.
    I have searched all of the forums but can't seem to find the answers I need. Is there really no way to reference a sheet/table from a completely separate file in Numbers? I'd love to support Apple, and it's applications, but if they can't do what I need them to do- I just wasted $20.00.

    I'm unable to understand why users like you buy a product before testing it to chek if it fit their needs.
    There is an iWork free trial version available since jabuary 2009. It's a complete version. It's just restricted to a 30 days period.
    Is it so complicated to download it and install it before throwing some bucks ?
    The wanted feature isn't available so, yes, you wasted 20$.
    Yvan KOENIG (VALLAURIS, France)  mercredi 14 décembre 2011 19:40:25
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Search option not working after updating Firefox. How can I correct this? Don't want to use Explorer, but will have to if we can't fix this.

    An automatic update ran this morning. Noticed when I started up the computer, a message came up saying that Firefox was running, even tho' it wasn't. Update finished, and now I cannot get the search tool to work. Help!!!

    Is this the search bar on the about:home page/
    Try to reset some preferences to the default with the SearchReset extension:
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If there is a problem with searching via the default about:home page then try to reset the search engine used on the about:home page.
    Reset the <b>browser.startup.homepage_override.mstone</b> pref via the right-click context menu to the default on the <b>about:config</b> page and close and restart Firefox to restore the about:home page to its default.
    *http://kb.mozillazine.org/about:config
    #Open the <b>about:config</b> page via the location bar
    #Type in the Filter bar: mstone
    #Right-click the browser.startup.homepage_override.mstone line and select: Reset
    #Close and restart Firefox
    If this didn't help then delete the delete the chromeappsstore.sqlite file in the Firefox Profile Folder and repeat the above.
    You can also check for problems with preferences and try to rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default values.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences
    Also check that you do not have a mozilla.cfg file in the Firefox program folder.

  • How can I find my serial number for Adobe Acrobat 11. I got a new iMac and I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    I used to use CS5 and I want to use the Acrobat version on my new iMac.
    How can I find my serial number for Adobe Acrobat 11.  I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    Hi Anthony Aduhene
    Please refer : Find your serial number quickly

  • I have CS6 and I don't want it to break, but I need CC. Need installation tips (mac)...

    I have a CS6 suite and I don't want it to break, but I need CC.
    I don't have time this week for major problems especially since CS6 suite is working great.
    What's the latest news on installations such as this where CS6 suite exists, are they successful with the latest installers, versions etc. 
    Are problem installations effecting the CS suites, or are the problems isolated and only causing problems with CC?
    Do I jump in, or run away?
    thanks in advance.
    j
    Mac 10.8.5

    Hi J,
    The answer is 'YES'. You can install CS6 and CC on the same machine without causing abreak in fucntionality of any CS6 apps.
    Please refer the KB : http://helpx.adobe.com/creative-cloud/help/install-cc-and-cs6-apps.html
    Regards,
    Rave

  • I don't want to use microsoft products on my mac!

    Dearest Apple,
    What can I say, I am a massive fan of your work. I have totally bought into your brand....
    My problem is I don't want to use microsoft software on my gorgeous shiny mac, or any of my apple products for that matter. The issue is I don't appear to have any choice if I want to communicate professionally with the rest of the business world.
    I love the new mac mail in OS X Lion, but when I send an email to an outlook user it looks like Johnny age 5 composed it.
    I'm not asking for much from you IT giants, why can't you get together and agree on a code/platform/whatever it needs to make emails (which in my opinion don't appear to be the most complex of documents) backward compatable. Nearly everyone has an email signature with some text and a small graphic, what's so hard about having the end user display that correctly?
    Then there is iWork, again a lovely product to work in, you could argue not quite as powerful as excel, but it works. Albeit you can't lock documents etc when sending them to 'PC users'
    When are we likely to see a change?
    All I want is to use my mac and software specific to it without having to subscribe to the awful giant microsoft.
    Thanks
    B
    P.S dam you make some fine products ; )

    Product Feedback

  • Don't Want To Use Apple Config, Device Enroll Program

    I have been reading a lot on how to implement profiles onto devices like the iPhone, this functionality is what I am looking for, mainly with iPhone for some businesses and schools I work with. I have red that with the new technology you don't have to us Apple Configurator, and I have red about the Device Enroll Program... for my purposes I don't want to use any Apple method (nor would the situation I have even qualify for the Device Enroll Program) I really would like to deploy custom configuration profiles, with restrictions specified by my customers.
    I have been scanning the developer guides and and slowly grasping what I need to do...it sounds like I don't need to use Apple methods if I don't want CORRECT???  If I can implement custom profiles and in some cases it might just be three iPhones... I was hoping to find the proper guidance for implementing those custom profiles, thru the webpage method  or e-mail message is more suitable for my needs.
    I found the Apple play by play on how to do that, but sometimes for myself finding another perspective helps me learn... Any places anyone has found that can give that play by play on how to deliver those custom profiles  thru web page or e-mail?
    I have looked at the Over the Air Profile Delivery and Configuration Developer Pages... I'm just looking for that alternate information source to help me out. Appreciate all the help 

    Using Get Info to change all documents to open with Pages 4.3 doesn't work. The Mac OS will always default to the newest installed version & has for as long as I can remember. It will work on individual files, but that could be a lot of files to reset.
    This is what worked for me. After I installed the new iWork updates I created a folder on an external drive & named it "Applications." I then moved the new iWork apps to this folder & renamed the applications Keynote 6, Pages 5 & Numbers 3. I have icons for two versions of Pages & Numbers (I rarely use Keynote) in my Dock. Even with two versions of Pages & Numbers running, double-clicking an existing file opens in Pages 4.3 or Numbers 2.3. This should also keep the Mac App Store from nagging you to update.
    Since the last update I've used the solution Peter Breis posted (4th post in that thread) in iWork Tips 'n' Tricks with a little "tweak."
    Making Numbers '09 the default whilst keeping Pages 5
    1. Move any new iWork apps in another clearly labelled folder (I created a new folder in Applications & named it iWork 13)
    2. Menu > Apple > System Preferences > Spotlight > Privacy > drag the above folder into the list
    2) Move the new iWork folder into the trash (temporarily)
    3) Select any Numbers file in Finder > Menu > Info (cmd+i) > Open with: > Pages '09 > Change all
    4) Re the new iWork folder from the trash (right-click > Put back)
    Pages 5 should no longer appear as a default App, and you won't have to keep a copy in a separate drive or dmg.
    IMPORTANT: Make a note of where and how Pages was installed for the next App Store update and temporarily move it back there before putting it away again in the folder concealed from Spotlight.

  • How can I (automatically) import new photos of the photostream on my local disc (Mac)? Don't want to use new icloud service. Simply import.

    New Photo app on Mac.
    How can I (automatically) import new photos of the photo stream on my local disc (Mac)? Don't want to use new icloud service. Simply import.
    With iPhoto every new photo was automatically imported and saved on my local disk (with "full resolution" that's what I only need). In the new photo app I have still my photo stream and when I move a photo (drag and drop from the photo stream) to a new album it indicates a (plus). My understanding is that the photo is now copied to my local disk. But when I deleted the photo in the photo stream it was also deleted in the album !?
    If that is the case I can use the photo stream only until I reach the max of 1.000 photos, then I have to delete photos and I will have no copy left.
    How can I "physically" copy a photo of the photo stream to my local disk? I just want to "transfer" all pictures taken with Ipads, Iphones to my central storage on the Mac. Please don't propose to connect it via iTunes (cable) to the Mac.
    Any other suggestions?
    thx
    -Tom

    The amazing device cannot do it because no amazing developer has written an app for it.  There is some interest, others have asked, but i have a hunch that the market is fairly limited, and no developer has jumped at the chance just yet.
    Any sort of tethered approach means try to feed the material to the pad thru the cck.  Which means the app would have to use the allowed/existing cck pathway in a manner that does not violate the sandbox rules.  That may be the problem.

  • How do I only use the wifi internet because I don't want to use my mobile data because I don't have Internet on my price plan?

    How do I only use the wifi internet because I don't want to use my mobile data because I don't have Internet on my price plan and its costing me money?

    Well, if you are running iOS 6.0 or later.
    The option supposed to be in Settings>General>Cellular>Cellular Data---Off & Enable 3G---Off
    I think you'd better check the settings in Privacy>Location Services.
    Some items in it need Cellular data like"setting time zone" and "Find my iPhone'.

  • Don't want to use new Numbers, but 'get info' fix doesn't work

    Hi All,
    I made the mistake of installing the new Numbers a month or two ago. I don't want to use the new Numbers because I need to work on the same documents on older machines that won't work with the new Numbers. On my machines with both versions of Numbers, I want to be able to just double-click on the documents and open with the older version. The usual fix is to use get info on a document, select the app I want to use for this type of document and then hit 'change all' for that type of doc. Well that's the theory at least. I've found that this setting doesn't stick in this case. (I've never seen this not work).  It still opens with the new Numbers.
    I've tried removing Numbers, but Software Update keeps nagging that there is an update available jfor Numbers, and wants to reinstall it. They 'dumbed down' Software Update so that you can't remove updates you don't want to be bothered by. (I hate it that Apple continually removes features, then adds them back in a year or two!) So I'm stuck.
    Any one else have this happen? Any fixes?
    Thanks!

    Using Get Info to change all documents to open with Pages 4.3 doesn't work. The Mac OS will always default to the newest installed version & has for as long as I can remember. It will work on individual files, but that could be a lot of files to reset.
    This is what worked for me. After I installed the new iWork updates I created a folder on an external drive & named it "Applications." I then moved the new iWork apps to this folder & renamed the applications Keynote 6, Pages 5 & Numbers 3. I have icons for two versions of Pages & Numbers (I rarely use Keynote) in my Dock. Even with two versions of Pages & Numbers running, double-clicking an existing file opens in Pages 4.3 or Numbers 2.3. This should also keep the Mac App Store from nagging you to update.
    Since the last update I've used the solution Peter Breis posted (4th post in that thread) in iWork Tips 'n' Tricks with a little "tweak."
    Making Numbers '09 the default whilst keeping Pages 5
    1. Move any new iWork apps in another clearly labelled folder (I created a new folder in Applications & named it iWork 13)
    2. Menu > Apple > System Preferences > Spotlight > Privacy > drag the above folder into the list
    2) Move the new iWork folder into the trash (temporarily)
    3) Select any Numbers file in Finder > Menu > Info (cmd+i) > Open with: > Pages '09 > Change all
    4) Re the new iWork folder from the trash (right-click > Put back)
    Pages 5 should no longer appear as a default App, and you won't have to keep a copy in a separate drive or dmg.
    IMPORTANT: Make a note of where and how Pages was installed for the next App Store update and temporarily move it back there before putting it away again in the folder concealed from Spotlight.

  • Hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help

    hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help me.
    when i unchek the card information it was show me an error!

    Though you are being asked for card details it doesn't necessarily mean that the card will be charged for the purchase (unless you want to gift content). Have you tried entering your card's details to confirm the account ? You should then be able to remove it.
    From http://support.apple.com/kb/HT5582 :
    When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance
    Is it a new account ? If it is then unless a new account is created by following the instructions on this page (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
    then you will need to enter card details (debit cards are no longer accepted in all countries) before the account can be used to download any item from the store.

  • Is some driver needed when I want to use Matrox card to aquire image via Labview?

    Is some driver needed when I want to use Matrox card to aquire image via Labview?and  I cannot afford the expense of buying a driver made by alliancevision。 If there must be some driver installed before I acquire image, can anyone email me one? Or just give me some advices.  My email address is [email protected]
    The attachment is my VI by which I attempt to acquire image, and I don't know what is the problems in it and whether it is because of the lack of the driver.
    Attachments:
    method2.vi ‏19 KB

    You asked the same question here under a different user ID. 
    Asking for someone to email you something that you must purchase is called software piracy. Nobody on this forum will help you with that.

  • Don't want to use flash.  Want it like so...

    Hello. I am trying to add a .mov file and a .wmv file to my
    website. I don't want to use flash because I like it better when
    its done like it is on this site:
    www.wintersoldierfilm.com (go to "view trailer" for the
    example)
    Can anyone give me instructions on what I need to do in order
    to have my videos appear exactly the way they do on that site?
    Thanks in advance. I know this is probably a long one.

    "Osgood" <[email protected]> wrote in
    message
    news:edgm2n$rrd$[email protected]..
    > Martin wrote:
    >
    >>>The answer is in the code:
    >>>
    >>>Windows Media Player:
    >>>
    >>><td bgcolor="#FFFFFF" align="center"
    valign="middle"><embed
    >>>src="images/winter_soldier_trailer.wmv"
    width="320" height="255"
    >>>align="top" border="0" loop=false autoplay=true
    controller=true
    >>>pluginspage="
    http://www.apple.com/quicktime/"
    kioskmode="true"></embed>
    >>></td>
    >>>
    >>>
    >>>
    >>
    >> Surely that's an error - Quicktime cannot play
    Windows Media Video i'm
    >> sure.
    >> The pluginspage pointing to apple.com would be no
    good if the person
    >> trying to view the WMV video didn't have the
    required codecs installed?
    >
    > I don't know. Both played ok for me on a Mac. Im not
    aware that I have any
    > additional codec installed to handle one or the other. I
    just have real
    > player and windows media player.
    >
    Thinking about Windows Media Player i think the flawed code
    would not
    matter - Windows Media Player will generally (automatically)
    contact
    Microsoft to look for any codecs that are required but not
    installed.
    Martin.

  • Don't want to use Mail app any more; how do I delete all the downloaded mail?

    New Macbook Air here.  I never used the Mail app before and thought I might try it, but I seem to have accidentally downloaded like 30,000 old Gmail messages to my computer and now I just don't want to use Mail any more.  How do I delete all these messages from my computer and just get on with my life?  I don't need all this old mail taking up space.

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • It keeps having me verify my billing won't let me download apps update apps nothing I don't want to purchase anything but it insist on me putting in credit card info please help

    It keeps having me verify my billing won't let me download apps update apps nothing I don't want to purchase anything but it insist on me putting in credit card info please help

    If you want to use your current ID you will either have to provide a credit card or redeem an iTunes gift card.  Otherwise you can create a new ID without a credit card to purchase free apps by following this exactly as written: http://support.apple.com/kb/ht2534.

Maybe you are looking for

  • EEWB: Change tab tittle when creating an extension type ACTIVITY_H

    Hi CRM Gurus, I am using transaction EEWB to extend the object BUSINESS_ACTIVITY. There are two extension types: CUSTOMER_H and ACTIVITY_H. Both of them create an additional tab that contains the new fields. I have two questions about this: 1.- Which

  • Bridge CS6 Missing from Master Collection

    I installed Master Collection CS6 but noticed that Bridge CS6 was not installed. I reran the installer and checked to see if it was listed as an application available to install and it was not. I checked the website and it shows Bridge being part of

  • How to use jack connection kit?

    Im trying to get my external soundcard working. first of i start ffado-mixer. it recognize my soundcard and everything. I then type sudo jackd -d firewire in the terminal and get this output : JACK compiled with System V SHM support. loading driver .

  • Kanex ATV Pro + Apple TV + Sony Bravia KLV-S40A10

    I purchased a Kanex ATV Pro to provide VGA input from my Apple TV to my Sony Bravia KLV-S40A10 as my model does not have HDMI input. I have checked the VGA input on the TV with a laptop which works correctly however when the Kanex ATV Pro is used the

  • Validation for transient VO/table rows

    Hi, I have 2 pages: 1. First page is an entry page with an editable table like this (It's backed by a transient VO which I initialize with some blank lines.) and a submit button: Part Type (dropdown)          Part num (text box)          Quantity (te