parameters

Crystal Reports Change database connection dynamically (c#) - Missing parameter values

Hi there! I will put the sofware used first, just in case it helps a bit: Microsoft Visual Studio 2005. ,Microsoft Crystal Reports(year 2005), Crystal reports view as pdf from an webapplication (c#). I have a crystal report document, created by the Crystal Reports IDE which has 2 parameters and setting them in preview mode work. I clo...

Java Convert Array to Parameters

Is there a way to convert an array to a list of parameters..? main(){ //"a" is an array or a list or some collection myPrint(a.SomeMethod); } void myPrint(int a){ //Do Stuff to arguments } void myPrint(int a, int b){ //Do Stuff to arguments } void myPrint(int a, int b, int c){ //Do Stuff to arguments } I want to convert "a" i...

Passing parameters through form to Controller (CakePHP)

Okay, so I'm fairly new to CakePHP. This is the setup: I've got a Model (Reservation), and a controller, (ReservationController). I'm trying to provide a simple add() functionality. The request url is: www.example.com/reservations/add/3 Where 3 is the ID of the event this reservation is for. So far, so good. The problem is, the form ...

HTTP post: url parameters and form data

When I do http POST request via Web form, Is there any difference(practically or theoretically) between parameters specified in the URL and parameters passed with form on the server side? Can I do whole POST with url parameters and expect same result as with form inputs? Like: <form action="/?id=2" method="post"> <input type="...

Parameters for Structs in Scheme

I have this struct for people: (define-struct person ( first ; a string: first name last ; a string: last name sex ; a symbol: 'male, 'female eyes ; a symbol: 'blue, 'brown', 'green hair ; a symbol: 'blonde, 'brown, 'black, 'red mother ; a person: empty if not known f...

How can I mark a specific parameter as obsolete/deprecated in C#?

I would like to be able to keep a C# API the same as it is now, but simply deprecate one of the parameters in a method call. Is it possible to do so, or do I need to create a new method without the parameter and mark the original one as Obsolete? ...

How to display full URL when setting report parameters

Hello, I have a report (in SQL Server Reporting Services 2008) that has multiple parameters, but works very well. However, one of my users (my boss, of course) wants to be able to e-mail a link to the report using the parameters they have specified. They do not want to send the report itself, but just a link to it. However, as you se...

How to pass multiple parameters in thread in VB

I'm looking to pass two or more parameters to a thread in VB 2008. The following method (modified) works fine without parameters, and my status bar gets updated very cool-y. But I can't seem to make it work with one, two or more parameters. This is the pseudo code of what I'm thinking should happen when the button is pressed: Private ...

Best practices for a class with many members

...

$.ajax ignoring data param for DELETE requests

I just updated from jQuery 1.3.2 to 1.4.3, and I'm seeing some new behavior when making AJAX DELETE requests. For some reason, the data being passed in my data parameter is not being sent to the server. For example: $.ajax({ url: '/example', data: {id: 12}, type: 'DELETE' }); Ends up sending a DELETE request to /example ...

Which event to add programmatic parameter to sqldatasource in asp.net vb

I am trying to add a selectparameter to my sqldatasource (SqlDS) using this code: SqlDS.SelectParameters.Add(New Parameter("@approver", Data.DbType.String, "approved")) The error I keep getting is System.Data.SqlClient.SqlException: Must declare the variable '@approver'. Is there a specific event I need to use this code within? Than...

How to pass parameters to rest web service without using the (?) Symbol ?

I have developed a rest web service by using the following link http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/simplerestservice11172009221218PM/simplerestservice.aspx Now, I am passing parameters to this rest web service by using URL. I am passing parameters as follows http://localhost:50362/PMTSRest/Service.svc/GetProjects?...

How will be object[] params interpreted if they are passed into another procedure with object[] params?

If we have two procedures: public void MyFirstParamsFunction(params object[] items) { //do something MySecondParamsFunction(items, "test string", 31415) } public void MySecondParamsFunction(params object[] items) { //do something } How will second procedure interpret the items from first? As sole objects, or as one object...

mismatch in formal parameter list

\a3.cpp(75): error C2563: mismatch in formal parameter list im certain im passing the fuction checkout with 3 doubles, i dont know why im getting the error i am. Please help #include <iostream> #include <cstdlib> using namespace std; const double peanut_PRICE = 1.80; const double peanut_SHIP = 0.50; const double BOOK_PRICE = 9...

implicitly pass parameters to class

I am writing a class in Android that requires certain parameters from the class that calls its functions. For Example my class is called "DoStuff" DoStuff has 3 functions: public static doThis(canvas, tick, toggle, something); public static doThat(canvas, tick, toggle, something, something); public static doTheOther(canvas, tick, togg...

Asp.net add content automatically

Hi, For my site I want to have a page which I will call programatically to add content. The parameters that I will need are some strings and the content of a file. I will invoke that with WebRequest object form .net. How can I send the string parameters and the content of a file in a post request and read them in the aspx page? Is ...

Representration of a Empty Class Array

Hi Guys, I am actually looking at getting the method, whose name is stored in the string "methodName", from the Class "CC1" using Java Reflection. Method actualMethod= CC1.getMethod(methodName, parameterTypes); This is the syntax. The problem is the method takes no parameter. How do I represent that in the parameterTypes ? where p...

How to pass parameter to a c console program using Xcode ?

Hello, with other IDE, you can pass parameter to the program via the IDE (it save times instead of typing hello.c parameter1 parameter2 in the shell) Is there any way to pass parameters to the program trhough the Xcode IDE instead of just clicking on "RUN" then "CONSOLE" (which provide no arguments to the program) Thanks ...