parameters

how to pass/transfer out parameter as reflection? - visual studio extensibility c#

I have an out parameter. Is it possible to transfer it as reflection? Can you give me some examples how to do that? ...

JAX-RS/Rest: Set a parameter multiple times, or use a single comma-delimited parameter?

I read that the HTTP way to pass an array in a request is to set a parameter multiple times: 1) GET /users?orderBy=last_name&orderBy=first_name However, I've also seen the comma-delimited parameter (and I feel this is "cleaner"): 2) GET /users?orderBy=last_name,first_name I want to implement multi-sorting (ordering users by last_na...

Update URL parameter with javascript, without ruining the history?

I'm looking for a way to update the url in the status bar.. I have a gallery, and when you click your way through the gallery I want the image ID to show up in the URL, so that the user can link directly to the image.. I've read about using hash and so. but as far as I've tried it, that "ruins" the history. If I click the back-button in...

MDX Syntax for Selection of Numerous Field Values

Hi, I'm writing an SSRS 2005 report based on our cube that contains a prcoedure dimension. I need to setup the report such that it contains only those patient records that has one or more defined procedure codes. My research thus far has pointed me toward creation of a query parameter in my report's dataset. Would this be the corre...

method parameter with multiple interface restrictions.

Hi, In C# it's possible to defined a method parameter with two interface restrictions. This with bounds. For example. interface IA { int A {get;} } interface IB { int B {get;} } void Foo<T>(T param1) where T: IA, IB {} So two interfaces, and the first parameter (param1) of the method Foo should implement both interfaces. But ...

Pass a Paramater to a Class in CodeIgniter

Hi, I'm still learning my way around PHP and CodeIgniter, but I'm trying to set up an email controller. The only problem is that most tutorials show how to set up the email.php controller, but hardcode the email address and message. In the project I'm working on, I will be sending emails for many things (registration, password reset, e...

Object Sender and EventArgs

Consider this function signature: Private Void TextBox1_TextChange(Object Sender, EventArgs e) As far as my knowledge goes I understand it as below. Private is a modifier Void is the return type TextBox1_TextChange is an event name. Maybe I am wrong in the above case as I just started practicing in C#, Visual Studio 2005. What is...

Passing variadic class template's sub-classes to function that only accepts the base class (via parameter pack deduction/inference)

**I've gotten a few suggestions to make my function pure generic, which would work, but I'd prefer limiting the function to only accept Base and its children. Having trouble making a function that can accept arguments of a variadic template class base type, while the function will actually be called with classes that derive from Base. ...

New to C and C Structures -- How to take a struct as a parameter in a function.

New to StackOverflow and new to C. I'm trying to take a struct as a parameter in a function 'add_fields', which adds the first two int fields 'a' and 'b' and puts the result in int field 'c'. Not getting anything from the compiler, so obviously I'm doing something wrong. I just don't know what. Any help would be appreciated. #inclu...

How do I submit a boolean parameter in Rails?

I'm submitting a parameter show_all with the value true. This value isn't associated with a model. My controller is assigning this parameter to an instance variable: @show_all = params[:show_all] However, @show_all.is_a? String, and if @show_all == true always fails. What values does Rails parse as booleans? How can I explicitly spe...

java.sql.SQLException: Missing IN or OUT parameter at index::4 error occurs with preparestatement

strInsertQuery="INSERT INTO SYNPACKAGEFREEUSAGEMAPPING (PACKAGEID,SERVICEID,PRIORITY,MAPPINGID,ATTRIBUTEVALUE,FREEUSAGE,UOM,PARAMSTR1,UNITCREDITPOLICYDETAILID) VALUES (?,?,?,?,?,?,?,?,?)"; newPstmt=newCon.prepareStatement(strInsertQuery); newPstmt.setString(1,strProductId); newPstmt.setString(2,strUPGServiceId); ...

Xslt1.0: passing a node paramter rom a template to another template

I am trying to pass a node as a parameter from a named template to another named template but it doesn't work. It works in the first one, but not in the second level call. It complains about trying to convert from java.lang.String to node-set. I am using xslt1.0. Any ideas? Thanks <xsl:template match="whatever"> <xsl:call-templat...

Add a parameter to an MDX-Query

Hello, I am building a Report in MS Visual Studio which gets its data from a cube. This has amongst others a dimension called Player. I want to hand over a parameter 'Name' and receive the number of games the player has played. But I do not get the parameter integrated in the MDX-query I use. I had defined the parameter and in the query...

"Store" a type parameter for later use in C#?

I'm creating a Settings object in my app, used for storing user-defined settings and whatnot. I plan on using various datatypes for my setting fields (ints, strings, enums, anything Serializable, really). I'd also like, if possible, a type-safe way to set any of the settings. My proposed method would be doing something like this: Tuple...

Old-school Pascal question about how to cast variant record function parameters properly

I am trying to create a function with a variant record-type parameter that allows inline-casting or assignment, as such: type rectype = ( VT_INT, VT_CHAR, VT_BOOL ); rec = record case t : rectype of VT_INT : ( i : integer ); VT_CHAR : ( c : char ); VT_BOOL : ( b : boolean ); end; procedure h...

iReport: Passing parameters from a main report query to a dataset query for a table or list

I understand how to pass parameters from a main report to a subreport, since there's a specific field for this in the subreport object. However, I'd like to do the same thing with a table or list object as a consumer (rather than a subreport). Is it possible? For example, say I have a parameter of 'customerID' that I can populate with a...

Can't pass param in PHP

I'm a javascript guy getting too deep into php (even though this question is not deep). I am passing two different variables in the url from file to file. One goes across fine while the other does not. I have 2 files. upload.php and uploadfiles.php. The params help construct the destination to which the files are uploaded. The two pa...

[Django] Insert params into database as full object?

hi, un rails i can simply insert the params into the database with one command, when all form-field names are the same like the model-field names. is this possible in django as well, or do i have to set each param individually. i have like 20 fields, so it's a bit of a mess.. :) something like: blah = Contact() blah.content = params[]...

C Parameter Array Declarators

In C99 there are variable-length arrays, and there can be static qualifiers (and type qualifiers) in parameter array declarators: void f(int i, int *a); void f(int i, int a[]); void f(int i, int a[i]); void f(int i, int a[*]); // Only allowed in function prototypes. void f(int i, int a[static i]); Since array function paramete...

Select xsl element based on index that is defined in a param

I want to select an element by index with the indexed number being passed in with a param, the param is being passed in via PHP. Here's what I am trying: //PHP $xslt->setParameter('','player',$player); $xslt->importStylesheet( $XSL ); print $xslt->transformToXML( $data ); //xslt <xsl:param name="player" data-type="number"/> <template...