dynamic

vue, how dynamically, programically, on click add component to the DOM specific place?

落爺英雄遲暮 提交于 2020-02-24 10:31:07
问题 I need to add a dynamically imported component, just add a virtual tag to specific place in DOM structure. Unfortunately, every method that I found, didn't solve my problem. How I try it first: parent component (Editor.vue): <template> <div> <div class="toolbar"> <button @click="addContainer">ADD CONTAINER</button> </div> <div id="editor" ref="editor" contenteditable="true"> //here, when in conteneditable div is coursor I need to add dynamically, programically virtual tag <container /> </div>

Generalizing jQuery dynamic add/remove form input for multiple forms

非 Y 不嫁゛ 提交于 2020-02-24 09:18:13
问题 Currently I have a functioning code for dynamically adding and removing form inputs on my page. I have multiple forms that I need to include on the page, so I made an event action where they could press a button and it would hide all the forms except the relevant one. This worked fine, but it created a conflict with my jQuery/javascript code because the code uses a class name to dynamically add or remove input fields. Both forms would have to be under the same class name for me to use the

Issues in log4net with dynamic filenaming in RollingFileAppender

强颜欢笑 提交于 2020-02-22 06:17:26
问题 I have 3 appenders in my config file for creating 3 different types of logs. I am using dynamic naming of file in each of the 3 appenders by setting the global context properties. In some cases, i need to set the log file name dynamically for just 1 appender. When i set the file name for just 1 appender, it creates another file named "null" with no data in addition to the actual logfile whose name has been set dynamically . I have created the config file as shown. <appender name=

Can I keep a SqlDataReader “alive” after closing connection?

谁说胖子不能爱 提交于 2020-02-21 13:53:32
问题 Is there any way to access a SqlDataReader after the connection is closed? Or is there any objects equivalent to SqlDataReader that I can store the reader into them and process on the objects later? I'm receiving a pivot dataset from the server, so I can't use normal classes to process this kind of data, my model looks like this : public class OneToNinetyNine { public List<Cities> listCities; public string CityID; public DateTime DateFrom; public DateTime DateTo; // this is the reader that I

Can I keep a SqlDataReader “alive” after closing connection?

戏子无情 提交于 2020-02-21 13:49:24
问题 Is there any way to access a SqlDataReader after the connection is closed? Or is there any objects equivalent to SqlDataReader that I can store the reader into them and process on the objects later? I'm receiving a pivot dataset from the server, so I can't use normal classes to process this kind of data, my model looks like this : public class OneToNinetyNine { public List<Cities> listCities; public string CityID; public DateTime DateFrom; public DateTime DateTo; // this is the reader that I

jQuery outerHeight is not returning the correct value

≡放荡痞女 提交于 2020-02-21 11:03:20
问题 I am trying to dynamically set the height of the webpage content by subtracting the header and footer values from the window size and setting the content to this value on document load. Each of the functions parameters takes in an element id in order to grab the element height; excluding the content parameter. function setH(header, content, footer) { winH = top.innerHeight; winTitle = 32; // height value of the window title (part of the header) headH = $(header).outerHeight(true); footH = $

jQuery outerHeight is not returning the correct value

一笑奈何 提交于 2020-02-21 11:02:01
问题 I am trying to dynamically set the height of the webpage content by subtracting the header and footer values from the window size and setting the content to this value on document load. Each of the functions parameters takes in an element id in order to grab the element height; excluding the content parameter. function setH(header, content, footer) { winH = top.innerHeight; winTitle = 32; // height value of the window title (part of the header) headH = $(header).outerHeight(true); footH = $

Error in Dynamic SQL

别说谁变了你拦得住时间么 提交于 2020-02-07 02:32:52
问题 I Have Created the following SP to generate the Update Statements and it uses the table Col.TMap.T_Mp and the data in the table looks like: ID M_Type ID_F SF1 SF2 1 Acc ACC_ID AC_ID NULL 1 STA STA_ID ST_ID NULL 1 CHa Cha_ID CH_ID NULL CREATE PROCEDURE dbo.dtmap( @ID INT ) AS BEGIN DECLARE @SQL NVARCHAR(MAX) DECLARE @SchemaName SYSNAME DECLARE @TableName SYSNAME DECLARE @DatabaseName SYSNAME DECLARE @M_Type SYSNAME DECLARE @SF1 VARCHAR(50) DECLARE @SF2 VARCHAR(50) DECLARE @ID_F VARCHAR(50)

How to build a dynamic MDX formula for a calculated member?

試著忘記壹切 提交于 2020-02-05 08:37:07
问题 I am trying to create a Calculated Member to get a sum up to last week. No problem to get the week value (I need it to be two digits i.e. '05', so adding 100-1 ) with Member [Measures].Week as 'right(str(int(99+datepart ( ''ww'', Now()))),2)' -- That works as expected member [Measures].SalesUpToWeek as 'strtomember( "aggregate(periodstodate([Dim].[2015],[Dim].[2015].[" + ([Measures].Week) + "]),[Measures].[Sales])")' I get the literal value aggregate( periodstodate([Dim].[2015],[Dim].[2015].

LINQ - Joins in a dynamic query

怎甘沉沦 提交于 2020-02-03 16:21:50
问题 Because of some business decisions I need to change a bit of what I was doing. Yay me. :) Currently, I have: public IOrderedQueryable<ProductDetail> GetProductList(string productGroupName, string productTypeName, Dictionary<string,List<string>> filterDictionary) { string whereClause = "ProductGroupName='" + productGroupName + "' AND ProductTypeName='" + productTypeName + "'"; string comma = ""; foreach (KeyValuePair<string, List<string>> myKVP in filterDictionary) { comma = ""; if (myKVP