13
голосов
2ответов
15276 просмотров

Do not understand passing parameters in seam

As I debug my seam application, it dawns on me that I don't really understand how parameter passing works. The following terminology really has me confused. So I am asking this very general question in the hopes of getting a good explanation of what works with what and what certain things are f...

0
голосов
2ответов
1989 просмотров

Reset input values from GET url params using jQuery

This may seem like an odd one, but I want to be able to fill in a static web form using values passed in via a GET param list. Say I have a page, 'self.html': <form action="self.html" method="get" accept-charset="utf-8"> <label for = "40">New Question?</label> <input t...

11
голосов
2ответов
13845 просмотров

How do I recognize command-line parameters in my Delphi program?

I plan to run specific application commands every X days using Task Scheduler. Do I have to write support for command-line parameters first, so Scheduler can execute it? If so, does anyone know any good command-parameter components?

0
голосов
2ответов
2106 просмотров

Calling Client-Side WCF Service With Type List<of t></of>

I am designing a multi-file upload service that also shows upload progress for each file. If I was to design my WCF method as a SOAP contract, I would do something like this: var request = IService.UploadMethod(List&lt;Upload&gt; request); But, how do I pass the parameter ""request"" of type ...

0
голосов
1ответов
1720 просмотров

How to Export a PDF using .NET and Oracle and Dynamic Parameters

I am having difficulties getting the following to export. I am running CR2008SP2 and ASP.NET 3.5 against an Oracle 10g database. If i do not set any of the parameters, then the page works great, and pumps out a pdf(well, except for the fact that because the parameters weren't specified, its not ...

3
голосов
5ответов
181 просмотров

Is there an easier way of passing a group of variables as an array

What I'm trying to do is to write a dedicated method for my StreamWriter instance, rather than make use of it at random points in the program. This localises the places where the class is called, as there are some bugs with the current way it's done. Here is what I have at the moment: public st...

0
голосов
1ответов
746 просмотров

How to Assign 2 different PARAMETER in crystal report?

select (distributor_code+ '-' +master_dealer_code+ '-' +state_code+ '-' +dealer_code) as agent_code, agent_type, company,contact_person, status, created_date as date, (CASE WHEN contact_mobile_no IS NOT NULL THEN contact_mobile_no WHEN contact_mobile_no IS NULL and contact_office_no IS NOT NU...

0
голосов
1ответов
4783 просмотров

C# SQLite error Insufficient parameters supplied to the command

I get the error SQLite error Insufficient parameters supplied to the command when running an insert statement in my program. However, I've got it narrowed down to it will only occur if I try to insert data into two different tables in succession. Meaning I insert data into one and everything in...

3
голосов
2ответов
3786 просмотров

Why is PHP not seeing my query string?

This phpinfo() demonstrates the problem. I'm passing the URL a query string of: ?qwerty=asdfg As a result, I'm expecting it to list these two PHP variables: _REQUEST["qwerty"] asdfg _GET["qwerty"] asdfg And also this query string: _SERVER["QUERY_STRING"] qwerty=asdfg However, it's not w...

1
голосов
3ответов
5396 просмотров

Problems passing jQuery $.post a variable as a parameter

I am trying to send a name:value pair to a php script using the $.post object in jQuery where both name and value are variables. I have sent the variables to the console in FF, so I know they are being set correctly, but when I view the headers being sent, only the value variable is being evalua...

3
голосов
4ответов
4097 просмотров

Optional parameter for reference to pointer?

How do I declare the second parameter as optional? template &lt;typename T&gt; inline void Delete (T *&amp;MemoryToFree, T *&amp;MemoryToFree2 = ){ delete MemoryToFree; MemoryToFree = NULL; delete MemoryToFree2; MemoryToFree2 = NULL; } I tried several things after the = o...

2
голосов
2ответов
6556 просмотров

How can I access parameters passed in the URL when a form is POSTed to my script?

I've run into an issue with mod_rewrite when submitting forms to our site perl scripts. If someone does a GET request on a page with a url such as http://www.example.com/us/florida/page-title, I rewrite that using the following rewrite rule which works correctly: RewriteRule ^us/(.*)/(.*)$ /cgi...

8
голосов
2ответов
2172 просмотров

How to pass parameter into code-template in eclipse-plugin

I want to create a plugin which defines a new code template (like this blog post). How can I pass a parameter into the template? like ${name:param}?

0
голосов
1ответов
1267 просмотров

The "abc" parameter is missing a value

I'm having problems with a SQL Reporting Services 2005 report prompting for a parameter value, which is set as a list of values from a query. When navigating to the report directly, or using a "jump to hyperlink" and specifying the reports url, it works fine. However when it's accessed via a li...

5
голосов
10ответов
411 просмотров

Is this the way to go about building Perl subroutines?

So I've had a simple ucwords function for Perl which I've had a while, and wanted to expand it, this is what I've come up with, is this the way I should be building my functions to handle optional parameters? Original: sub ucwords{ $str = @_[0]; $str = lc($str); $str =~ s/\b(\w)/\u$...

2
голосов
7ответов
4051 просмотров

How do I get the command-line parameters for certain button clicks in a application?

I want to start a program using Delphi code, and "command" it to perform an action, in this case a button click. I know you can start a program using the command line, but I would need the right paramaters for the button click. How or where can I find it?

3
голосов
1ответов
2977 просмотров

Calling a SQL Server 2000 Inline Table-Valued Function from Excel 2003 / MS Query

A large part of our user base accesses corporate data by building ODBC queries inside Excel 2003 using Microsoft Query. For the more complex stuff they often get me involved. There have been a number of occasions whereby I've decided that the most logical way to extract certain data would be to...

2
голосов
5ответов
17116 просмотров

Crystal Reports parameter selection limit?

I'm trying to make a Crystal Reports 11 report off an Oracle database that's grouped by user. I've got over one thousand users. I want to create a parameter field that prompts the person to select which users they would like to view the results for. However my parameter selection field is only...

14
голосов
1ответов
17594 просмотров

Receiving CommandParameter Value in MVVM

I am binding my command like: &lt;Button Command="{Binding NextCommand}" CommandParameter="Hello" Content="Next" /&gt; Here, I also bind its CommandParameter property, now how to fetch its value from NextCommand. public ICommand NextCommand { get { i...

0
голосов
1ответов
293 просмотров

Audit Table using Triggers

DROP TABLE IF EXISTS `actividades`.`act_actividad_audit`; CREATE TABLE `actividades`.`act_actividad_audit` ( `fe_creacion` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `usr_digitador` char(10) NOT NULL, `ip_digitador` char(15...

0
голосов
1ответов
1242 просмотров

innerHTML flash video not loading problem

when the "preview" link is clicked it is meant to change the video script and video swf using the innerHTML method, however in IE 7+ the flash seems to appear but never loads the video i.e. it just stays white. &lt;script&gt; function changeVideo(filename,script) {document.getElementById('video'...

2
голосов
10ответов
5281 просмотров

What arguments does the sizeof operator take in C?

[Original title referred to 'sizeof function'.] I tried these and they all worked: char *p; printf("Size of *p is %d\n",sizeof(*p)); //result =1 printf("Size of p is %d\n",sizeof( p)); //result =4 printf("Size of p is %d\n",sizeof(&amp;p)); //result =4 I wonder why the first printf is ...

1
голосов
2ответов
1740 просмотров

Double &amp; Float method parameters execution when called in C#

Here's a small snippet of code, when called it outputs 'double'. Why? What's the reasoning behind this. Why doesn't it print 'float'? class source { static void Main() { Receiver r = new Receiver(); r.Method1(1.1); } } class Receiver { public virtual void Met...

2
голосов
6ответов
511 просмотров

How to automatically tune parameters of an algorithm?

Here's the setup: I have an algorithm that can succeed or fail. I want it to succeed with highest probability possible. Probability of success depends on some parameters (and some external circumstances): struct Parameters { float param1; float param2; float param3; float param4; // ....

1
голосов
3ответов
278 просмотров

How can I validate a function passed to a method in Ruby?

I'm writing a library to humanize bytes in Ruby (e.g. to turn the byte count 1025 into the string 1.1K), and I'm stuck on one element of the design. The plan is to extend Numeric with ahumanize method that returns a human-friendly string when called on a number. After looking at the source of N...

28
голосов
4ответов
37152 просмотров

Rails: Pass parameters with render :action?

I have a form that displays differently depending on the parameter it was called with. Ex. testsite.local/users/new?type=client So if type was a or b, the form would display different fields. My problem is when the form is filled out incorrectly, because if the user couldn't be saved corrent...

2
голосов
2ответов
3968 просмотров

Rails named routes using complex parameter names

I need to create a pretty route for an action that is expecting ugly nested parameter names (this is set and not something I can change at this time). So instead of http://domain.com/programs/search?program[type]=leader&amp;program[leader_id]=12345 I want http://domain.com/programs/search/le...

1
голосов
2ответов
1859 просмотров

Can I pass a parameter to an Adobe Air app installer and use it at first startup?

I need to offer the opportunity to install a personalized Adobe Air application from a website. Every user should be able to download an individual version of the app out of their user profile. Therefore i need to pass an id (e.g. the user id) to the installer which should be available at the fir...

52
голосов
3ответов
8357 просмотров

Which overload will get selected for null in Java?

If I write this line in Java: JOptionPane.showInputDialog(null, "Write something"); Which method will be called? showInputDialog(Component parent, Object message) showInputDialog(Object message, Object initialSelectionValue) I can test it. But in other cases similar to this, I want to know...

5
голосов
1ответов
11740 просмотров

How to send parameters on an Https POST with C#

I have asked here how to make the https post, and now that works fine. Problem now is How to send a parameter, name query, wich is a json string: {"key1":"value1", "key2":{"key21":"val21"} } What I'm doing and doesn't work is: HttpWebRequest q = (HttpWebRequest)WebRequest.Create(Host + ":" + Port...