Changing the value of a parameter that has been passed into an SSRS 2008 R2 report

I support 200+ reports that all use stored procedures and have many drill downs with built in URLs.
I want to do the below to avoid creating a brand new parameter that I will have to add to literally hundreds of places.
We have what I'll call Param1 that receives a value from the user.  That Param1 is passed to the stored procedure(s) for the report and also embedded in any Action URLs for drill downs to other reports from that report.  All works great.
Now I have a need to concatenate a string to whatever value they supplied which provides context for the environment in which they are running.  The reason I want to do this instead of creating a new parameter is because I need this in all my reports
and as stated above I would have to make 100s of changes to make that happen.  If I can figure out a way to concatenate a value to the existing Param1 value I can greatly reduce the number of changes.
I can't seem to be able to find a way to modify the value on an existing parameter that is passed into the report prior to report execution.
I get an error when I simply try to concatenate something to the parameter in its Default property.
I can't find a way to update a parameter value in the Report Code block.  There don't appear to be any methods available on the Parameter Collection to set the value of a parameter.
Any ideas?
Thanks!
Nathan 

Create a new parameter. Mark it internal, set it's value by expression to:
=User!UserId+"MyNewValue"
and pass it to the proc?
Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

Similar Messages

  • There was an attempt to change the value of a control that is not visible.

    I am getting the below error on submitting on a screen.
    "There was an attempt to change the value of a control that is not visible. The submitted value for this control has been discarded."
    I am setting the values of the controls in "OnGetScreenEventHandler, OnInvestigationEndedEventHandler" implementation. Is there any way to check if the control is visible?
    Thanks,
    Rajan

    Hi,
    How Do I Check for the control Visiblity in the above said event handler?
    Here is my code
    private void formattAllDate(SessionContext currentContext) {
         log.debug("R2_XSR: Formatting all date");      
    setGlobalInstanceValue(currentContext,"Date1",formatDate(getGlobalInstanceAttribValue(currentContext, "Date1")));
    setGlobalInstanceValue(currentContext,"Date2",formatDate(getGlobalInstanceAttribValue(currentContext, "Date2")));
    setGlobalInstanceValue(currentContext,"Date3",formatDate(getGlobalInstanceAttribValue(currentContext, "Date3")));
    setGlobalInstanceValue(currentContext,"Date4",formatDate(getGlobalInstanceAttribValue(currentContext, "Date4")));
    setGlobalInstanceValue(currentContext,"Date5",formatDate(getGlobalInstanceAttribValue(currentContext, "Date5")));
    setGlobalInstanceValue(currentContext,"Date6",formatDate(getGlobalInstanceAttribValue(currentContext, "Date6")));
    setGlobalInstanceValue(currentContext,"Date7",formatDate(getGlobalInstanceAttribValue(currentContext, "Date7")));
    private void setGlobalInstanceValue(SessionContext currentContext, String attribute,Boolean value){
         try{
              currentContext.getInterviewSession().getRuleSession().getGlobalEntityInstance().getEntity().getAttribute(attribute).setValue(currentContext.getInterviewSession().getRuleSession().getGlobalEntityInstance(), value);
         }catch(Exception e){
              e.printStackTrace();
    private String formatDate(String dt){
    String newdt[]=dt.split("/");
    if (newdt.length==3){
    return newdt[1]+"/"+newdt[0]+"/"+newdt[2];
    return "";
    }

  • 'Value of valuated stock that has been issued' is different in MCBE and S031

    Hello,
    I noted that the field  'Value of valuated stock that has been issued' is different in the same period (07.2013) in table S031 and in the transaction MCBE.
    Also, if the 'Quantity of valuated stock issues' for this period is 0, how can this field be calculated?
    Thank's in advance.
    Regards,
    Carla Ribeiro

    Hello Carla,
    I am also analysing the same issue for S031 and MCBE. Found some points to share with you.
    What I understood is this is due to Valueated stcock receipt value. This value is being added in issue value in MCBE report.
    But not able to get why ? and S031 doesnt have value for valuated stock rec value. This value is being calculated during runtime and added to issue value in MCBE
    Pls check and let me know if you have found the solution.
    Thanks
    Milind

  • How to get PDF file that has been transformed into docx into my filing system so I can work on it???

    How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?

    THanks for your reply.
    Well what happens is I bought the program. It gives you a button to click,
    you log in and then a box opens up asking you to select the file, I go into
    my filing system (in Windows explorer) select the file, and the program
    converts it into docx, my choice.  I can read it there and when I try to
    copy and paste it into my file where the PDF version is saved, it behaves
    like an "image", and I can't save it.... or it saves likes something you
    save on the internet, so you have to go into internet every time you want
    to see it.    I have also pressed any amount of buttons to see if it will
    give me the option to save it any other way, and have found nothing.  What
    I would need is a file in docx.format that I can edit.  People send me
    things in PDF and sometimes I can just copy it off the PDF file and save it
    in WOrd, then I can translate it for them. But sometimes the PDF file
    doesnt allow me to copy the text.  If it is in image form, I cannot work on
    it.  It means printing it, so I can copy type it into Word... and for that
    I certainly wouldnt need to buy a program.  Its just double the work and
    ends up that the job takes twice as long.!
    Sorry  if I am a bit dumb with informatics.  But I simply could not find
    any way whatever to  copy the PDF file that was transformed into Word, in a
    format that would enable me to edit it.
    Kindest regards,
    Margery
    2013/12/2 Test Screen Name <[email protected]>
        Re: How to get PDF file that has been transformed into docx into my
    filing system so I can work on it???
    created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
    ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871

  • Can you change the value of a variable that is reset by a parameter?

    Sorry if this is simple but I just crashed a package and can't do an autopsy. I suspect I sent it into an infinite loop. I know you can't change the value of any passed in parameters. What I tried to do was have the parameter set the value of a variable
    and then I tried to change the value of the variable. Is that even allowed?
    I was trying to do this:
    MyCheckVariable = MyParameter (which equals true)
    (some cool stuff happens)
    MyCheckVariable = False
    I hit F5 and my package turned into the Energizer Bunny. Is the way I try to reset the variable the culprit?

    This is a prototype so I just created a project parameter and set it to true. In the real world the parameter will be used to control an optional part of the process because on a re-run after error that part doesn't have to be ran again.
    So when I say MyCheckVariable = MyParameter (which equals true) in reality what I actually have is in the variables window I'm using an expression and it looks like this in the variables window
    name = runDownload
    Scope = Package
    Data Type = Boolean
    Value = True (but greyed out)
    Expression = @[$Project::param_runDownload]

  • How can I change the value of "colorscheme" parameter at runtime?

    Hello all
    Can I change the value of colorscheme at runtime ?
    This parameter can be config in formsweb.cfg file.
    I want to put this colorscheme as "User Preferences" in my application.
    Please help me if some one knows how to achieve this.
    From
    Chirag Patel (Nairobi)

    Hi,
    Try the following. This might help you.
    Edit you Formsweb.cfg file with following code (add the code to your file):
    [look1]
    separateFrame=True
    lookandfeel=Generic
    [look2]
    separateFrame=True
    lookandfeel=Teal
    [look3]
    separateFrame=True
    lookandfeel=Khaki
    and save your file.
    Now, when you call your form in the address bar look for " ? ". After " ? " add config=look1 now your form will take Genric look & feel.
    or
    config=Teal now your form will take Teal look & feel.
    That's how you can change the look & feel at run time.
    Hope that you understand what i want to say......

  • Is there a way to read text messages from the past in a thread that has been ongoing for months?

    Is there a way to view/recover messages from months ago in a thread that has been ongoing? The messages are not deleted. If i just keep "loading new messages" a) it will take all day, I've tried, and b) it freezes on me.

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Both will allow you to archive your text messages to your computer and read them easily.

  • Why does Epson app for the iphone show a folder that has been deleted from my camera roll?

    Why does the Epson app for my iphone 4 show a folder that has been deleted from my camera roll for months now?

    Thanks @pdroth. I did a quick Google search of DB indexing. I'm not sure I found exactly what you were referring to but I see where you're going with it. I can understand that indexing my database of stored photos can be time consuming. It's frustrating that the space can't be recognized as being free more quickly.
    I notice that some items I delete seem to free up the space much more quickly. Removing an app entirely or deleting from my Music generally shows up as available space in Usage pretty quickly.
    Deleting a photo or video from the Camera Roll will take MUCH longer, so I guess that has something to do with the indexing process you are referring to.
    I'd like to point out that when I run out of space on an SD card on any budget point and click digital camera that I can quickly delete a picture or two and INSTANTLY be able to take a couple of new photos in their place. I guess I just have that same expectation for the $500+ engineering marvel I have in my hand right now.
    Thanks for chiming in.

  • I purchased a book through iTunes and it downloaded. I synced with my iPad. It shows the book is downloading but that has been going on for two hours and i still can't open the book.

    I purchased a book through iTunes. I then synced my iPad and went to iBooks. I clicked on the book and it shows downloading but that has been going on for almost two hours and i still can't open the book. What gives? I have done this before no problem.

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account (Store > View My Apple ID on iTunes 11) and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book, click the arrow to the left of it, click the 'Report a Problem' button :
    and then the 'Report a Problem' link on its line :
    and select 'inadvertently purchased' as the problem and fill in the details (iTunes support should reply within, I think, about 24 hours).
    Or you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to change the requested delivery date when approval has been done

    Hi
    We use SRM5.0 and we want to implement SC, now we want to make it possible to change the delivery date in the shopping cart when we approve.
    This is needed if we request today but the approver didn't approve same day, therefore the requested day has to move the same number of days, that the approver has spend. Or else the deliver date will not be correct.
    Do any of you know how to do this??
    Best regards
    Jakob

    Hi Jakob,
    What scenario do you use? Classic, Extended Classic, Standalone?
    So depending on your scenario you can have differente types of follow-on documents (PR/PO only in ERP in case of Classic, or PO in SRMand ERP in case of Extended Classic).
    Do you use Sourcing Cockpit?
    I've tested this scenario in SRM 7.0 Standalone and if the follow-on document (in my case, a PO) is not "Ordered" yet then I can change the SC. But if it is already "Ordered", I can't change the SC. This is standard behavior.
    You could use Sourcing Cocking to solve this issue, in this you don't use it yet.
    Best regards,
    Christian Zeuch

  • How to change the internal order type when it has been created?

    There is an internal order, when it being created, the user chose the incorrect order type and save it. but the internal order number is useful. so we just want to change the order type or delete the order to release the number.  so can you give me some solutions to solve it. I can not find the way neither change the order type nor delete it.  thanks very much.

    You are unable to change the internal order type once an internal order has been created, however you can delete the IO if there haven't been any postings made.
    In change mode (tcode KO02), go into the internal order.  Go into the following menu:  Edit > Deletion Flag > Set.    Before you exit the IO, save the master record.
    Depending upon your archiving settings, you should then be able to select the menu path:  Edit > Set Deletion Indicator.
    If the IO isn't deleted, you can "clobber" it by going into the IMG and deleting the IO using the function "Delete Test Data".  This should only be done by a technical person to ensure that a mass-delete doesn't occur.
    Please note that if the IO was an internally assigned number, you might just want to block it and re-use it later.
    Hope this helps.
    Kylie

  • Make mp3 that has been loaded into swf to stop playing

    Hi,
    I've managed to create a 'jukebox' that has a selection of
    tracks. Each track is loaded into the swf using the following
    scripting:
    var my_sound:Sound = new Sound();
    my_sound.loadSound("nuffnek.mp3",true);
    I have created a stop button which when pressed takes the
    movie to a point on the timeline where there is no:
    var my_sound:Sound = new Sound();
    my_sound.loadSound("nuffnek.mp3",true);
    But the mp3 file continues to play.
    Is there some scripting that I need to put at this point on
    the timeline that maybe 'unloads' the sound????
    Any help much appreciated.

    Did you try:
    my_sound.stop();
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "Dilroy" <[email protected]> wrote in
    message
    news:ebdk5o$grn$[email protected]..
    > Hi,
    >
    > I've managed to create a 'jukebox' that has a selection
    of tracks. Each
    > track
    > is loaded into the swf using the following scripting:
    >
    > var my_sound:Sound = new Sound();
    > my_sound.loadSound("nuffnek.mp3",true);
    >
    > I have created a stop button which when pressed takes
    the movie to a point
    > on
    > the timeline where there is no:
    >
    > var my_sound:Sound = new Sound();
    > my_sound.loadSound("nuffnek.mp3",true);
    >
    > But the mp3 file continues to play.
    > Is there some scripting that I need to put at this point
    on the timeline
    > that
    > maybe 'unloads' the sound????
    >
    > Any help much appreciated.
    >
    >
    >
    >
    >

  • Mail running under LIon no longer grays out the name of the sender of an email that has been read.  How can I get that to happen?

    Under the old version of Mail, when an e-mail was read, the name of the sender was greted out so that I knew I had read that email.  This does not seem to happen under the new Mail thaqt came with Lion.  Help!?
    Chuck Humphrey
    [email protected]
    303-997-2755

    Kirk,
    Thanks again for your suggestions. No, I don't get an
    error message. In fact nothing happens. My name and
    key are typed in and from what I understand, once you
    do that with a real key it directs you to the
    registration page. When I get done entering the
    information the window just sits there without any
    button or option to continue.
    QT Pro is already in the QT (non-pro) you installed and the key (which is a hash of your name in part) allows the Pro features to work.
    No redirect, internet, nothing like that. As such many people have activated and think they haven't. Just look at the menu items and see if the "Pro" logo is shown next to a few (which are greyed out and not available without Pro). If not you are done.

  • HT4759 How can I find the serial number toy device that has been stolen? I have looked in my account on iTunes and go to manage devices but only option is to delete that device?

    My daughters iPod was stolen today and I disabled it and tracked it on the find iPhone to an address but law enforcement can't do anything yet since they have now turned the iPod off which means it's off the radar now but for the life of me I can not find the serial number in my iTunes account to give the investigator so that he can put the info into a data base for pawn shops. Help???

    Try here >  How to find the serial number of your Apple hardware product
    I hope you find it.

  • I recently got bought an Ipod touch 2nd Generation, and I want to transfer music from a CD that has been Imported into Itunes, yet it dosen't then show up that i have downloaded the music....why is this and how do i fix it?

    I really need help with downloading music from a CD that was imported to Itunes, bt is not showing p in my Ipod Touch's music....please somebody help!

    Sorry, no this didnt solve my question i pressed a wrong button.....
    No i havent synced music before...yes they do play in Itunes
    Also, when I am connecting itm it isnt connecting or showing up that the device is connected
    Message was edited by: MollyMeyer1998

Maybe you are looking for