Best way to select a record to display in the report

Hi,
I am helping a customer get a report (V11) working in the Visual Studio 2008 viewer.
The report, where they have linked all the tables from the database,  has a paramater called 'jobNo'.
The record select expert then uses the param to select the required job. ({uv_JobDetails.JobNumText} = {?JobNo})
My question is how do I from my ASP.net (VB.net code) set this parameter, and then refresh the report to show the correct data matching the parameter jobNo.
Thanks

Hi,
Try with this:  
ReportDocument boreportdocument = new ReportDocument();
boreportdocument.Load(Server.MapPath("Decreteparam.rpt"));
string recordselection = "{Customer.Country} = " + "{?My Parameter}";
boreportdocument.RecordSelectionFormula = recordselection;
CrystalReportViewer1.ReportSource = boreportdocument;
or //Set parameter value like this
boreportdocument.SetParameterValue("My Parameter", "USA");
For Range Parameter:
boreportdocument.Load(Server.MapPath("RangeParam.rpt"));
CrystalReportViewer1.ReportSource = boreportdocument;
boparamfields = CrystalReportViewer1.ParameterFieldInfo;
//setting the start and end values
boparamField = boparamfields["SalesRange"];
boparamValues = boparamField.CurrentValues;
boparamrangevalue.EndValue = "300";
boparamrangevalue.LowerBoundType = RangeBoundType.BoundInclusive;
boparamrangevalue.StartValue = "27";
boparamrangevalue.UpperBoundType = RangeBoundType.BoundInclusive;
//Adding Range values to parameter field
boparamValues.Add(boparamrangevalue);
You can get sample codes from [here|https://boc.sdn.sap.com/codesamples]
Have a look to our [Dev Library|https://www.sdn.sap.com/irj/boc/sdklibrary ]
Regards,
Shweta

Similar Messages

  • SSRS tablix not be visible when no data is selected to display on the report

    In an SSRS 2008 r2 existing dashboard application, I display a tablix (as a header) based upon the following selection criteria:
    =iif(Len(First(Fields!CustomerNumber.Value, "Main")) = 0, true, false).
    The CustomerNumber value is passed between the various SSRS reports in the dashboard application. There are times when the Fields!CustomerNumber.Value is selected for a particular report and there is no detail data to display. What happens with the existing
    reports, is the space that would be allocated for the tablix is shown.
    When there is no data to display, there is a NoRowsmessage that can be displayed on the report.
    Basically when there are no detail records to display on the report, I would like the tablix report header not to display when there is no detail data for the report.
    Thus can you tell me how to code the tablix report header not to display when there is no detail data?

    Sorry, I overlooked Katherine's simple solution, partly because the header doesn't go away, it is just replaced with something that cannot be differentiated from the report background. Keep in mind that the space the tablix is in is still occupied by the
    tablix as you can see below:
    Sample report with no data and an empty rows message of "  ".
    Above is the same report without a no rows message but with the header row hidden using thisformula: =IIf(Count(1)>0, false, true). You can see that the space that the header normally occupies is collapsed away when hiding the header whereas the spaces
    ("  ") occupy that space when using the no rows message.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • What is the best way to do voice recording in a Macbook Pro?

    What is the best way to do voice recording in a Macbook Pro.I want to voice record and sendas a MP3 file.
               Thanks

    Deleting the application from your /Applications folder is sufficient. There are sample projects in /Library/Application/Aperture you may want to get rid of as well, as they take up a fair bit of space.

  • Best Way To merge Customer Records

    Hi community,
    What is the best way to merge customer records for the same operson but may have used different email ids to correspond with BC Website

    Not in BC no. You would need to export a custom report, sort that in excel and then form that into the customer import it back in or create some API that goes through and cleans that up.

  • I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this?

    I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this? I have found GearGrip's LCD harness so that I can do carry-on onto the plane...  Or maybe use a Pelican Case to do it as a "checked bag"? Or any other suggestions??! Please help!
    Thanks so much!!

    I don't recommend you send the iMac in a checked bag. Might get damaged.
    Check the airlines website for carry on guidelines.
    Or, if you have the original box that the iMac came in, if you have someone who can pick up the iMac for you, send it ahead Fed Ex and insure the package.
    Just make sure the display is covered to protect it. A blanket perhaps.
    Aloha ...

  • Is there a way to select all emails at once on the iPad and then delete them at one time?

    Is there a way to select all emails at once on the iPad and then delete them at one time?

    Tap on the edit button at  the top right of the email list. This will let you select the emails to delete, once all are selected, tap on the bottom right button that says delete to delete them all at once.

  • Please solve  Radio buttons (when selected) will then display on the report

    Each of these new Radio buttons (when selected) will then display on the report in the same locations, which is after the existing columns.
    Check boxes are by default checked.
    When the 1st radio button is selected then a new column will be displayed in the ALV output
    Next to A.
    Like wise when 2nd radio button selected then a new column will be displayed in the ALV output next to B.
    Like wise the ALV output is displayed.
    A   is a checkbox
    B  is a checkbox
    C   is a checkbox
    D   is a checkbox
    1   is a radio button                         
    2   is a radio button      
    3  is a radio button
    4   is a radio button

    while populating fieldcatalog itself u include these condition....
    if Pradiobutton = 'X'.
    *--populate field catalog for field u want in specified position....
    endif.
    similarly u proceed for other fields and other condition

  • My iPad screen is not responding, whats the best way to clean it and what could be the problem, its 2 days old

    my iPad screen is not responding, whats the best way to clean it and what could be the problem, its 2 days old

    Braunzoes wrote:
    my iPad screen is not responding, ...
    Try a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    Braunzoes wrote:
    ... whats the best way to clean it ...
    How to Clean Apple Products
    http://support.apple.com/kb/HT3226
    Braunzoes wrote:
    ... its 2 days old
    iPad User Guide iOS 6

  • I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    WORKAROUND FOUND ! Download and install "Awesome Camera" app and take a picture with that app. After 1-2 seconds of standby, it will work. Then you can go back to default Camera app which would work again.Please let me know

  • Add row not working if more than 5 records are displayed on the screen

    Hello all,
    Does anyone know why the add row button on an sql updateable report would stop inserting a blank row for data entry when more than 5 records have been entered into the form? I can insert up to 5 records. After that, a blank row is no longer supplied by the button. Odd. Have any ideas?
    Any assistance would be greatly appreciated!!!
    Michelle

    You're welcome, Michelle!
    The "Maximum Row Count" setting determines the maximum number of rows Apex will, or could, retrieve for a report. In your original settings, this was only 15, so matched the numbers of rows on a page - therefore, you would (A) only have one page of records and (B) never see a "New Row" as that would be record number 16 (or something higher than 15), which Apex would ignore!
    One thing to note, though, is that some of the pagination schemes (the ones with a "Z" in the description) will count the full number of records available every time the report is loaded - for small tables, this is not an issue but for large tables, you may want to use one of the other schemes.
    Andy

  • Udf Data is not being displayed in the report

    Hi all,
    i have designed one report in which i am displaying some udf fields along with other system fields.
    i have not used any selection criteria.
    when i run report it doesn't display udf data of some random rows in the report even if data is peresent in that udf field.
    If i open sales order and press 'Shift-F2'  and update the document and now if i run report then i get that udf value in the report.
    why this happening. data is there in the udf field only its not displayed in the report with out updating the that udf.
    pls suggest some solution.
    regsrds,
    Chetan.

    Hi Ashish,
    I ran the "ZPS/!ZPS" in RSRT where ZPS is the infoset name. In Dev, it displayed the values. In QA, it displayed the below messages:
    ECharacteristic 0TCAKYFNM does not exist. Check authorizations
    WThere are calculated elements. These results are bracketed [  ]
    and below that, it displayed the values for Number of records. But, it has not displayed the values for the other figures.
    Does this has any impact in QA.
    Thanks & Regards,
    AVN Rao.

  • How to display % in the report results

    Hi Experts
    I my BW report i am calculacting % using Calculacted KF.
    I want to display "%" in the report
    Ex: 2.5 should be displayed as 2.5%
    How can i achieve this

    Hi,
        In formula -- u have to select the Percentage Functions - then u select the [%A] Percentage share funtion.
         It will display the calculated value with percentage like ,50%.
    Regards
    RP

  • Total time taken for the quiz needs to be displayed in the report

    Hi,
    I would want tthe total time taken for the quiz to be displayed in the report...Let me know if its possible

    Hi,
    Please try this.
    Define three user variables - StartTime, EndTime and Duration.
    At the start of the quiz ('On Slide Enter' of the first Question Slide). have an advanced action with the following actions.
    Assign: StartTime with cpInfoElapsedTimeMS  
    Continue
    At the end of the quiz ('On Success' or 'On Failure' of the last Question Slide or 'On Slide Enter' of Result Slide), have this advanced action.
    Assign: EndTime with cpInfoElapsedTimeMS
    Expression: Duration = EndTime - StartTime
    Expression: Duration = Duration / 1000
    Continue
    The variable 'Duration' will have the time taken by the user for the Quiz in seconds.
    Let me know if you have any queries.
    Thanks,
    Thejas

  • Best way to select distinct values based on another column?

    I have a table with three columns: id (NUMBER), data_dt (DATE), and data_value (NUMBER).
    There is a primary key on id and data_dt.
    I want to select the record with the latest data_dt for each unique id.
    What is the best way to do this?
    I have three different methods, but there may be something I am missing.
    First:
    SELECT *
    FROM
      SELECT id, data_dt, data_value,
             FIRST_VALUE(data_dt)
             OVER (PARTITION BY id ORDER BY data_dt DESC) AS last_data_dt
      FROM the_table
    WHERE data_dt = last_data_dt;(I use ORDER BY...DESC instead of just ORDER BY so I don't need the ROWS BETWEEN clause)
    Second:
    SELECT t1.*
    FROM the_table t1
    JOIN
      SELECT id, MAX(data_dt) AS last_data_dt
      FROM the_table
      GROUP BY id
    ) t2 ON (t2.id = t1.id AND t2.data_dt = t1.data_dt);Third:
    SELECT t1.*
    FROM the_table t1
    WHERE t1.data_dt =
      SELECT MAX(t2.data_dt)
      FROM the_table t2
      WHERE t2.id = t1.id
    );-- Don

    Hi,
    There are more possible scenario's, for example:
    select t1.*
    from   the_table t1
    where not exists ( select null
                       from   the_table t2
                       and    t2.data_dt > t1.data_dt
    What is the best way to do this?Only you can tell:
    Test all scenario's, check the execution plans, set timing on and pick the best/fastest one ;-)
    If it's not clear, please post the execution plans here.

  • Best way to select BOTH notes and midi CC?

    Hello everyone,
    I'm trying to figure out the quickest, most efficient way to select and move both notes and MIDI CC's at the same time in the matrix editor w/ hyperview. The only way I've been able to accomplish this is to shift-drag around both parts, but this takes time time as you have to do it TWICE; once for the notes and once for the midi cc's. Unfortunately "select all" or "select within locators" does not select midi cc's.
    What is the best way to deal with midi cc's? I wish there was some way to select and "lock" them to midi notes and when you drag the notes, it drags the midi cc as well, similar to how FCP locks audio and video together. Do other programs allow this functionality?
    Thanks once again for any help/tips you can provide!

    Functions > Include Non-note MIDI Events, but unfortunately there is no key command for it.
    I prefer to have a screenset with an Event List open, so I can Command-~ to the event list, Command-A, and then drag in the Matrix. Or double click the fist note in the Event List and enter a new Bar# for its position. Or Command-C and Command-V, then enter a new number for a copy...
    ...you get the idea.

Maybe you are looking for

  • Itunes 6.0 error -3

    help, yesterday when my itunes came up i recvd a prompt to update to 6.0 which of course i did. now it will not load, the qucik time 7.0.3 recvd a error code of -3, any idea what is going on? now my itunes will not run. any way to go back and get my

  • Download link for blob field on page

    I have a form based on table with a blob column: TEMPLATE blob The 'Display as' on the item is set to 'File Browse...' The Source Type is set to 'Database Column' and Source value or Expression is set to 'TEMPLATE' I want the 'Download' link to appea

  • A suggestion to moderators

    Dear moderators in MM forum, May I made a suggestion? I have received some feedback from my colleagues who are trying their best to contribute in this forum. That some time, which is not so frequent, that their points will be unassigned. I've explain

  • Hard drive bust so lost iTunes. HELP!!!

    Hi My laptop got dropped and Sony said it was the end of the world and gave me a new hard drive and could save nothing. I have a new one. I downloaded iTunes but when I plug in my iPod, it says to use it I will have to sync and I will loose everythin

  • How do I increase battery life

    HOw can I preserve battery usage