Executing SSRS using the 'label' field instead of 'value' field

Hi,
We have in house custom SSRS reports built for our clients and each of those reports have a 'label' field and a 'value' field. Now the 'label' field is something that the client sees on the UI as a friendly name. When a client runs the report, it gets executed
against the 'value' field and so I was wondering if there was a way to tell SSRS to execute against 'label' field as oppose to 'value'.
Appreciate your response!
Thanks,
Darshan

I found the solution!!! By design, SSRS will not convert Label to Values. You will need to write custom code to do this. You need to do the below
a) You need create an instance of
ReportingService2010
rs =
newReportingService2010();
b) Then you need to populate the ParameterValue[] array and populate the 'Name' and 'Value' (here the 'Value' is actually the Label that the client sees on the UI)
c) Assign the following
string report = "[report_path]";
bool forRendering = true;
string historyID = null;
DataSourceCredentials[] credentials = null;
ItemParameter[] parameters = null;
and then call parameters = rs.GetItemParameters(report, historyID, forRendering, values, credentials);
d) The above call gives you the Label-Value pair mappings within the "parameters" object and if you have cascading parameters, you will need to recursively call parameters = rs.GetItemParameters(report, historyID, forRendering, values, credentials); which
will give you the complete set of the Label-Value pair mapping.
e) You then iterate through the above collection and the get the Value for that Label and pass it on to SSRS
I have tested this internally on several reports and it seems to be working. I can now pass in the displayed values to our custom web services and the above steps take care of populating the Label-Value pair mapping and then calling SSRS with the actual
'Value'
Darshan Patel

