parameters

Prompt user to enter single, multiple or all values in Oracle Select query

半世苍凉 提交于 2020-01-24 21:09:06
问题 I tried researching this but am a little stuck. I need to prompt a user to enter a value (single, multiple or all) for a report that only takes a "Select" statement from Oracle. For example, user can enter a store# as "07" (single value), "07", "08" (as multiple values ), or a result bringing back all store#'s. I had the following below, but unfortunately it does not work in the program we are using from our company as every prompt field is mandatory in their program so my sql below won't

Prompt user to enter single, multiple or all values in Oracle Select query

喜夏-厌秋 提交于 2020-01-24 21:08:12
问题 I tried researching this but am a little stuck. I need to prompt a user to enter a value (single, multiple or all) for a report that only takes a "Select" statement from Oracle. For example, user can enter a store# as "07" (single value), "07", "08" (as multiple values ), or a result bringing back all store#'s. I had the following below, but unfortunately it does not work in the program we are using from our company as every prompt field is mandatory in their program so my sql below won't

Explicitly specifying parameter types in F#

非 Y 不嫁゛ 提交于 2020-01-24 11:11:06
问题 I'm writing an F# function that factorises a number into prime factors. let factors primes i = let mutable j = i for p in primes do while (j>1) && (j%p=0) do j <- j/p printfn "prime: %i" p It works for int values of i , but not int64 values. The parameter primes is a set of int values. I understand why this is the case - type inference is assuming that the function only takes int parameters - but I want to explicitly specify the parameter type as int64 . Is it possible to write this function

SSRS Group By Parameter

一世执手 提交于 2020-01-24 06:09:14
问题 If I have a report parameter ( @Fruit ) that allows multiple selections how can I use the parameter as a column group in an SSRS Matrix? Typically, I would use the parameter in my query like the following: WHERE tbl.fruit In ( @Fruit ) Then I would use the column in the dataset as my group. However, in this case I need the full dataset returned. I can't filter the query, but I still want to only display the groups selected by the parameter. If my query returns Apples, Oranges and Bananas, but

SSRS Group By Parameter

☆樱花仙子☆ 提交于 2020-01-24 06:07:50
问题 If I have a report parameter ( @Fruit ) that allows multiple selections how can I use the parameter as a column group in an SSRS Matrix? Typically, I would use the parameter in my query like the following: WHERE tbl.fruit In ( @Fruit ) Then I would use the column in the dataset as my group. However, in this case I need the full dataset returned. I can't filter the query, but I still want to only display the groups selected by the parameter. If my query returns Apples, Oranges and Bananas, but

Eclipse RCP 4 - Handler method parameters

試著忘記壹切 提交于 2020-01-23 11:44:32
问题 I'm currently taking a look to the new Eclipse RCP framework and have a questions about handlers. In RCP 3.x a handler class needed to implement an interface, so the methods where given. In RCP 4 the handler class doesn't need to implement an interface. Instead you annotate the methods. E.g. if you have an ExitHandler as in Vogellas Tutorial you have an @Execute annotation. As you can see, there's an IWorkbench parameter passed. package com.example.e4.rcp.todo.handler; import org.eclipse.e4

Laravel 5 multiple optional parameters in route

浪尽此生 提交于 2020-01-23 08:37:50
问题 I have a problem with Laravel 5, and to be precise, I can't find the solution for it. In C# (ASP.NET MVC) it's easy to solve. For example, I have these routes (I'll just type the route content, and the function header, for the sake of simplicity) /{category}/Page{page} /Page{page} /{category} The function is defined inside Product controller. function header looks like this: public function list($page = 1, $category = null) the problem is, whenever I enter just one argument, it doesn't send

How to pass query string parameters to the PHP binary?

不羁的心 提交于 2020-01-23 08:14:07
问题 I am developing a webserver that invokes the PHP binary (via CGI) to process a script. Here's the problem: The PHP script isn't picking up the command line parameters. For example, if the client requests path/to/file.php?test=value , the $_GET array is empty. I have tried passing the parameters in an environment variable ( QUERY_STRING ), but they still don't show up. How can I pass query string parameters to a PHP application? 回答1: There are various SAPIs for PHP. One of them is cli SAPI

Using named routes with parameters and form_tag

a 夏天 提交于 2020-01-22 20:30:09
问题 I'm trying to create a simple search form in Rails, but I think I'm missing something. I have a named route for search: map.search ":first_name/:last_name", :controller => "home", :action => "search" I'm trying to use that in my search form: <% form_tag(search_path, :method => 'get') do %> <%= text_field_tag(:first_name) %> <%= text_field_tag(:last_name) %> <%= submit_tag("Search") %> <% end %> But when I load up the search form I get an ActionController::RoutingError: search_url failed to

How to send total model object as a parameter of Alamofire post method in Swift3?

那年仲夏 提交于 2020-01-22 14:51:10
问题 I have a model class like this class Example() { var name:String? var age:String? var marks:String? } I'm adding data to that model class let example = Example() example.name = "ABC" example.age = "10" example.marks = "10" After that I converted to JSON then I posted Alamofire.request(URL, method:.post, parameters: example) Alamofire not accepting parameters only its accepting like parameters = ["":"","",""]-->key value based , so I tried to convert model to JSON, JSON to dictionary, even