Results 1 to 6 of 6

Thread: Putting saved searches in a drop-down

  1. #1
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default Putting saved searches in a drop-down

    I've been trying to devise a way to put the list of saved searches into a dropdown. I've figured out how to use <dax:search> to iterate over them and <dax:searchname/> to get their names, but what I can't figure out is how to get the links. When I try to pass </dax:searchlink> or <dax:searchlink><dax:searchlink/> to a bit of Javascript, I get errors. (I was figuring on building an options list for the dropdown.)

    Can this be done? If so, how? Thanks.

  2. #2
    Join Date
    Feb 2009
    Posts
    1,549

    Default Re: Putting saved searches in a drop-down

    Probably not the most straightforward way, but it works. Place this code snippet where you want a dropdown:

    [code]<!-- hidden div with generated search links -->
    <div id="hidden_links" style="display: none">
    <dax:search>

  3. #3
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default Re: Putting saved searches in a drop-down

    Thanks! This worked great! Now I don't have to worry that a large number of searches will crowd the template.

  4. #4
    Join Date
    Dec 1969
    Location
    Nottingham, England
    Posts
    263

    Default Re: Putting saved searches in a drop-down

    Hi Andei,

    [quote=Firetongue]Probably not the most straightforward way, but it works. Place this code snippet where you want a dropdown:

    [code]<!-- hidden div with generated search links -->
    <div id="hidden_links" style="display: none">
    <dax:search>

  5. #5
    Join Date
    Feb 2004
    Location
    Posts
    157

    Default Re: Putting saved searches in a drop-down

    [quote=BLOWERS]My only problem is that I don

  6. #6
    Join Date
    Dec 1969
    Location
    Nottingham, England
    Posts
    263

    Default Re: Putting saved searches in a drop-down

    Fantastic, Balok - works a treat! Thanks very much for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •