parameters

Access: How to pass parameters to report when WHERE clause is embedded in complex SQL

感情迁移 提交于 2019-12-10 11:47:10
问题 I know the question of how to pass parameters has been asked a while back with the this Previous Stack Overflow question However my situation involves SQL that is a bit more complex and cannot make use of the "where clause" filter available when opening a report. My SQL statement is an aggregate that produces a single row with one field for each aggregate. I have two parameters "@StartDate" and "@EndDate" that I need to pass into the query. SELECT q1.CasesAssigned, q2.WarningsIssued FROM

Dynamically creating hash key name in Rails 4

家住魔仙堡 提交于 2019-12-10 11:44:46
问题 Is it possible to dynamically create key names of a hash? I'm passing the following hash parameters: params[:store][:store_mon_open(5i)] params[:store][:store_mon_closed(5i)] params[:store][:store_tue_open(5i)] params[:store][:store_tue_closed(5i)] . . . params[:store][:store_sun_open(5i)] params[:store][:store_sun_closed(5i)] To check if each parameter exists, I'm using two arrays: days_of_week = [:mon, :tue, ..., :sun] open_or_closed = [:open, :closed] But, I can't seem to figure out how to

SSRS passing parameter to subreport

扶醉桌前 提交于 2019-12-10 11:41:35
问题 I have 2 tables which both have the column "countyID" I have a main report that brings up reports based on a query like: SELECT countyID, name, address, state FROM TableA ---I have a parameter set on TableA where you select the Name to view its report. I then have a second report based on a query like: SELECT * FROM TableB I want to use the second report as a subreport, as in, when you select the Name for the top report it should then list all records from TableB with the same CountyID. Is

How to change the value of a global variable in a PL/SQL package dynamically?

为君一笑 提交于 2019-12-10 11:36:13
问题 In one of the PL/SQL packages in our Oracle database, there's a global variable, g_file_path, that points to a location on the system where certain files will be stored: create or replace PACKAGE xyz_package AS ... g_file_path VARCHAR2 (80) := '/usr/tmp'; ... This variable is used in various UTL_FILE operations throughout the package. Unfortunately, the path chosen is inadequate, and I need to figure out how to set a path dynamically depending on the environment where the database is running,

How to Use Multiple Parameters in a MySQL *Prepared* Stored Procedure

僤鯓⒐⒋嵵緔 提交于 2019-12-10 11:27:34
问题 Although there are some good examples of multiple parameters being used in MySQL stored procedures, I have been unable to find a simple example that shows how to use them in a stored procedure that is prepared . The code below returns 'Incorrect arguments to EXECUTE' when calling it using: `call test_parms('my report','example.com'); I've tried with and without '@' in front of the parameter names (just gives an unknown column error), and different variations of the code . What am I doing

dynamic parameter passing to execlp() function in C

巧了我就是萌 提交于 2019-12-10 11:23:53
问题 To make things simple, I have modified my program. What I want to do is accept any number of parameters during runtime and pass it to execlp() . I am using fixed length 2d array m[][] such that any unused (remaining) slots maybe passed as NULL to execlp (in this case m[2][] ). #include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<string.h> int main() { char m[3][5], name[25]; int i; strcpy(name, "ls"); strcpy(m[0], "-t"); strcpy(m[1], "-l"); //To make a string appear as NULL (not

Jenkins: How to get node name from label to use as a parameter

人盡茶涼 提交于 2019-12-10 11:13:37
问题 I need to give a server name to a maven build. During the maven build this server name will be used to make a call that server do some tests on that server. Our servers have jenkins slaves on them and is grouped using labels Example Slaves/Node | Label Server1 | BackEndServers Server2 | BackEndServers Server3 | FrontEndServers Server4 | FrontEndServers With Elastic Axis plugin i can say run my Jenkins job on this Node Label (for example on BackEndServers) and the same project will be executed

JSF Passing parameter and redirecting to view scope

丶灬走出姿态 提交于 2019-12-10 10:52:05
问题 I'm trying to pass a parameter to an other page. I have a category of images and that list is in a session scope, a link is created for each of this category in my header template. I would like to redirect to a new page, and pass the selected category. <h:dataTable id="categoryMenu" value="#{menuBean.listCategory}" var="category"> <h:column> <h:link value="#{category.name}" outcome="/image/imageList.xhtml" > </h:link> </h:column> </h:dataTable> But now I would like that my page imageList

Java Reflection private method with parameters best approach?

二次信任 提交于 2019-12-10 10:49:14
问题 i am trying to call a private method using java reflection i developed a small method to call the others methods iterating over all methods and comparing by name and by parameters type i have invoke 4 methods with success. i have one question. 1). is this the best way to do it?. because i understand class.getMethod only match public methods. Java have something built-in? here is my code. public class Compute { private Method getMethod(Class clazz,String methodName,Class...parametersClass) {

PHP faked multiple inheritance - having object attributes set in fake parent class available in extended class

可紊 提交于 2019-12-10 10:38:18
问题 I have used faking of multiple inheritance as given in Can I extend a class using more than 1 class in PHP? Notice that class A actually extends class B and faking is done for extending from class C. It was working fine until I needed an attribute set in a function of class C to be available in class A. Consider a little edited version of that code where I call a function of class C from inside a function of class A :- //Class A class A extends B { private $c; public function __construct() {