Why are my parameter values not setting in report?

G'day,
Like many others I am a developer who is new to crystal reports.  I have researched a lot for setting report parameters and although my code seem to be working when I open the report through code I'm always asked to re-enter the parameter values.
Here is my code:
behind button event
PersonalAttendance myReport = new PersonalAttendance();
ReportUtility ru = new ReportUtility();
ru.SetReportParameter(myReport, "reportName","the title");
myReport.Refresh();
myReport.SetDataSource([a data source]);
ReportViewer.ReportSource = myReport;
method behind custom class "ReportUtility()"
public void SetReportParameter(ReportClass rc, string FieldName, object parameterValue)
//Get the collection of parameters from the report
crParameterFieldDefinitions = rc.DataDefinition.ParameterFields;
//Access the specified parameter from the collection
crParameterFieldDefinition = crParameterFieldDefinitions[FieldName];
//Get the current values from the parameter field.  At this point
//there are zero values set.
crParameterValues = crParameterFieldDefinition.CurrentValues;
//Set the current values for the parameter field
crParameterDiscreteValue = new ParameterDiscreteValue();
crParameterDiscreteValue.Value = parameterValue;
//Add the first current value for the parameter field
crParameterValues.Add(crParameterDiscreteValue);
//All current parameter values must be applied for the parameter field.
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);
I'd really appreciate any assistance....
Cheers,
Brendan

Hi,
For better assistance on this question I would suggest you to post this issue on "Business Objects SDK Application Development".
Regards,
Sumit Kanhe

