parameters

Pentaho CDE reset parameter

爱⌒轻易说出口 提交于 2020-01-11 14:06:20
问题 I have a data table component and seven multiple selectors related to it. And i want to reset all selectors to default value with a reset button. My data source is SQL database, so i don't have a select "All" option in these selector. Is there any way to make it happen? 回答1: There are two issues you need to solve: Adding default values for the selectors Adding a button that resets these selectors to their default value For 1 I would go for something like this: Set the SQL query for the

OleDB Parameters

戏子无情 提交于 2020-01-11 11:51:31
问题 I have this access db that I have a ddl for the state name and a ddl for the year. I have a gridview that I'd like to pass the value of the state drop down list into where clause. Obviously if I could use sql with the named parameters I would but this is what I'm stuck with and not sure exactly how to format it correctly. the drop down list is name ddlStates. In the parameters I've tried mycommand.Parameters.Add("@ddlStates") here is the data set public DataSet GetData() { DataSet ds; using

Attempting to learn polymorphism, etc. in VB6, but my code doesn't do what I want it to

两盒软妹~` 提交于 2020-01-11 11:09:29
问题 Here's what I've got on a command button; it's just creating variables and attempting to output their ID (which should be an instance variable inherited from the base class.) Private Sub Command1_Click() Dim ball1 As Ball, ball2 As Ball Dim cube1 As Cube, cube2 As Cube Set ball1 = New Ball Set cube1 = New Cube Set cube2 = New Cube Set ball2 = New Ball MsgBoxTheID (ball1) 'errors; should be 0 MsgBoxTheID (ball2) 'errors; should be 3 MsgBoxTheID (cube1) 'errors; should be 1 MsgBoxTheID (cube2)

Attempting to learn polymorphism, etc. in VB6, but my code doesn't do what I want it to

拟墨画扇 提交于 2020-01-11 11:09:13
问题 Here's what I've got on a command button; it's just creating variables and attempting to output their ID (which should be an instance variable inherited from the base class.) Private Sub Command1_Click() Dim ball1 As Ball, ball2 As Ball Dim cube1 As Cube, cube2 As Cube Set ball1 = New Ball Set cube1 = New Cube Set cube2 = New Cube Set ball2 = New Ball MsgBoxTheID (ball1) 'errors; should be 0 MsgBoxTheID (ball2) 'errors; should be 3 MsgBoxTheID (cube1) 'errors; should be 1 MsgBoxTheID (cube2)

Reporting Services - Multi-value parameter query returning no results

别等时光非礼了梦想. 提交于 2020-01-11 10:24:07
问题 Using SSRS (SQL Server 2005) I've set up two reports. For ease of explanation, let's call them MAIN_REPORT and SUB_REPORT . MAIN_REPORT runs a query that returns a set of Areas, with multiple TagNames per area: AREA Tagname ---------- A1 T1 A1 T2 A2 T3 A3 T4 If you select one of the Area cells, it opens SUB_REPORT and passes a parameter to @ParentTagNames using Join(Parameters!ResultsOfSearch.Value,",") . ResultsOfSearch is equal to the Tagname column above (haven't yet figured out how to

PL/SQL passing functions as parameters

孤街醉人 提交于 2020-01-11 09:33:14
问题 I've programmed in PL/SQL during half an year and I had the impression it's a quite plain programming language (IMHO). Although I've stumbled upon interesting articles, like this one - Design Patterns in PL/SQL – Interface Injection for even looser coupling, I recommend reading. Talking about dependency injection, I miss an special feature: passing subroutines as parameters. Is it possible? How? For instance, imagine I have a code like this in javascript: function tell_me (printer) { printer

Dynamically create query Params in Angular 2

馋奶兔 提交于 2020-01-11 08:37:05
问题 i want to achieve that the queryParams can be dynmamically passed it. For now i can set the values of the params dynamically, but not the keys Here is my Code onItemClick(item: FilterItem, group: FilterGroup, i: number) { let navigationExtras: NavigationExtras = { queryParams: { name : group.items[i].param } }; this.router.navigate(['/search'], navigationExtras); } I cannot put instead of "name" my group.name which is a string. I tried this: queryParams: { group.name: group.items[i].param }

What's the point of String[] args in Java?

折月煮酒 提交于 2020-01-11 08:01:30
问题 Whenever you declare the main method in a class, you always have to do a String array called "args". What's the point? Unless I live under a rock, command line agruments in Java are barely used anymore. And when I try and run this... //this program won't compile public class SomeClass { public static void main(){ System.out.println("This text will never be displayed :("); } } The output shows this in red text: Error: Main method not found in class SomeClass , please define the main method as:

Java using generics with lists and interfaces

和自甴很熟 提交于 2020-01-11 05:27:37
问题 Ok, so here is my problem: I have a list containing interfaces - List<Interface> a - and a list of interfaces that extend that interface: List<SubInterface> b . I want to set a = b . I do not wish to use addAll() or anything that will cost more memory as what I am doing is already very cost-intensive. I literally need to be able to say a = b . I have tried List<? extends Interface> a , but then I cannot add Interfaces to the list a , only the SubInterfaces. Any suggestions? I want to be able

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

末鹿安然 提交于 2020-01-11 05:10:14
问题 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? Using blanks doesn't work: - (void)testCall: (int[][]) arr { Thanks for your help. 回答1: I would write this as: - (void) testCall: (int *) aMatrice; Doing so allows you to avoid