Ssrs 2008 r2 use parameters for sorting purposes

In an ssrs 2008 r2 report, I have a report where a user wants to sort a report based upon the following parameters:
   1. lastName,
   2. firstName, 
   3. studentNumber,
   4. [School Name].
The above is the default order of how the user wants to be able to sort the report.
The following is the definition and the columns that are to appear in the report:
         studentNumber varchar(15)
 ,lastName varchar(40)
 ,firstName varchar(35)
 ,[School Name]  varchar(40)
 ,[School of Assignment] CHAR(3)
 ,grade varchar(4)
 , Description varchar(50)
 ,[Beginning Date] smalldatetime
The above columns are all contained in one tablix.
The user wants to be able to sort the report by changing the parameters that I just listed
above.
Thus can you show me code and/or point me to a url that would show me how to allow the user to sort
the report in any order based upon the 4 parameters listed above?

The interactive sort is not what the user wants. The user wants to be able to change the default sort order by using a sort parameter value.
I know that the tablix and the detail rows of a report have a sort option. I want to be able to connect, the sort parameter values with the tablix sort. I have seen on the internet where each sort parameter value can be represented with a number value.
I don't  care what is easier, I want to do what the user is requesting. Thus can you show me code on how to accomplish this goal?
Ok. I just gave you a better option
If you still want it to be based on parameters you can add one more parameter to your report called SortBy with values of your fields. Then inside sor expresson for your tablix use an expression like
=Fields(Parameters!SortOrder.Value).Value
and it will automtically sort based on field you choose from parameter
Only thing you need to make sure is that values given for SortBy parameter combo should be exactly same as your field names used in your report dataset.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Recently got a MacBook Pro.  When I use it for work purposes, I plug in a large screen and key board.  When in this mode I would like to shut off the laptop screen or even close the lid. Is that possible?

    RECENTLY GOT A mACKbOOK PRO. WHEN USING IT FOR WORK PURPOSES I PLUG IN A LARGE SCREEN AND KEYBOARD, THAT WORKS FINE.  HOWEVER WOULD LIKE TO CLOSE LID ON THE LAPTOP, OR AT LEAST SHUT DOWN THE LAPTOP SCREEN WHILE USING THE LARGE SCREEN. IS THAT POSSIBLE?

    Hi Jim,
    Craig is right on with his post. Hope he won't mind if I add the following link, as recently it has been noted by some posts here that there are some "quirks" with Clamshell Mode:
    http://support.apple.com/kb/HT3131?viewlocale=en_US

  • Can i use sql server express 2008, 2012, and 2014 for commercial purpose?

    Good day,
    I saw that the sql server express 2005 can be used for commercial purpose without buying additional license
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8df18025-fc2b-43c2-8476-532336ff09e3/sql-server-express-for-commercial-use?forum=sqlexpress
    the question is can I do the same for sql server express 2008,2012, and 2014?
    can I install and use sql server express 2008, 2012 and 2014 on an azure vm? specifically
    http://azure.microsoft.com/en-us/pricing/details/virtual-machines/
    A0 instance
    just an off topic question, is it required to pay to use sql server on virtual machines?
    why is there a different pricing here
    http://azure.microsoft.com/en-us/pricing/details/virtual-machines/#Sql

    Hello,
    Yes, you can use all versions SQL Server Express for commercial use. Please read more resources about it.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/01dbc5c3-b5fe-42d4-9eb9-91683cf8285b/can-any-commercial-application-that-uses-sql-server-express-freely-redistribute-the-sql-server?forum=sqlexpress
    https://social.technet.microsoft.com/Forums/en-US/661ebf2e-ff2f-4dae-a8ae-e2179a764c09/sql-server-2012-express-in-commercial-product?forum=sqlexpress
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Ssrs 2008 r2 using parameter values

    In an existing ssrs 2008 r2 report, I have a requirement from a user where they want to add 2 more parameters to the report. Right now there is an option where the user can choice to generate report1, report2, report3, report4, report5, report6, report7,
    report8, and/or any combination of the reports I just listed.
    This is setup by using an expression in the visibility property for each of the 8 tablixes.
    For your information, the following is an example of how to display one of the reports or not:
    =iif(InStr(join(Parameters!report.Value,","),6)>0,false,true)
    Now the user wants to be able to add the parameters of customer and inventory_item based upon if report7 and/or or report8 is selected.
    Now can you tell me the following:
    1. Would you show me the code I can use in the dataset to select report7 and/or report8?   
     2. If the above is not possible to select specific reports, then would the dataset query need to look something like: where @report is null or where @report is not null? What would you suggest?

    Hi midnight_car,
    According to your description, you have specified visibility for each tablix in a report with IIF() function. When you select 7 or 8, you want to add an additional parameter to filter displayed tablixes, right?
    In Reporting Services, since we can’t specify the visibility of a parameter as an expression, we could add a cascading parameter. When the first value is 7 or 8, then selected values from the cascading parameter can filter the displayed tablixes. Please
    refer to steps below:
    1. Sample data.
    2. Create a new dataset with the query below:
    select distinct SalesTerritoryRegion as region from dbo.DimSalesTerritory
    where SalesTerritoryRegion=
    case when 3 in (@report)or 4 in (@report)
    then SalesTerritoryRegion
    else 'NA' end
    3. Specify the parameter @region using the new dataset.
    4. Query in main dataset like below:
    select SalesTerritoryRegion as region,SalesTerritoryCountry as country,SalesTerritoryGroup as [group] from dbo.DimSalesTerritory
    where SalesTerritoryRegion= case when 3 in (@report) or 4 in (@report)
    then @region
    else
    SalesTerritoryRegion end
    4. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS 2008 R2 Report parameters have default values and report not to auto run

    Hi, I am using SSRS 2008 R2 one of my requirements for a Report is all the parameters have default value and I do not want this report to auto run when users open this report. I can create a dummy hidden parameter to break the auto run for this
    report. But I am looking for solutions other than that.
    Thanks in advance..........
    Ione

    Hi lone,
    According to your description, you have a report with parameters. Now you want you report not to run automatically with your parameters default values. Right?
    In Reporting Service, if you have parameters with default values in your report, your report will always auto run with these default values. We can say these default values are used for report running initially. So for your requirement, if you really need
    to see your default value before the report running, the best workaround is set one more parameter to break the auto run like you have done. If you just want your report not to auto run, your can achieve it by removing those default values.
    Reference:
    Report Parameters (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou (Pactera)

  • Use Version for other purposes

    Hi folks,
    My client ask us for "remove" the dimension version as they don't use it (exist only one version).
    I know this dimension is part of the planning and cannot be deleted.
    My question is: Is it a problem if I use the dimension for other purpose (as a custom dim)? For example, can i use version to create a dimension product?
    It will have performance issues for that (unhappy) decision?
    Thanks a lot,
    Wesley Rossi Yamauti

    They keep changing the data over the year,Hi Wesley,
    This to me is a key design driver for making use of the version dimension - it says they could get more value out of planning by using it the way it was designed to be used.
    Maybe you can do a POC of sorts that demonstrates the value of versions, and how it helps with process, work flow management, analysis, etc. Is there another client of yours that is making good use of planning that you might be able to put these guys in touch with? Maybe if one controller hears it from another, you know?
    Are they using a series of spreadsheets to represent different iterations of the budget process today? What I mean is, is there some element of what they do today that could be "labeled" as versioning? That way you could sort of relate what it is your saying to something they already know & use.
    Its no fun being asked to implement something you know is poor design. I hope they will see the light :)
    Regards,
    Robb Salzmann

  • Ssrs 2008 r2 use 'Globals!ReportServerUrl in url

    In a SSRS 2008 R2 report, I am able to have the users open a pdf document in a new window by using the following code in the action field of a textbox property:
    ="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))".
    My goal is not to hard code the url path. I would like the url path to be dynamic based upon which report server the ssrs report is running from.
    Basically I would like to replace the
    http://test1.op.org/ReportServer with the Globals!ReportServerUrl variable that report server has a available.
    I would like to replace the above expression with the following:
    ="javascript:void(window.open('Globals!ReportServerUrl/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))". However this expression does not work.
    Thus can you tell me how to use the Globals!ReportServerUrl ssrs item with the javasctript window open statement so that the expression works correctly?

    Hi Wendy,
    If we are put Globals!ReportServerUrl expression in the “”, in Reporting Services, it will recognize it as a string data. So, it cannot display as report server URL.
    Please refer to the following expression:
    = Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf”
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • I dont know wether to pick a macbook air or a mac because i want to use it for gaming purposes?

    I want to have a fast computer i can use for school to type papers but i also want it to be fast forgaming as well. Im stuck bewteen the macbook air and the mac desktop computer. Somone please Help.

    Hi, it is dependant on what games it is you would be looking at playing, as to which would suit for those purposes.
    The Latest MacBook Air (If you're looking at the basic model) has an Intel Core i7 Dual Core processor (1.7Ghz), whereas the latest basic iMac, has an Intel Dual Core i5 (2.7Ghz), so when you look at the processor speed and compare them, in theory the iMac would be "faster", when talking about processor speed.
    The MacBook Air ships with an SSD, no matter what spec you order, which would increase speed, however they are quite small for the basic model.
    The MacBook Air, ships with Intel HD 5000 Graphics, and the iMac ships with the nVidia GeForce GT640M 512MB GDDR Memory, and the iMac has many more "Configure to Order" options available, that would allow you to increase the performance of the computer should you want to.
    I can't find the amount of VRAM on the MacBook Air Graphics Card, but based on processor performance, and expandability (RAM Upgrades / HDD Upgrades / Graphics Card Upgrades) I would for gaming recommend the iMac, however there is a large price difference between the two.
    Obviously go and do a bit of comparing on the Apple Website, and read a couple of reviews before deciding, as they all cost quite a lot of money, and you want to make sure you get what you want for your money, so you're probably better reading reviews, as I own neither myself.
    Thanks,
    Ollie.

  • I want to know if it is legal and acceptable for me to buy the Individual version of Adobe Illustrator and use it for commercial purposes

    Good day, I'm looking to buy the latest Adobe Illustrator. I am an individual / freelancer and I work from a home office. I am based in South Africa. I want to know if it is legal and acceptable for me to buy the Individual version of Adobe Illustrator and sell the illustrations / vectors etc I produce on sites such as RedBubble etc. In other words to use the Individual version as a freelancer for commercial purposes.
    Also why the price difference between the Annual Plan, paid monthly and the Monthly Plan?
    And once I have paid for a year, with whichever plan, is there a continued annual subscription due or am I done paying after a year?

    wendy
    It is perfectly fine to sell what you create with all versions of Illustrator, even the educational one.
    The price difference is because if you commit for a full year you get a better price - kind of like a volume discount.
    If you subscribe, you will have to continue paying each month if you want to continue to use the software. It's a subscription, so you'll need to pay for as long as you want to keep using the software.

  • Can I use cs2 for commercial purposes?

    Hello!
    I've digged whole internet to find official answers, but I couldnt find it. So I want to ask it here, before bad things happened.
    I downloaded CS2 from this website and recieved official keys for installation.
    So the question is: can I use this  CS2 for commercial purposes now? Will I have any problems with the law in case of law audit?
    Can I recieve clear and understandable official answer for russian audience? Then I will share ADOBE's answer.
    Thank you!

    Unless you purchased CS2 you have no legal right to download and use CS2.
    Those downloads and serial numbers are supplied for those with legitimate
    licenses because of the shutdown of the activation servers.

  • Can I purchase Adobe photoshop cc INDIVIDUAL subscription and use it for commercial purpose? Or is it meant for non-commercial usage only?

    If I run a small studio with only 3 people, and purchase photoshop CC with individual subscription, can I use it for my studio? Why I ask this is because CC individual license (single app) is cheaper than a subscription for small/medium sized businesses (single app).
    Thanks in advance.

    Hi rohit.c
    Yes, that's fine - there is no restriction on using an individual subscription commercially.
    The small business teams plans are more expensive as you get additional storage and tools to manage license deployment.
    Kind regards
    Bev

  • SSRS 2008 R2 - Using Action to call a report with MultiValue Parameters

    I have a report uses project names as parameter(Multi value) and display some data. I want to call this report from some other report on a click (drill down). This report has a program row where it aggregates the data, underneath Programs, I have
    list of projects(group). When I use Action on the individual projects, it takes me to the appropriate project ( I used
    Fields!ProjectName.Value). However, when user clicks on the program, it should pass the group of projects within that program to the called report. With expression,  Fields!ProjectName.Value, it only select one random project (may be first/last from
    the query) and display records. I tried Join(Fields!ProjectName.Value, ",") and Fields!ProjectName.Value(0) but now it doesn't select a sengle project. Can someone help please?

    use In instead =

  • Run Archlinux live from a USB stick using Grub (for install purposes)

    Menu.lst wrote:title Arch Linux 2009.08
    find --set-root /Images/archlinux-2009.08-netinstall-i686-isolinux.iso
    map /Images/archlinux-2009.08-netinstall-i686-isolinux.iso (hd32)
    map --hook
    root (hd32)
    chainloader (hd32)
    Gives off an error:
    Waiting 30 seconds for device /dev/archiso/ ...
    ERROR: boot device didn't show up after 30 seconds...
    Falling back to interactive prompt
    You can try to fix the problem manually, log out when you are finised
    ramfs$ _
    Using Grub 0.4.4. Do I also need to point to the kernel, initrd, etc ? Thank you.
    Last edited by DSpider (2009-08-23 21:55:53)

    DSpider wrote:
    Menu.lst wrote:title Arch Linux 2009.08
    find --set-root /Images/archlinux-2009.08-netinstall-i686-isolinux.iso
    map /Images/archlinux-2009.08-netinstall-i686-isolinux.iso (hd32)
    map --hook
    root (hd32)
    chainloader (hd32)
    Gives off an error:
    I guess this won't work. GRUB apparently creates a mapping in the BIOS here, but as soon as Linux boots, it doesn't care about what the BIOS says and accesses hardware directly. You should do the following instead:
    If you have a USB stick that you can completely erase, use the .img file and copy it to the stick with dd.
    If not, you can try to place the files on any filesystem (usb, hard drive, everything) like this:
    * Mount the ISO
    * Copy the *.sqfs files and the isomounts file to the root directory on any filesystem (I think ntfs will not work, but fat32, ext2, ext3, ext4 should)
    * Copy the vmlinuz26 and the initcpio_pata.img files from the /boot directory anywhere (can be the same filesystem as above, but doesn't have to be - we'll assume this is accesible from grub by (hd1,2)/boot below)
    Now add the following GRUB entry:
    title Arch Live
    kernel (hd1,2)/boot/vmlinuz26 lang=en locale=en_US.UTF-8 archisolabel=YOURLABEL ramdisk_size=75%
    initrd (hd1,2)/boot/initcpio_pata.img
    Above, replace YOURLABEL with the label of the filesystem you copied the isomounts and *.sqfs to. If the filesystem doesn't have a label, give it one.

  • Can i purchase individual plans and use it for commercial purposes?

    dont really need the business plan features, will want to keep it simple. Can i buy 2 inidividual plan for 2 designers to use for my business?  Thanks in advance.

    Certainly can... if you purchase them you can use them commercially.

  • I want to change my name on my outgoing ID. I want to use my professional name rather than the name i use only for legal purposes as that is how people know me

    my friends and clients know me as Jeanette Vonier
    this is also on all my bank accounts
    I use my birth name Jeanette Stringham only for legal documents and credit cards.
    I prefer to have my professional name Jeanette Vonier show as my id on messages.
    however the thunderbird mail through gandhi.net inserted the professional id instead and I cannot figure out how to change that. as a consequence my emails may be flagged as spam or go unopened.
    please advise how I may correct that and change the name showing up.

    The way to change what ever people see when they get your email is to set up your email the way you want to. '''Modzilla''' defaults to the name that you use for your computer.
    '''Open Modzilla''' go to tools then '''account settings''' When that page opens you will see your name as it appears on your email and your email address you can change any of this if you want and even create a signature which can be really cool if you know some basic HTML

Maybe you are looking for

  • Weird graphics and other issues with internet explorer in all versions.

    One of our laptops has an issue with their Internet Explorer. First, whenever the user logs on and starts internet explorer and navigates to any website, the website loads for a bit but then immediately displays a "Page cannot be displayed" error. Ev

  • Library File in User Folder Invisible?

    Is there a way to change this folder to being visible? I turned off invisible files, and it showed up, then made an alias for it so I can still access with invisible files turned on, but is there a way to change the default of this folder to being vi

  • Best practice CO cost centres?

    Hi all, Please can you tell me where I can find a source for best practice CO cost centres to set up for my client ?  Would it be somewhere in ASAP for example? Thanks very much.. Mike

  • How can I delete the entire address Book database?

    I have problems with Address Book, the database is "busted" and it will not open anymore, it just freeze.  How can I delete it?

  • Trouble with a matrix constructor

    im trying to make a constructor that creates a matrix based on a matrix that the user inputs, so i have this so far public Matrices(int matriz[][])         int numElements1 = matriz.length;         int numElements2 = matriz[0].length;         matrix