dynamic

Dynamic PL/SQL query, how to ignore null parameters?

半腔热情 提交于 2019-12-11 04:16:09
问题 I have a PL/SQL procedure with multiple parameters. When a webapp calls the procedure, if it's not using a certain parameter, it passes is as null, ie procedure test (param1 in varchar2, param2 in varchar2, param3 in varchar2, cursor out sys_refcursor) ... end procedure test; I want to make an SQL query where I include the given parameters in the WHERE clause only if the parameter is not null. Is there a way to achieve this in an elegant way, other than building the SQL query in a string and

Android Google API direction update

丶灬走出姿态 提交于 2019-12-11 04:13:35
问题 I am using Google API in my app. Everything works perfectly. I just want to know how to update directions while moving. For now I have button "Actualize direction", but I want to do it dynamically. For example I want to update it (maybe offline if it is possible?) after changing my actual location. I think that this app will be used by drivers so it would be good to have dynamical updating of those directions. Is it possible to do something like this? Thx for help 回答1: Implementing such kind

How to import dynamic XHR content into a template dynamically?

北慕城南 提交于 2019-12-11 04:05:21
问题 I fetch my Dashboard HTML data using the following code which is executed when I click a button: fetchDashboard() { const requestOptions: Object = { headers: new HttpHeaders().append('Authorization', 'Bearer <tokenhere>'), responseType: 'text' } this.http.get<string>('http://localhost:3000/avior/dashboard', requestOptions) .subscribe(response => { this.dashboardData = response; } ); } I have multiple components setting up my view and I want to modify one of the views completely from scratch

Why does this method keep returning dynamic despite the return type in the signature?

為{幸葍}努か 提交于 2019-12-11 03:43:09
问题 So the type being returned by the activator (not shown here) is just a POCO that I created. Nothing special about it at all. But despite, the return type of GetWrapper or GetWrapper<T> the object being returned is of type dynamic so none of the properties of the actual class being return are being seen by intellisense. Any ideas? UPDATE: Sorry, Jon: public static T GetWrapper<T>(object type, dynamic obj) where T : class, IRedditObject { return GetWrapper(type, obj) as T; } public static

Add a python script at runtime

空扰寡人 提交于 2019-12-11 03:39:53
问题 I am beginning python and working on a project, and one thing I would like to be able to do is download and run a script dynamically at runtime. The general idea is to be able to connect to a server, download a python script on demand, and run that script that was just downloaded without having to restart the program or hard code that specific script in to the program. The program I'm working with uses Python for scripting and execution, and C++ for the other code such as rendering and math.

How to set a dynamically generated pseudoclass name in JavaScript to work with the instanceof operator?

好久不见. 提交于 2019-12-11 03:38:34
问题 I'd like to set the name of a JavaScript pseudoclass stored in an array with a specific name, for example, the non-array version works flawlessly: var Working = new Array(); Working = new Function('arg', 'this.Arg = arg;'); Working.prototype.constructor = Working; var instw = new Working('test'); document.write(instw.Arg); document.write('<BR />'); document.write((instw instanceof Working).toString()); Output: test true However this format does not function: // desired name of pseudoclass var

C# dynamic support?

不羁的心 提交于 2019-12-11 03:35:40
问题 After reading this post and links I still have 2 questions Question #1 What is the criteria so that I would be able to execute dynamic code in c# ? must the target classes/objects rely on .net clr ? I mean if someone gives me a Pascal DLL , I guess I won't be able to use its code via dynamic ( or will ? )..so: What are the requirements for dynamic to work ? Question #2 For example : In script object - in order to increase an int the code should be : Scriptobj.SetProperty("Count", ((int

Dynamic Arrays passing to functions

女生的网名这么多〃 提交于 2019-12-11 03:33:44
问题 I have created 2 dynamic arrays in the main function. I have passed both of them to the function by reference. Then I copy data from smaller dynamic array to the larger dynamic array. I delete the smaller dynamic array. Assign the address of the larger dynamic array to the smaller dynamic array. Now ideally the arr array should have size of 10. However, when I try to print the 6th element of the array in the main, it crashes. Please have a look at the code below: #include <iostream> #include

Dynamic INDIRECT formula with range

流过昼夜 提交于 2019-12-11 03:32:31
问题 I have some dynamic input, in my case, the name of the month in cell I25. Based on the month the function in cell H32 should reference a sheet with the name of the month and cell A18 within that sheet. Now this I can handle and have made it possible through the INDIRECT function. The issue I'm having is with dynamic range. For example, I would like cell H33 to reference cell A19 within the worksheet "February". The closest I got to it was =INDIRECT($I$25"&"!A18:A200") . And it seems to be

Dynamically invoking WCF service

拜拜、爱过 提交于 2019-12-11 03:29:49
问题 I've created ASP.NET application and added simple WCF service to it. The ASP.NET application is host for WCF service. The service is running. The service looks as follows: [ServiceContract] public interface IService1 { [OperationContract] string DoWork(string text); } public class Service1 : IService1 { public string DoWork(string text) { return text.ToUpper(); } } On the client side is console application that should invoke WCF service dynamically. I use following code: WSHttpBinding binding