The Spotfire Community is moving to TIBCOmmunity and this forum location has closed. During the transition, you can still search the old forums but posting has been disabled. We encourage you to pick up the discussion at the new Spotfire community on TIBCOmmunity.
Filters' error in Script - TIBCO Spotfire Community

Filters' error in Script

Last post Wed, Nov 14 2012 10:36 PM by lyj. 22 replies.
Page 1 of 2 (23 items) 1 2 Next >
Sort Posts: Previous Next
  • Thu, Aug 18 2011 3:46 AM

    • Anupam
    • Top 150 Contributor
    • Joined on Fri, Aug 12 2011
    • Posts 13

    Filters' error in Script

    Dear All,

    Our requirement is to clear(uncheck) all the filters of the page. For a button I wrote the below script in Script control, but it's giving the error as " 'NoneType' object has no attribute 'Values' ". To my understanding this is happening because it's not able to read FilterA. I'm not able to solve this error. Request someone to please help rectify this error.

    from Spotfire.Dxp.Application import Filters as filters

    CurPanel = Document.ActivePageReference.FilterPanel
    FilterA = CurPanel.TableGroups[0].GetFilter("LocationsList")
    CheckBoxes = FilterA.FilterReference.As[filters.CheckBoxFilter]()

    for CheckBoxVal in CheckBoxes.Values:
     CheckBoxes.Uncheck(CheckBoxVal)

    Thank you

    Regards,

    Anupam

    Regards,
    Anupam
  • Mon, Aug 22 2011 1:00 PM In reply to

    • nitiz
    • Top 75 Contributor
    • Joined on Tue, Jun 14 2011
    • Posts 27

    Re: Filters' error in Script

    There is already a function available for this 'Reset All Filters'. You should see this in your 'Action Control' panel under 'Available Functions > Functions'

     

    Regards,

    Nitiz

  • Tue, Aug 23 2011 3:26 AM In reply to

    • Anupam
    • Top 150 Contributor
    • Joined on Fri, Aug 12 2011
    • Posts 13

    Re: Filters' error in Script

    Hi Nitiz,

    This function selects all the checkboxes, while our requirement is to uncheck all of them.

     

    Regards,

    Anupam

    Regards,
    Anupam
  • Tue, Aug 23 2011 8:13 AM In reply to

    • nitiz
    • Top 75 Contributor
    • Joined on Tue, Jun 14 2011
    • Posts 27

    Re: Filters' error in Script

    Anupam, If you uncheck all of them then you won't get anything in the result. Why you want to do that? Am I missing something here?

    Regards,

    Nitiz 

     

     

  • Tue, Aug 23 2011 8:24 AM In reply to

    • nitiz
    • Top 75 Contributor
    • Joined on Tue, Jun 14 2011
    • Posts 27

    Re: Filters' error in Script

    I had a look at the your script and the APIs. It look correct to me. Then I tested it and found that it did work.

    from Spotfire.Dxp.Application import Filters as filters

    CurPanel = Document.ActivePageReference.FilterPanel
    FilterA = CurPanel.TableGroups[0].GetFilter("component")
    CheckBoxes = FilterA.FilterReference.As[filters.CheckBoxFilter]()

    for CheckBoxVal in CheckBoxes.Values:
     CheckBoxes.Uncheck(CheckBoxVal)

     

    I think the reason you are getting the error is because one of the values is NULL and it does not handle it gracefully.

    -Nitiz

     

  • Wed, Aug 24 2011 2:25 AM In reply to

    • Anupam
    • Top 150 Contributor
    • Joined on Fri, Aug 12 2011
    • Posts 13

    Re: Filters' error in Script

    Thanks Nitiz,

    That feature is a client requirement, so I have to implement it. :)
    This code I tried again and is working fine when I'm using a single data table. I believe I'm not able to use it properly when I'm having filters from multiple data tables in the filter panel.

    Regards,
    Anupam

    Regards,
    Anupam
  • Wed, Aug 24 2011 3:01 AM In reply to

    • Anupam
    • Top 150 Contributor
    • Joined on Fri, Aug 12 2011
    • Posts 13

    Re: Filters' error in Script

    Hi Nitiz,

    I got the exact reason of error. The reason was the that of filter type. I was using heirarchy to filter and I didn't know that Spotfire treats Hierarchy as different from Checkbox filter.

    Below is the script which ran successfully:

    from Spotfire.Dxp.Application import Filters as filters

    CurPanel = Document.ActivePageReference.FilterPanel
    FilterA = CurPanel.TableGroups[0].GetFilter("filter1")
    CheckBoxes = FilterA.FilterReference.As[filters.CheckBoxHierarchyFilter]()
    CheckBoxes.UncheckAllNodes()

    Thank you Nitiz for your kind help.

    Regards,
    Anupam

    Regards,
    Anupam
  • Tue, Sep 6 2011 8:57 PM In reply to

    Re: Filters' error in Script

     If you want the basical meet that in sound clarity and impeccable sound reproduction, you should certainly try out the Beats By Dre Pro.   Immerse yourself in high-quality sound with these Beats By Dre Pro  that feature input/output cable ports for simple signal transfer to other Beats By Dre. These Beats By Dre Tour  come with "The World's First Tangle-Free Cable". We would highly recommend buying the this
    Dr Dre Headphones
    if you are looking for an entry level high end earbud. The  Diddybeats  are on the large size for earphones.This Monster Beats  brings you headphones with fasionable stytle and excellent performance. Lady Gaga Headphones are holistically designed to deliver the soundtrack of your life with clarity and power, as well as satisfy your passion for fashion. Immerse yourself in pitch-perfect highs, precise mids, and club caliber bass. It is the good  Beats By Dr Dre .If  you enjoy hip-hop music, if you like justin bieber , then just have in your hand. Please enjoy your  lovely song with this excellent earphones. Advanced proprietary titanium coated driver technology ensures Beats By Dre Solo HD preserve every bit of the lush bass, vital details and high energy your favorite artists created for their fans. This
    Dr Dre Beats
    's cable also features Monster ControlTalk for iPod playback control and iPhone/music phone hands-free calling. Beats By Dre Studio is America's recent most fervent headphones.  This Monster Headphones, with built-in integrated amplifier system, integrated drop dry system.

  • Tue, Sep 6 2011 8:58 PM In reply to

    Re: Filters' error in Script

     If you want the basical meet that in sound clarity and impeccable sound reproduction, you should certainly try out the Beats By Dre Pro.   Immerse yourself in high-quality sound with these Beats By Dre Pro  that feature input/output cable ports for simple signal transfer to other Beats By Dre. These Beats By Dre Tour  come with "The World's First Tangle-Free Cable". We would highly recommend buying the this
    Dr Dre Headphones
    if you are looking for an entry level high end earbud. The  Diddybeats  are on the large size for earphones.This Monster Beats  brings you headphones with fasionable stytle and excellent performance. Lady Gaga Headphones are holistically designed to deliver the soundtrack of your life with clarity and power, as well as satisfy your passion for fashion. Immerse yourself in pitch-perfect highs, precise mids, and club caliber bass. It is the good  Beats By Dr Dre .If  you enjoy hip-hop music, if you like justin bieber , then just have in your hand. Please enjoy your  lovely song with this excellent earphones. Advanced proprietary titanium coated driver technology ensures Beats By Dre Solo HD preserve every bit of the lush bass, vital details and high energy your favorite artists created for their fans. This
    Dr Dre Beats
    's cable also features Monster ControlTalk for iPod playback control and iPhone/music phone hands-free calling. Beats By Dre Studio is America's recent most fervent headphones.  This Monster Headphones, with built-in integrated amplifier system, integrated drop dry system.

  • Tue, Sep 6 2011 8:59 PM In reply to

    Re: Filters' error in Script

     Great MBT Shoes are for cheap now.The MBT Shoes was released in 1996. Wearing MBT footwear is like walking barefoot on springy moss or on a sandy beach. MBT Sandals make use of the TPU and glass fiber shank adds firmness to sole construction. MBT Kisumu are designed to relieve stress on your joints, your back, and yes, even your feet, and also to improve your gait.Now more and more people like to wear this
    MBT Trainers
    ,they could also contribute to body movement. And here we want to introduce the  MBT Womens Shoes to you,this one is paticular designed to the women.Though this MBT Shoes Sale are not in beauty,but they can do many benefit to the body!  Or you can have a look at the other styles. MBT Tunisha  with an adjustable ankle buckle give you a secure fit in this summer. Come on to enjoy the  Discount MBT Shoes  you like now. We promise that we only have genuine mbt shoes in our stock. MBT Fanaka as a casual lace-up shoe, features a rich leather or nubuck leather upper, perfect for wearing to work or if you are just going out-and-about. Mens MBT Shoes for sale is a water-resistant shoe and dressy enough for work!MBT Shoes UK
    will not only change the way you use your muscles, but will improve the use of your joints and spine. And we believe that living better, healthier and more actively isn't just about exercise and eating right. We have many different kinds of MBT Shoes Clearance  on sale. Welcome to order our MBT Shoes. Do not hesitate longer! 100% quality and price guarantee.We not only provide you with good MBT Trainers, and provide good after-sales service. Come on now.

  • Tue, Sep 6 2011 9:00 PM In reply to

    Re: Filters' error in Script

     Great MBT Shoes are for cheap now.The MBT Shoes was released in 1996. Wearing MBT footwear is like walking barefoot on springy moss or on a sandy beach. MBT Sandals make use of the TPU and glass fiber shank adds firmness to sole construction. MBT Kisumu are designed to relieve stress on your joints, your back, and yes, even your feet, and also to improve your gait.Now more and more people like to wear this
    MBT Trainers
    ,they could also contribute to body movement. And here we want to introduce the  MBT Womens Shoes to you,this one is paticular designed to the women.Though this MBT Shoes Sale are not in beauty,but they can do many benefit to the body!  Or you can have a look at the other styles. MBT Tunisha  with an adjustable ankle buckle give you a secure fit in this summer. Come on to enjoy the  Discount MBT Shoes  you like now. We promise that we only have genuine mbt shoes in our stock. MBT Fanaka as a casual lace-up shoe, features a rich leather or nubuck leather upper, perfect for wearing to work or if you are just going out-and-about. Mens MBT Shoes for sale is a water-resistant shoe and dressy enough for work!MBT Shoes UK
    will not only change the way you use your muscles, but will improve the use of your joints and spine. And we believe that living better, healthier and more actively isn't just about exercise and eating right. We have many different kinds of MBT Shoes Clearance  on sale. Welcome to order our MBT Shoes. Do not hesitate longer! 100% quality and price guarantee.We not only provide you with good MBT Trainers, and provide good after-sales service. Come on now.

  • Tue, Sep 6 2011 9:01 PM In reply to

    Re: Filters' error in Script

     Welcome to buy supra shoes online. There are variety of Supra Shoes on sale on our web. Supra Shoes US not only possess its unique personality, but also has the remarkable in appearance. Welcome to Supra Footwear online store, We serve for you enthusiastically! Supra Shoes UK is a fusion of skate and street inspired footwear that was founded in 2006 by Angel Cabada. Supra Trainers have developed an iconic following is the shortest space of time which is in large part due to the amazing profiles of their Hi Top Sneakers, most notably the Supra Skytops, Supra Vaider, Supra TK Society and more recently the Supra Skytop 2's. Supra Shoes For Sale popularity has been further bolstered by the backing of some great skates, guys suck as Supra TK, Terry Kennedy (TK Society), Erik Ellington, Antwian Dixon and Chad Muska to name a few. Cheap Supras Shoes Online Store are a big online store to sale Justin Bieber Shoes at wholesale price, various color and vogue design, all the Supra Shoes Canada with high quality and reasonable price, really popular with people, 62% Discount for you to enjoy, free shipping and fast home delivery(5-7 days to your door), hurry up! Supra TK Society Shoes and Supra Shoes For Kids also hot sale online.Our Supra Shoes attaches great importance to the performance, the specialized shoe shockproof system can better protect your feet. the perfect combination of fashion, beautiful, tide make Supra Skate Shoes become not only a Canada . industry but also a trend of the pop culture, because of superior quality, Supra TK Society is popular with people in the world.  Supra Skytop Shoes becomes more trendy all over the world. You wear it, you will be more fashionable.

  • Tue, Sep 6 2011 9:07 PM In reply to

    Re: Filters' error in Script

     Welcome to buy supra shoes online. There are variety of Supra Shoes on sale on our web. Supra Shoes US not only possess its unique personality, but also has the remarkable in appearance. Welcome to Supra Footwear online store, We serve for you enthusiastically! Supra Shoes UK is a fusion of skate and street inspired footwear that was founded in 2006 by Angel Cabada. Supra Trainers have developed an iconic following is the shortest space of time which is in large part due to the amazing profiles of their Hi Top Sneakers, most notably the Supra Skytops, Supra Vaider, Supra TK Society and more recently the Supra Skytop 2's. Supra Shoes For Sale popularity has been further bolstered by the backing of some great skates, guys suck as Supra TK, Terry Kennedy (TK Society), Erik Ellington, Antwian Dixon and Chad Muska to name a few. Cheap Supras Shoes Online Store are a big online store to sale Justin Bieber Shoes at wholesale price, various color and vogue design, all the Supra Shoes Canada with high quality and reasonable price, really popular with people, 62% Discount for you to enjoy, free shipping and fast home delivery(5-7 days to your door), hurry up! Supra TK Society Shoes and Supra Shoes For Kids also hot sale online.Our Supra Shoes attaches great importance to the performance, the specialized shoe shockproof system can better protect your feet. the perfect combination of fashion, beautiful, tide make Supra Skate Shoes become not only a Canada . industry but also a trend of the pop culture, because of superior quality, Supra TK Society is popular with people in the world.  Supra Skytop Shoes becomes more trendy all over the world. You wear it, you will be more fashionable.

  • Thu, Sep 8 2011 12:00 AM In reply to

    Re: Filters' error in Script

     Artists and producers spend countless hours fine-tuning and mixing music to get it exactly how they want their fans to hear it. But the vast majority of headphones can't accurately reproduce the intricacies produced in the studio. Simply put, Beats By Dre Studio can. Engineered and artfully designed with the pro in mind, Beats By Dre Pro were built from the ground up with the cooperation of audio professionals.
    Beats By Dre UK
     deliver pro-caliber even response and passive sound isolation, revealing every note with distortion-free clarity. Committed to giving music enthusiasts the best in sonic performance, Monster Beats gives you a high definition sound experience. This Beats By Dre Solo HD is easy to carry.At the press conference way back in Lady Gaga Heartbeats, stated the reason for the design of a triangle was to exemplify the three things she would die without: love, fashion, and writing. So the earbud is shaped as a triangle and the design inset inside that triangle is a bunch of smaller triangles. Whether you work out hard at the gym, play to win in team sports, or enjoy moving to music, Monster Power Beats By Dre is the breakthrough in-ear headphone youve been waiting for. Engineered to reproduce all the emotion stirring, crowd moving power music lovers crave,
    Beats By Dre
     perform at the highest level and look stunning at the same time. Free Shipping on all Dr Dre Headphones, buy now.Welcome to our discount Dr Dre Headphones store online, here you can enjoy free shipping, fast delivery and best price. There are other excellent quality Best Beats By Dr Dre Headphones, such as Monster Beats Studio, Beats By Dr.Dre Solo and so on. Quality is guaranteed and we will send goods tracking service.

  • Thu, Sep 8 2011 12:01 AM In reply to

    Re: Filters' error in Script

     Welcome to buy Louis Vuitton Bags online. Most ladies customers come from worldwide to buy Louis Vuitton Handbags in our online replica
    Louis Vuitton Outlet
     store. Among our wide Louis Vuitton outlet product line that also includes Louis Vuitton Top Handle, Louis Vuitton Tote Bags are the most competitive collection. You will never find another online shop that provides more fashion handbags of better quality at the same price range than us.  Decide on Gucci Bags to direct your life model. Replica
    Gucci Outlet
     will make you yourger and matrue, turn you into fashion and a little adorable. Just trust us, there has to be one vogue to match for yourself. Gucci outlet store, jacquard fabric highlighted with leather trim and silver chiseled Gucci Tote Bags or light gold hardware and therefore the personal Gucci logo plate makes having just Gucci Tote Bags 2011 very desired. Buy Gucci Shoulder Bags online now. We really hope we can do business with you in the near future. Have a great   time! Welcome to our replica
    Chanel Outlet
    . All the Chanel Bags, with high quality and low price.  Replica Chanel Outlet Store selling chanel handbags online Chanel Handbags become more and more popular these days, not only because of its nice design, beautiful looking, but also its well structure and real materails. Chanel Shoulder Bags and Chanel Tote Bags are hot sale online.

Page 1 of 2 (23 items) 1 2 Next >
┬ęCopyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center