parameters

SRS Reports: URL Parameters, Multiple Values

Similar to this question: link However I have already mastered that. My problem is a new report we just added at work has values for parameters (i.e.:10-New, 20-Cancel, 30-Complete). For the life of me, I cannot figure out how to pass multiple values for the same parameter. (so from the previous example, choosing 10-New and 30-Complete...

Generic parameter type

Hello, I have a question concerning a generic type parameter. Let's say I have the following definitions in my domain model: abstract class Entity<TId> { public TId Id { get; private set; } /* ... */ } class Person : Entity<long> { public string Name { get; set; } /* ... */ } Let's say now I want to create a method t...

Is there a way to send data to a BackgroundWorker after it has been started?

I know you can pass arguments through the RunWorkerAsync function call when you first start the backgroundworker, but can you pass it data after its already been started? Or would I need to create my own form of concurrency to handle passing data to it from a different thread? ...

Conversion of C# to VB.net will not compile <param name="x"...

I cannot figure out how to convert this code from C# to VB.net. It says - Argument not specified for parameter ‘y’ in the calling code below. Any suggestions? Thanks Calling CODE: list.Sort(Utility.CompareContactListsBySortOrder) - error here in VB CODE: /// <summary> /// Defines the compare criteria for two Contact List...

Ensuring correct Double Pointer passing method at compile-time in C++

Hi there, in the past we encountered various memory-leaks in our software. We found out that these happened mostly due to incorrect usage of our own "free"-Methods, which free Queue-Message-Data and the likes. The problem is, in our deepest tool-functions there are two methods to free up dynamically allocated memory, with the followin...

How do I specify test method parameters with TestDriven.NET ?

Hi, I'm writing unit tests with NUnit and the TestDriven.NET plugin. I'd like to provide parameters to a test method like this : [TestFixture] public class MyTests { [Test] public void TestLogin(string userName, string password) { // ... } ... } As you can see, these parameters are private data, so I don'...

Actionmailer passing more than one argument.

Hi I am trying to figure out what I am doing wrong with ActionMailer. I need to be able to pass more than one argument to a mailer but continue to receive the error "wrong number of arguments (1 for 2)". My code is: soldier_controller def create @soldier = Soldier.new(params[:soldier]) @battalion = Battalion.find(params[:battalion_...

Spring 3.0M4 and passing objects as parameters to POST

Hi guys, I'm quite sure this has to be in the docs somewhere, but I've looked for days and haven't spotted it. I'm probably staring myself blind when it's right in front of me, so sorry for asking an abvious question, but.... @RequestMapping(method = RequestMethod.POST) public ModelAndView post(@ModelAttribute("user") User user) { Mo...

Groovy findAll closure parameters

Hi All! I'm want use groovy findAll with my param to filtering closure filterClosure = { it, param -> it.getParam == param } How now i'm can call this closure in findAll? Something lik bellow? myColl = someColl.findAll(filterClosure ??? ) ...

What is the purpose of the "out" keyword at the caller (in C#)?

When a C# function has an output parameter, you make that clear as follows: private void f(out OutputParameterClass outputParameter); This states that the parameter does not have to be initialized when the function is called. However, when calling this function, you have to repeat the out keyword: f(out outputParameter); I am wonde...

How to create dynamic sql statment based on single XML parameter.

Hi, i need to create a dynamic SQL statement that selects fields based on an XML parameter. Say i have a stored proc with 1 param - [@FIELDS XML] that contains field names. eg... Field 1 = Name Field 2 = Address etc... ..in reality there would be up to 50 fields and i only want to report on the ones in the XML parameter. how can i m...

How to determine size property for stored procedure output parameters in C# data access layer

I've made a data access layer modeled shamelessly off of Castle Project's ActiveRecord implementation. In order for it to gain acceptance, it must support the extensive library of stored procedures in use at my organization, which have been written to use every input/output structure imaginable, including return values and output paramet...

Having problems with anonymous functions in JavaScript.

jQuery.fn.testeee = function(_msg) { alert(_msg); $(this[0]).overlay({ onBeforeLoad: function() { alert(_msg); } }).load(); }; $("#popup").testeee ('test'); $("#popup").testeee ('another_test'); This displays: test test another_test test The alert() inside de anonymous function asigned to onBeforeLoad keeps showing "t...

Compilation Error with Generic Type T when passed to a function twice

I'm probably missing something very basic but I cannot figure out why I get a compilation error with a certain code and I don't get it in an almost identical code. So I do get an error here: //parent.GetChildren() returns a IEnumerable<IBase> F1<T>(T parent, Func<string, T, string> func) where T: IBase { F1(parent.GetChildren(), ...

Passing an int array of variable length as a function parameter in Objective C

I have the following code which works fine... int testarr[3][3] = { {1,1,1}, {1,0,1}, {1,1,1} }; [self testCall: testarr]; Which calls this function: - (void)testCall: (int[3][3]) arr { NSLog(@"cell value is %u",arr[1][1]); } I need the array to be of variable length - What is the best way to declare the function? Us...

Get URL parameter with jQuery

I'm looking for a jQuery plugin that can get url parameters, and support this search string without outputting Javascript error: malformed URI sequence. If there isn't a jQuery plugin that supports this, I need to know how to modify it to support this. ?search=%E6%F8%E5 The value of the url parameter, when decoded, should be: æøå (th...

How to remove get param on form submit?

Can you advice me how to remove get parameter (input text) without removing the value of the input or disabling it? Is this possible at all? ...

Get SQL statement after parameters added

Is there a way (in MySQL) to get the pure SQL statement after parameters have been added? I'm having issues with one of my statements once I start using parameters, and I want to see what's being executed. Of course it has to do with dates. Using MySQL .NET Connector. I have access to MySQL server, and I use SQLYog to administrate. Tha...

use ${property} in a properties file ?

Hi, look at my "file.properties": key1= My name is key2= ${key1} Martin ! Why when I get the value of "key2" my result is "${key1} Martin !" unlike "My name is Martin !" => I program in Java 6 => I use java.util.Properties ...

Is it possible to convert a PHP function's parameter list to an array?

Suppose I have a function: function my_function($a, $b, $c) { ... } I want to be able to play with my parameter list as if it were an array - as with here, using a fake $parameter_list variable: function my_function($a, $b, $c) { foreach ($parameter_list as $value) { print $value."\n"; } ... } How can I do t...