Similar Messages

  • How can i use the project code instead of project xml?

    hello
    i use the sessionbean+toplink structure,after i finish the o-r mapping by using the mapping work bench,i generate the project xml file,then in the "session.xml" file,i refer to the project xml,then i can use it from sessionbean.
    i hear that if i use the project code instead of project xml file,it will be more performant,is that true?
    otherwise,how can i use the project code instead of project xml file?i mean, in "session.xml", i can use the "<project-xml>" tag to refer to the project xml file,then in my session bean,i get the server session by read the "session.xml" file.but if i use the project code,how can i refer it from the "session.xml"?the examples that come with the toplink installation only tell me how can i use the project xml file within the session bean,it don't give me any clue about using the project code in the sesion bean,who can give me a step-by-step instruction and code snippet?
    thank you very much?

    There is a slight performance gain during session load at startup but there is no difference at runtime. The choice of which to use is dependent upon you build process. Whether it is easier to submit a new version of the class into the comile build process vs an XML file. In most cases it is just a preference of the development team.
    When you use the project-class you'll need to generate the source code and compile it into your system. Typically it is packaged with the persistent classes. You may need to configure your environment so that the class-loaders have access to these classes (same for the XML case).
    When using the project-class you simply replace the project-xml entry like this:
    <project-class>oracle.toplink.demos.employee.relational.EmployeeProject</project-class>
    The DTD for the session.xml file is found at <TOPLINK_HOME>\core\sessions_4_5.dtd. It is also in the documentation at:
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/toplink.903/b10064/a-sessio.htm#634246
    Doug Clarke
    Product Manager
    Oracle9iAS TopLink

  • Using the file icon instead of the Thumbnail icon

    is it possible to use the file icon instead of the thumbnail icon on the desktop? If so, how?
    Thanks,
    Travis

    View menu --> Show view options --> Show Icon preview --> uncheck it

  • IPhoto still won't make web pages using the comments field

    I am someone who makes use of the comments field in iPhoto. I don't edit the title, because I thought it edited the photo file name (perhaps only in earlier iPhoto versions). Unfortunately, the Apple's tools for making a web page from iPhoto '08 seem to still use the title field only and not the comment field. That means that I have to edit all titles (to blank or a proper title) if I just want to show an annotation on just a few photos in a web page. At least the comments field defaults to blank, so I normally use it, along with the Better HTML plugin to make web pages, http://www.geeksrus.com/software/betterhtmlexport/
    Now, the web pages produced by Apple are now as good as and even better than the BHTML templates, and I'd like to use them. But this problem with the comments means I can't quickly convert my old photo albums to something that makes nice web pages using my annotations with the iPhoto tools.
    Does anybody know of any solutions to this problem? E.g. a script to copy the comments field to the title field?

    I know what you mean. I can't believe that after so many versions of iPhoto that have supported publishing of some sort that such a basic and obvious feature still hasn't been implemented. It can't take that much effort to add. I'd rather have that than the new (and IMHO completely useless) "Events" feature. Speaking of which, does anyone know if there is a way to turn it off? It's annoying the heck outta me. I hate it.

  • [svn] 3037: Update flex-config. xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path .

    Revision: 3037
    Author: [email protected]
    Date: 2008-08-29 06:54:15 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Update flex-config.xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path. This will allow the correct playerglobal.swc to be located when the target player version is set in the flex-config.xml or passed to mxmlc or compc.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/resources/config/flex-config.xml

    Unfortunately I don't have the
    "org.eclipse.swt.win32.win32.x86_3.1.2.jar" file. On my computer
    the folder is not set up the same way (C:\Program Files\Adobe\Flex
    Builder 2\plugins) instead it is set up as (C:\Program
    Files\Adobe\Flex Builder 2\metadata\plugins) but I've looked in
    everything and that file just isn't in there. I've re downloaded it
    twice. Still not there. Is there anything else i can do.

  • The name attribute on the img element is obsolete. Use the id attribute instead.

    When I valadate my page I get an error "The name attribute on the img element is obsolete. Use the id attribute instead." In DW CS5.5 I cannot seem to enter an ID without DW also adding the ID as a name attribute too. Aside from manually going in and removing the name attribute from the code.

    It won't hurt to leave the name attribute in your <img> tag.  In fact, it may be necessary if you are going to add an image rollover behavior, since DW's javascript relies on that name attribute's value to correctly identify the desired image on the page.

  • How can I use the 'Location' field?

    I'd like to use the location field on my Time Capsule to keep the correct GPS location. What is the correct format for this?
    How do I enable this so that devices can use this to set their location?

    I don't suppose it's likely to occure in a future release of time capsule software is it?
    On the Support Community, we are all users....just like you....so we have no way of knowing what Apple's future plans might be regarding new products or software.

  • IPhoto:How to update to use the DR API instead????

    Ahoy.
    While trying to figure out why safari keeps quitting on me, I found an answer to someone else, who was told to go into logs and I was floowing along, but I guess they are ahead of tiger- anwyay I did find this, and wonder, can I do as it suggests somehow?
    iPhoto: WARNING: The DiscRec SPI from the DiscRecording framework is deprecated in 10.3 and later.
    iPhoto: WARNING: This app is contributing to an overall degradation of system performance and should
    iPhoto: WARNING: be updated to use the DR API instead.
    iPhoto: WARNING: The DiscRec SPI from the DiscRecording framework is deprecated in 10.3 and later.
    iPhoto: WARNING: This app is contributing to an overall degradation of system performance and should
    iPhoto: WARNING: be updated to use the DR API instead.
    Fin

    BDAqua saved me a lot of typing.   It wasn't clear, though, if you just needed to vent or if you're wanting to address these issues (which will involve a lot of typing).
    One of the main ones you need to do before you do any installing or installing of Flash Player is deal with the disk that won't verify.  Basically you're working with a computer that doesn't know where all its files are.  The computer uses a directory to keep tack of them and your directory needs repairing.  If you don't repair it then you'll just end up losing files, and getting more problems with running the computer.  It's a little bit like never changing the oil in the car, or dealing with an oil leak when it happens.
    First, if at all possible make a backup of the drive in its present configuration.  If something goes wrong during repair attempts and makes things worse you will have a backup.  You will have to decide how to work this in the light of any present backups you may have, for example, a backup that may be a few days out of date.  In that case you may want to keep that one and make a second backup of this as they are now, though I realize people often don't have a lot of empty drives sitting around.
    Boot from the System Installer disc that came with your computer or is the one for the version you currently have on there, select language if applicable, choose utilities, run Disk Utility and verify (and repair if necessary) the drive. You can verify a drive from DU on your main drive while booted but I have found this can result in incorrect reporting of errors. To repair your drive you have to run it from a drive other than the boot drive anyway.
    Next, boot from your drive in [Safe Mode|http://docs.info.apple.com/article.html?artnum=107393] and repair permissions.  You can repair permissions while booted from the installer disc but this uses the permissions configuration on the installer disc which may be out of date if you have run any updates on your computer.  Booting your computer to Safe Mode restricts the number of things running on your computer while permissions are being run and does a bit of spring cleaning at the same time.
    +Reading+
    [Resolve startup issues and perform disk maintenance with Disk Utility and fsck|http://docs.info.apple.com/article.html?artnum=106214]
    [Using Disk Utility in Mac OS X 10.4.3 or later|http://docs.info.apple.com/article.html?artnum=302672]
    [Disk Utility's Repair Disk Permissions 10.0-10.6|http://docs.info.apple.com/article.html?artnum=25751]
    "Try Disk Utility" (modified from [http://support.apple.com/kb/TS1417])
    1. Insert the Mac OS X Install disc that came with your computer (Edit: Do not use this disc if it is not the same general version as what you have currently on your computer, e.g. use a Tiger disc for a Tiger drive, not a Panther disc), then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    Then boot in Safe Mode, (holding Shift key down at bootup; takes longer to boot this way so be patient), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    [Mac OS X: Starting up in Safe Mode|http://docs.info.apple.com/article.html?artnum=107393]
    [What is Safe Boot, Safe Mode? (Mac OS X)|http://support.apple.com/kb/HT1564]
    [Safe Boot takes longer than normal startup|http://docs.info.apple.com/article.html?artnum=107394]
    [Mac OS X 10.4, 10.5- Computer shuts down during Safe Boot|http://support.apple.com/kb/TA24054]
    There's some things Disk Utility won't repair (more often thatn not). In that case you need to use a tool such as Diskwarrio (probably #1 but only does this one thing), or TechTool Pro, or...

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • Backing up files using the label setting.

    I want to know if it is possible to back up files, using the labels setting.

    Perhaps you could adapt this script to do it...
    set itemstomovelist to choose folder with multiple selections allowed
    set listofnumbers to {}
    set err_log to {}
    if itemstomovelist is not equal to {} then
        set lst to {0, 1, 2, 3, 4, 5, 6, 7}
        repeat with i in itemstomovelist
            tell application "Finder"
                get properties of i
                set WIPCheck to (label index of the result)
                if WIPCheck is not in lst then
                    set WIPCheck to false
                end if
                if WIPCheck is not false then
                    set end of listofnumbers to WIPCheck
                    if WIPCheck = 0 then
                        -- do stuff
                    end if
                else
                    set end of err_log to ("Error - " & ((i as string) & "- Could not get Label Index/"))
                end if
            end tell
        end repeat
    end if
    return listofnumbers
    http://macscripter.net/viewtopic.php?id=24193

  • Splitting the "To" field when crawling an email and then using the "To" field as a refiner with single email addresses

    Hi
    I am using SP2013 SP1 with the September 2014 CU.
    When I crawl an email I use the "To" field subsequently as a refiner.
    Unfortunately, if the email has many email addresses in the "To" field, they all appear in the refiner which is not much help if you only want to refine by a single email address.
    IS there a way of splitting the list of email addresses in the "To" field into separate email addresses so that the field can be used as a refiner, with each refiner entry having a single email address ?
    I have seen articles for SP2010 FAST search, but not for SP2013 Search or do I need to get involved in Content Enrichment / Content Extraction for there appears to be little documentation available on these.
    I would have thought this would have been a fairly popular feature.
    Regards
    Nigel
    Nigel Price NJPEnterprises

    Hi,
    According to your description, my understanding is that the "to"search refiner has many email address when searching the "To" managed property in SharePoint 2013. but you only want to refine by a single email address.
    Whether you create custom "To" managed property,  and then you can search email address with the "To" managed property.
    The refiner value is correspond to the crawel property(column value), when you search different email adress, you would get different refiner values.
    If the issue exists, Please offer a screenshot about your issue and tell "To" managed property is mapping to which crawl property.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I use the enter key instead of tab to change field focus?

    I am using Acrobat 9 Pro.
    We have a fillable PDF where the users enter numbers into fields.  They want to be able to use the <enter> key on the 10-key pad instead of the <tab> key on the keyboard to move the focus to the next data entry field.
    How can I set my PDF so that it recognizes the <enter> key instead of the <tab> key for changing focus?
    Thanks!

    You can use a custom Keystroke script, something like:
    // Custom Keystroke script for text field
    if (event.willCommit && event.commitKey === 2) {
        getField("Text2").setFocus();
    Where "Text2" is the name of the next field. This doesn't disable the Tab key though. For more information, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.608.html

  • When to use the "Process Fields"?

    Hi, I have a simple form with some text fields and a couple of Signature fields. 
    All is working fine in the WorkSpace.
    The Process / Workflow is also simple, Initiator --> User --> User.
    But I want the user to be able to submit the form outside of the WorkSpace.  ie. the user receives the form as an attachment to the Notification email from the server, user opens the attached PDF, clicks the submit button, and the workflow continues on to the next step after the server receives the email from the user.
    I read it somewhere that, in order to do this, I will need to drag the Process Fields block onto the form.
    So I did that.
    Before trying the email-submit, I wanted to make sure that it still works in the WorkSpace. 
    Unfortunately, it doesn't work anymore.
    When the "User" (2nd and 3rd steps in the workflow shown above) opens the workitem, the PDF form was not displayed in the browser, instead it's a XML page.
    So, my question is, what do I need to do in order to make the Process Fields work with my form? and the user can submit the form by email too.
    also, whatever changes I need to make, it won't break the Signatures.
    thanks

    Hi,
    Regarding field transfer, I answered your previous post.
    Regarding the project tree navigation, you can use function module 'BAPI_BUS2172_GET_TREE' (with the project guid as import parameter), and then sort the table Ascending or Descending.

  • How do I use the z parameter instead of component's stack order for layout?

    Hi,
    In my current project I am already using the cool new 3D properties (z/rotationX/rotationY/rotationZ) of the Flex 4 SDK. It really makes fun playing
    around with them, but it is actually pretty annoying that elements that ought to be postioned on top of each other with different z-values are displayed according to their stack order (the positon with respect to to their DisplayObject-siblings). This leads to the non-realistic appearance of objects that should be positioned in the back of the scene right on top of everything else.
    The only solution for this problem is to manually set the z-order in which I want the objects to appear on the screen by using the removeChild()/addChild() methods of the parent-container. This is not only annoying but quite expensive and additionally non-dynamic.
    Is there any means to make a container use its children's position in space for layout instead of its "z-stack"? If not, I would consider this as a bug, at least when it comes to 3D placement of objects.
    Thank's for any hints and best regards,
    Manuel Fittko

    If you are running the broker as a Window's service then
    jmqsvcadmin install -jrehome (or -javahome) is the correct
    way to specify an alternate JRE. If you are running the broker
    directly on the command line then you can use -jrehome directly
    with the jmqbroker command.

  • How do I submit a form to a LC process using the process fields component in LC Designer

    I have a PDF Form with the Process Fields component attached.<br /><br />In the FSSubmit component, I have set the URL to <br />http://localhost:8080/soap/services/SAPS_Submission?wsdl, <br />where SAPS_Submission is the name of my process.<br /><br />I open the form through a Flex app, fill out the form and press submit, but get the following error:<br /><br />  <?xml version="1.0" encoding="utf-8" ?> <br />- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br />- <soapenv:Body><br />- <soapenv:Fault><br />  <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode> <br />  <faultstring>no SOAPAction header!</faultstring> <br />- <detail><br />  <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">dtross</ns2:hostname> <br />  </detail><br />  </soapenv:Fault><br />  </soapenv:Body><br />  </soapenv:Envelope><br /><br />The LC process has the schema for the form as an input variable, which is used in the execution of a insertSQLStatement.<br /><br />My knowledge of the process fields component is sketchy at best, but from what I understand, I can use it to submit to workbench without using a servlet?<br /><br />Any help with getting the data from the form to the process using this technique, or clarification about what I should actually be doing would be greatly appreciated...<br /><br />Thanks<br /><br />Ross Malan

    The process fields are ONLY needed if you're planning to use the form offline or through email. If you submit the data back to a servlet, you just need to put a submit button on the form.
    Jasmin

Maybe you are looking for