Similar Messages

  • Settings: Why are basic webservices settings not included (i.e. OneDrive behavioural settings are hidden in the system tray)?

    What is the idea of a new control panel if you can not in fact get an overview or kind of dash board?
    Settings includes PC+Cloud, i.e. Accounts let you do settings for the cloud, i.e. connect to your live account.
    But why are basic webservices settings not included (i.e. OneDrive settings is in the system tray)?
    Great consolidation is happening now between settings, control panel - i.e. getting rid of obfuscation, blur and complexity between legacy settings (control panel) and actual kind of settings. However do not recreate the problem by leaving the
    next step of integrating cloud settings across the middleware. What is the idea of a new control panel if you can not in fact get an overview or kind of dash board?

    Hi,
    Interesting issue, what about other configuration or settings? Do they work fine or keep reverting after a reboot? Have you tested this issue in another user account? What is the result?
    Regarding to unable to save settigs for current user hive, I doubt whether there's an application you installed recently or an malware\virus changes the permission of registry entry or value of registry keys like
    HKCU\Software\Classes which causes this issue.
    Yolanda Zhu
    TechNet Community Support
    Hmm... I don't understand. Nothing is reverting after a reboot, as well I'm
    not unable to save settings in the current user's hive. The correspondent registry keys can be saved perfectly fine and they are
    deleted, not reverted after a reboot. I pointed to the exact code that does it, the code is located in Microsoft DLL with all certificates and digital signatures intact. Permissions obviously don't matter, since svchost.exe is executed with the highest
    integrity level and under the System user account, the keys in question inherit permissions, which allow System to do whatever it needs without restrictions
    by default, you can't change it to allow more.
    So can you explain how it can be some malware?
    The issue is intermittent, I don't have a 100% repro, therefore “testing” under another user account is doubtful.
    Dei nostra Matrix est.

  • Why are my Whatsapp photos not showing in the Camera Roll? I have checked all the settings and everything seems ok.

    Why are my Whatsapp photos not showing in the Camera Roll? I have checked all the settings and everything seems ok.

    Have you enabled "Save incoming Media"
    in your whastapp\Setting\Chat setting\Save Incoming Media?

  • Why are my exported files not going to me email?  I have used 3 different ones.

    Why are my exported files not going to my email (receipts & business card)?  I have used 3 different ones...2 yahoo and 1 hotmail.  I have checked spam box also.

    For the Receipts app I chose to export the info as a PDF file..an email was requested..I entered info and clicked send.  For the Business Card app I chose Send, not Print..an email was requested..I entered info and clicked send.  I haven't received anything, not even in my spam folder.

  • Why are my five websites not showing up in my CC browser window - CC Account Panel?

    Why are my five websites not showing up in my CC browser window - CC Account Panel?
    I have a full account!
    g

    Gmpulaski which web sites are you referring too?  Is it the five Business Catalyst sites included with your membership?

  • Why are my video edits not being saved on Photoshop CS6?

    Why are my video edits not being saved on Photoshop CS6?
    I made a TON of edits in a video group, then duplicated that group into another file... and all my edits are gone.
    I spent hours working on this, so please let me know what the hell happened and how I can make sure it never happens again...
    also--why would CS6 come with such a devastating feature?!?! Who came up with this???

    Welcome to the forum.
    I did not see any reference to Save, Save_As, or Save_As_a_Copy. Did you use one of those?
    Good luck,
    Hunt

  • Why are my app updates not transfering to my ipad when i sync with my desktop?

    Why are my app updates not transfering from my desktop when I sync?

    I have updated my apps on my desktop and then I am syncing my Ipad. I just transferred everything to a new desktop and now my update to my games, etc. Are not coming across to my Ipad like they used to. I am not receiving an error message. I can transfer my new purchases to my desktop, but it isn't going the other way.

  • My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?

    My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?

    linda mariefromharper woods wrote:
    My time capsule is full and when I attempt to back up, I only receive a preparing back up message and the earliest and most recent back up dates remain the same.  Why are the oldest backups not being deleted to make room for the newest backups?
    It may be in the process of making room.  What version of OSX are you on?    (That process can be excruciatingly slow on Leopard or Snow Leopard backups over a network;  Lion has improved it greatly.)
    A clue may be lurking in your logs.  Use the widget in #A1 of  Time Machine - Troubleshooting to display the backup messages from your logs.   That should help you figure out what's going on.  If in doubt, copy and post them here (but if the same ones repeat over and over, drop most of the duplicates).
    If you can, connect via Ethernet; it will be 2-3 times faster.

  • My iPhone 6 shows "No Service".  Why?  My device is not set to Airplane Mode and I've already checked my Cellular settings to make sure that's all right.

    My iPhone 6 shows "No Service".  Why?  My device is not set to Airplane Mode and I've already checked my Cellular settings to make sure that's all right.  Obviously I can't call Verizon to find out why I have no service, and their online Live Chat isn't working.  What to do?

    Try this link:
    iOS 8.0.1 Causing No Service, Touch ID Issues on iPhone 6/6 Plus, Apple Support Recommends iTunes Restore - Mac Rumors

  • Why are my mins usage not on line its been about a mouth now

    why are my mins used not on line,it has been about a month now. it shows message that i don't even have

    Here are a few things that you check and can try.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.

  • Why are the jpeg icons not visible in finder when created by PS6

    Why are the jpeg icons not visible in finder when created by PS6

    hi
    I have faced the same problem ... I didn't find the solution yet
    but please visit this link http://www.oracle.com/technology/products/forms/pdf/webicons.pdf
    you'll get everything you want to know
    I'm not try it yet.
    Best wishes

  • HT4098 Why are auto-renewing subscriptions not available in Israel?

    Why are auto-renewing subscriptions not available in Israel?
    Are non-renewing subscriptions available for Israel?

    Apple has not said why. The terms of use of this forum includes:
    Stay on topic. Apple Support Communities is here to help people use Apple products and technologies more effectively. Unless otherwise noted, do not add Submissions about nontechnical topics, including:
    Speculations or rumors about unannounced products.
    Discussions of Apple policies or procedures or speculation on Apple decisions.
    It handled on a country by country basis

  • HT4098 Why are auto renewing subscriptions not available in Israel? Is there any solution?

    Why are auto renewing subscriptions not available in Israel? Is there any solution to this, any way to subscribe?

    Probably the same way no gift cards are allowed, and severe limitations on books & apps, etc.

  • REP-0302: Parameter 'SUPPLY_SUBINV' not found in report

    Hi All,
    I am encountering "REP-0302: Parameter 'SUPPLY_SUBINV' not found in report" error while running the report.
    Cross checked my report and there are no references for this in pl/sql or my rdf query.
    Can anyone help me on this..
    Thanks
    gt1982

    Hi All,
    Issue is solved...
    Thanks..

  • Value not displaying in report whereas it returns in plsql developer

    HI

    Duplicate post.
    value not displaying in report whereas it returns in plsql developer
    value not displaying in report whereas it returns in plsql developer

Maybe you are looking for

  • A lot of problem for an error: Cannot start Managed Server through NM

    Hi, all. Thank for coming here. My main problem is cannot start Manager server through Node Manager. I've configured with the same way on my friend's network and It's works but It's wrong with mine. my weblogic domain: Machine 1: Administration Serve

  • How can I store Templates that will show on New/Template

    I downloaded a couple of templates -- one of them in zip format. I expanded them and placed them in /templates in a folder of their own. Prior to that, the Templates folder had three folders: images, video_controls and video player. Where does Dreamw

  • Replace all occurrence with range - issue

    Hi, I have a range with "letters" like ":" or "-" or "." Note: all entries are with option = "equal" Now i need to "replace all occurrences" of "all entries in that range" with space. idea: loop at range assigning <range>. replace all occurrences of

  • When typing on my iPad the screen does not move up so I can see what I am typing.

    Under normal operation, when using the virtual keypad, iOS shifts the screen so that it's possible to view what you are typing all the time. On my iPad if the text I am typing is below the keyboard, the screen is not automatically moved up. On some f

  • Help with this exception calling a WS

    Hello there, i have a stand alone java application that consume a WS deployed in a WLS. This call works before... i made some changes in the WS but to the logic not the methods signatures... now i have problems when i want to call... i get this weird